mirror of
https://github.com/AvaLovelace1/LegoGPT.git
synced 2026-05-25 01:58:21 -05:00
Update llm.py to set model torch_dtype to 'auto'
This commit is contained in:
@@ -16,7 +16,7 @@ class LLM:
|
||||
self.tokenizer = AutoTokenizer.from_pretrained(model_name)
|
||||
self.model = AutoModelForCausalLM.from_pretrained(
|
||||
model_name,
|
||||
torch_dtype=torch.bfloat16,
|
||||
torch_dtype='auto',
|
||||
device_map=device,
|
||||
).to(device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user