Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/mpt/convert_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ def get_tllm_param(


def convert_hf_mpt_legacy(hf_model,
hf_config,
mapping,
rank=0,
dtype='float32',
Expand Down Expand Up @@ -1059,6 +1060,7 @@ def covert_and_save(rank):
if args.smoothquant is not None or args.calibrate_kv_cache:
weights = convert_hf_mpt_legacy(
hf_model,
hf_config,
mapping,
rank,
dtype=args.dtype,
Expand Down