Merge pull request #450 from AlexanderLavelle/patch-1

quantized models don't have .to
pull/434/head
Eternal Reclaimer 1 year ago committed by GitHub
commit 2905900751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -181,7 +181,7 @@ class HuggingfaceLLM(AbstractLLM):
quantization_config=bnb_config, quantization_config=bnb_config,
*args, *args,
**kwargs, **kwargs,
).to(self.device) )
else: else:
self.model = AutoModelForCausalLM.from_pretrained( self.model = AutoModelForCausalLM.from_pretrained(
self.model_id, *args, **kwargs self.model_id, *args, **kwargs

Loading…
Cancel
Save