Skip to content

Commit 2b729ba

Browse files
author
YASH Nankani
committed
Address review comments
Signed-off-by: YASH Nankani <ynankani@2u1g-x570-0073.ipp2a1.colossus.nvidia.com>
1 parent 83527c0 commit 2b729ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modelopt/torch/export/unified_export_hf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _postprocess_safetensors(
196196
for sf_path in safetensor_files:
197197
with safe_open(str(sf_path), framework="pt") as f:
198198
metadata = dict(f.metadata() or {})
199-
sd = {k: f.get_tensor(k).clone() for k in f.keys()}
199+
sd = {k: f.get_tensor(k).clone() for k in f}
200200

201201
if merged_base_safetensor_path is not None and model_type is not None:
202202
sd, base_metadata = merge_diffusion_checkpoint(

0 commit comments

Comments
 (0)