Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,10 @@ from loguru import logger
|
|
17 |
# while mistakes are mine
|
18 |
from transformers import AutoModel, AutoTokenizer
|
19 |
|
20 |
-
model_name = "THUDM/chatglm2-
|
21 |
model_name = "THUDM/chatglm2-6b-int4"
|
|
|
|
|
22 |
RETRY_FLAG = False
|
23 |
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
|
|
17 |
# while mistakes are mine
|
18 |
from transformers import AutoModel, AutoTokenizer
|
19 |
|
20 |
+
model_name = "THUDM/chatglm2-6b"
|
21 |
model_name = "THUDM/chatglm2-6b-int4"
|
22 |
+
model_name = "THUDM/chatglm2-6b-int8"
|
23 |
+
|
24 |
RETRY_FLAG = False
|
25 |
|
26 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|