model: no quantization

Former-commit-id: a8cf8f46dd
group-chat
Kye 1 year ago
parent acf0be1a13
commit 6a352053fc

@ -30,7 +30,7 @@ class HuggingFaceLLM:
try:
self.tokenizer = AutoTokenizer.from_pretrained(self.model_id)
self.model = AutoModelForCausalLM.from_pretrained(self.model_id, quantization_config=bnb_config)
self.model = AutoModelForCausalLM.from_pretrained(self.model_id) # quantization_config=bnb_config)
self.model.to(self.device)
except Exception as e:
self.logger.error(f"Failed to load the model or the tokenizer: {e}")

Loading…
Cancel
Save