mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-13 14:06:43 +00:00
fix: guanaco model
This commit is contained in:
parent
d70ed42b54
commit
09308bcdf0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user