Skip to content

Commit

Permalink
fix compile (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
gau-nernst authored Jun 11, 2024
1 parent 79f2c7f commit 7cddc6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hf_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run_evaluation(repo_id, task_list, limit, device, precision, quantization, c
model = AutoModelForCausalLM.from_pretrained(repo_id).to(device="cuda", dtype=precision)

if compile:
torch.compile(model, mode="max-autotune", fullgraph=True)
model = torch.compile(model, mode="max-autotune", fullgraph=True)

if quantization == "int8dq":
change_linear_weights_to_int8_dqtensors(model)
Expand Down

0 comments on commit 7cddc6e

Please sign in to comment.