mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-14 14:34:28 +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"
|
or self.device == "mps"
|
||||||
and tokenizer
|
and tokenizer
|
||||||
):
|
):
|
||||||
|
# 4-bit not support this
|
||||||
|
try:
|
||||||
model.to(self.device)
|
model.to(self.device)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print(model)
|
print(model)
|
||||||
|
Loading…
Reference in New Issue
Block a user