fix: guanaco model

This commit is contained in:
csunny 2023-05-31 14:13:12 +08:00
parent d70ed42b54
commit 09308bcdf0

View File

@ -113,7 +113,11 @@ class ModelLoader(metaclass=Singleton):
or self.device == "mps"
and tokenizer
):
model.to(self.device)
# 4-bit not support this
try:
model.to(self.device)
except ValueError:
pass
if debug:
print(model)