Skip to content

Commit

Permalink
automatically load dtype from config (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-hansen authored Jan 20, 2025
1 parent 578b8c9 commit 9affc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awq/models/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self):
def from_pretrained(
self,
model_path,
torch_dtype=torch.float16,
torch_dtype="auto",
trust_remote_code=True,
safetensors=True,
device_map=None,
Expand Down

0 comments on commit 9affc3e

Please sign in to comment.