Lin-K76 commited on
Commit
cd22294
1 Parent(s): 55d57ff

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -118,11 +118,11 @@ model_stub = "meta-llama/Meta-Llama-3.1-405B-Instruct"
118
  model_name = model_stub.split("/")[-1]
119
 
120
  device_map = calculate_offload_device_map(
121
- model_stub, reserve_for_hessians=False, num_gpus=8, torch_dtype=torch.float16
122
  )
123
 
124
  model = SparseAutoModelForCausalLM.from_pretrained(
125
- model_stub, torch_dtype=torch.float16, device_map=device_map
126
  )
127
 
128
  output_dir = f"./{model_name}-FP8-dynamic"
 
118
  model_name = model_stub.split("/")[-1]
119
 
120
  device_map = calculate_offload_device_map(
121
+ model_stub, reserve_for_hessians=False, num_gpus=8, torch_dtype="auto"
122
  )
123
 
124
  model = SparseAutoModelForCausalLM.from_pretrained(
125
+ model_stub, torch_dtype="auto", device_map=device_map
126
  )
127
 
128
  output_dir = f"./{model_name}-FP8-dynamic"