fix problem

This commit is contained in:
csunny
2023-04-29 21:50:47 +08:00
parent 0767537606
commit acf9dbbd82
3 changed files with 4 additions and 5 deletions

View File

@@ -29,8 +29,8 @@ class ModerLoader:
if debug:
print(model)
if self.device == "cuda":
model.to(self.device)
# if self.device == "cuda":
# model.to(self.device)
return model, tokenizer