fb700 commited on
Commit
74767ed
1 Parent(s): 70452e6

Update request_llm/bridge_chatglm.py

Browse files
Files changed (1) hide show
  1. request_llm/bridge_chatglm.py +1 -1
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(4).cuda()
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: