Skip to content

Commit

Permalink
Load from revision (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzjn committed Aug 26, 2024
1 parent c82b0c6 commit 8445178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eval/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def load_hf_lm(
if device_map:
model = AutoModelForCausalLM.from_pretrained(
model_name_or_path,
revision=revision,
device_map=device_map,
torch_dtype=torch_dtype,
token=token,
Expand All @@ -259,6 +260,7 @@ def load_hf_lm(
else:
model = AutoModelForCausalLM.from_pretrained(
model_name_or_path,
revision=revision,
torch_dtype=torch_dtype,
token=token,
trust_remote_code=trust_remote_code,
Expand Down

0 comments on commit 8445178

Please sign in to comment.