Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,8 @@ model_name = "fb700/chatglm-fitness-RLHF"
|
|
| 23 |
RETRY_FLAG = False
|
| 24 |
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
| 26 |
-
|
| 27 |
-
model = AutoModel.from_pretrained(model_name, trust_remote_code=True).half().cuda()
|
| 28 |
model = model.eval()
|
| 29 |
|
| 30 |
_ = """Override Chatbot.postprocess"""
|
|
|
|
| 23 |
RETRY_FLAG = False
|
| 24 |
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
| 26 |
+
model = AutoModel.from_pretrained(model_name, trust_remote_code=True).quantize(8).half().cuda()
|
| 27 |
+
#model = AutoModel.from_pretrained(model_name, trust_remote_code=True).half().cuda()
|
| 28 |
model = model.eval()
|
| 29 |
|
| 30 |
_ = """Override Chatbot.postprocess"""
|