Skip to content

Commit

Permalink
Merge pull request #450 from AlexanderLavelle/patch-1
Browse files Browse the repository at this point in the history
quantized models don't have .to
  • Loading branch information
kyegomez authored Apr 25, 2024
2 parents f992c99 + 78b1e83 commit 2905900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarms/models/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def __init__(
quantization_config=bnb_config,
*args,
**kwargs,
).to(self.device)
)
else:
self.model = AutoModelForCausalLM.from_pretrained(
self.model_id, *args, **kwargs
Expand Down

0 comments on commit 2905900

Please sign in to comment.