Spaces:
Sleeping
Sleeping
Update request_llm/bridge_chatglm.py
Browse files
request_llm/bridge_chatglm.py
CHANGED
@@ -45,7 +45,7 @@ class GetGLMHandle(Process):
|
|
45 |
if device=='cpu':
|
46 |
self.chatglm_model = AutoModel.from_pretrained("fb700/chatglm-fitness-RLHF", trust_remote_code=True).float()
|
47 |
else:
|
48 |
-
self.chatglm_model = AutoModel.from_pretrained("fb700/chatglm-fitness-RLHF", trust_remote_code=True).half().quantize(
|
49 |
self.chatglm_model = self.chatglm_model.eval()
|
50 |
break
|
51 |
else:
|
|
|
45 |
if device=='cpu':
|
46 |
self.chatglm_model = AutoModel.from_pretrained("fb700/chatglm-fitness-RLHF", trust_remote_code=True).float()
|
47 |
else:
|
48 |
+
self.chatglm_model = AutoModel.from_pretrained("fb700/chatglm-fitness-RLHF", trust_remote_code=True).half().quantize(8).cuda()
|
49 |
self.chatglm_model = self.chatglm_model.eval()
|
50 |
break
|
51 |
else:
|