Update README.md
Browse files
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=
|
122 |
)
|
123 |
|
124 |
model = SparseAutoModelForCausalLM.from_pretrained(
|
125 |
-
model_stub, torch_dtype=
|
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"
|