Skip to content

Commit

Permalink
cog: use full fledged fp32 weights
Browse files Browse the repository at this point in the history
  • Loading branch information
nomagick committed Jul 2, 2023
1 parent fe2c55c commit a2d9608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def setup(self):
)
model = AutoModel.from_pretrained(
"./chatglm2-6b", trust_remote_code=True, local_files_only=True
).cuda()
).float().cuda()
patch_chat_glm.patch(model)
self.model = model.eval()

Expand Down

0 comments on commit a2d9608

Please sign in to comment.