Skip to content

Commit

Permalink
Fix rotary_percentage parsing in nemo2 config (NVIDIA#11197)
Browse files Browse the repository at this point in the history
* Fix rotary_percentage parsing in nemo2 config

* Add default value

Signed-off-by: Zeeshan Patel <[email protected]>
  • Loading branch information
meatybobby authored and Zeeshan Patel committed Nov 9, 2024
1 parent a825c12 commit 951faab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nemo/export/trt_llm/nemo_ckpt_loader/nemo_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def load_nemo_model(nemo_ckpt: Union[str, Path], nemo_export_dir: Union[str, Pat

nemo_model_config["mcore_gpt"] = True
nemo_model_config["max_position_embeddings"] = nemo_model_config.get("seq_length", 4096)
nemo_model_config["rotary_percentage"] = nemo_model_config.get("rotary_percent", 1.0)

shutil.copytree(io_folder, nemo_export_dir / "nemo_context")
else:
Expand Down

0 comments on commit 951faab

Please sign in to comment.