Skip to content

Commit

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

* Add default value

Co-authored-by: meatybobby <[email protected]>
  • Loading branch information
pablo-garay and meatybobby authored Nov 7, 2024
1 parent 8470826 commit 33ccb6e
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 33ccb6e

Please sign in to comment.