Skip to content

Commit

Permalink
update_cpu_offload
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Dec 15, 2024
1 parent 540d4b2 commit ee2e01c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# reserve_for_hessians=True reserves memory which is required by
# GPTQModifier and SparseGPTModifier
device_map = calculate_offload_device_map(
MODEL_ID, num_gpus=2, reserve_for_hessians=True, torch_dtype=torch.bfloat16
MODEL_ID, num_gpus=1, reserve_for_hessians=True, torch_dtype=torch.bfloat16
)

model = AutoModelForCausalLM.from_pretrained(
Expand Down

0 comments on commit ee2e01c

Please sign in to comment.