|
|
@ -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
|
|
|
|