Skip to content

Commit

Permalink
bugfix v2: naming
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Kaminski <pikaminski@nvidia.com>
  • Loading branch information
Piotr Kaminski committed Aug 21, 2024
1 parent 84a5e5e commit 250525e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nemo/export/trt_llm/converter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def save_split(split_vals, dir, key, i, split_factor):

def save_expert_split(split_vals, dir, key, i, split_factor):
for j, val in enumerate(split_vals):
suffix = f".{tp_num}.bin" if tp_num else ''
tp_num = i * split_factor + j
suffix = f".{tp_num}.bin" if tp_num else ''

global weights_dict
weights_dict[key + suffix] = val

Expand Down

0 comments on commit 250525e

Please sign in to comment.