Skip to content

Commit 219bb2d

Browse files
committed
Fix
Signed-off-by: Chenjie Luo <chenjiel@nvidia.com>
1 parent 01c44e9 commit 219bb2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modelopt/torch/export/unified_export_hf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def export_hf_checkpoint(
10151015
# Save model
10161016
model.save_pretrained(
10171017
export_dir,
1018-
state_dict=post_state_dict | extra_state_dict,
1018+
state_dict={**post_state_dict, **(extra_state_dict or {})},
10191019
save_modelopt_state=save_modelopt_state,
10201020
)
10211021

0 commit comments

Comments
 (0)