Aligner/nemotron5
State: open | Pull request: yes
Labels: name: NLP

name: common

# What does this PR do ?

place to make all changes to support nemotron5 training
**Collection**: [Note which collection this PR will affect]

# Changelog 
- Add specific line by line info of high level changes in this PR.

# Usage
* You can potentially add a usage example below

```python
# Add a code snippet demonstrating how to use this 
```

# GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

# Before your PR is "Ready for review"
**Pre checks**:
- [ ] Make sure you read and followed [Contributor guidelines](https://github.com/NVIDIA/NeMo/blob/main/CONTRIBUTING.md)
- [ ] Did you write any new necessary tests?
- [ ] Did you add or update any necessary documentation?
- [ ] Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
  - [ ] Reviewer: Does the PR have correct import guards for all optional libraries?
  
**PR Type**:
- [ ] New Feature
- [ ] Bugfix
- [ ] Documentation

If you haven't finished some of the above items you can still open "Draft" PR.


## Who can review?

Anyone in the community is free to review the PR once the checks have passed. 
[Contributor guidelines](https://github.com/NVIDIA/NeMo/blob/main/CONTRIBUTING.md) contains specific people who can review PRs to various areas.

# Additional Information
* Related to # (issue)


This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

This PR was closed because it has been inactive for 7 days since being marked as stale.

<!-- pylint-output-strict-mode-false -->

beep boop 🤖: 🙏 The following files have warnings. In case you are familiar with these, please try helping us to improve the code base.

---

Your code was analyzed with PyLint. The following annotations have been identified:

```
************* Module megatron_gpt_eval
examples/nlp/language_modeling/megatron_gpt_eval.py:312:0: C0301: Line too long (134/119) (line-too-long)
examples/nlp/language_modeling/megatron_gpt_eval.py:148:0: C0115: Missing class docstring (missing-class-docstring)
examples/nlp/language_modeling/megatron_gpt_eval.py:162:0: C0116: Missing function or method docstring (missing-function-docstring)
examples/nlp/language_modeling/megatron_gpt_eval.py:171:0: C0116: Missing function or method docstring (missing-function-docstring)
examples/nlp/language_modeling/megatron_gpt_eval.py:281:0: C0116: Missing function or method docstring (missing-function-docstring)
examples/nlp/language_modeling/megatron_gpt_eval.py:308:0: C0116: Missing function or method docstring (missing-function-docstring)
************* Module megatron_mamba_eval
examples/nlp/language_modeling/megatron_mamba_eval.py:318:0: C0301: Line too long (134/119) (line-too-long)
examples/nlp/language_modeling/megatron_mamba_eval.py:149:0: C0115: Missing class docstring (missing-class-docstring)
examples/nlp/language_modeling/megatron_mamba_eval.py:163:0: C0116: Missing function or method docstring (missing-function-docstring)
examples/nlp/language_modeling/megatron_mamba_eval.py:172:0: C0116: Missing function or method docstring (missing-function-docstring)
examples/nlp/language_modeling/megatron_mamba_eval.py:287:0: C0116: Missing function or method docstring (missing-function-docstring)
examples/nlp/language_modeling/megatron_mamba_eval.py:315:0: C0116: Missing function or method docstring (missing-function-docstring)
examples/nlp/language_modeling/megatron_mamba_eval.py:20:0: W0611: Unused import time (unused-import)
************* Module nemo.collections.common.tokenizers.tiktoken_tokenizer
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:66:0: C0301: Line too long (270/119) (line-too-long)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:148:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:264:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:268:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:272:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:276:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:280:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:284:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/common/tokenizers/tiktoken_tokenizer.py:288:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module nemo.collections.nlp.data.language_modeling.megatron.gpt_sft_chat_dataset
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:116:0: C0301: Line too long (144/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:147:0: C0301: Line too long (132/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:156:0: C0301: Line too long (165/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:177:0: C0301: Line too long (169/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:240:0: C0301: Line too long (124/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:59:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:182:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_chat_dataset.py:311:0: C0115: Missing class docstring (missing-class-docstring)
************* Module nemo.collections.nlp.data.language_modeling.megatron.gpt_sft_dataset
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:71:0: C0301: Line too long (353/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:73:0: C0301: Line too long (173/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:74:0: C0301: Line too long (156/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:80:0: C0301: Line too long (157/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:83:0: C0301: Line too long (147/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:84:0: C0301: Line too long (178/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:85:0: C0301: Line too long (138/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:86:0: C0301: Line too long (121/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:88:0: C0301: Line too long (144/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:91:0: C0301: Line too long (247/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:167:0: C0301: Line too long (125/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:176:0: C0301: Line too long (121/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:246:0: C0301: Line too long (137/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:249:0: C0301: Line too long (133/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:274:0: C0301: Line too long (146/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:279:0: C0301: Line too long (153/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:280:0: C0301: Line too long (155/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:302:0: C0301: Line too long (127/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:391:0: C0301: Line too long (120/119) (line-too-long)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:36:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/nlp/data/language_modeling/megatron/gpt_sft_dataset.py:528:0: C0115: Missing class docstring (missing-class-docstring)
************* Module nemo.collections.nlp.models.language_modeling.megatron_base_model
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:103:0: C0301: Line too long (149/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:111:0: C0301: Line too long (134/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:252:0: C0301: Line too long (125/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:270:0: C0301: Line too long (120/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:345:0: C0301: Line too long (133/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:601:0: C0301: Line too long (123/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:656:0: C0301: Line too long (153/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:828:0: C0301: Line too long (122/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:956:0: C0301: Line too long (121/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:975:0: C0301: Line too long (136/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1092:0: C0301: Line too long (195/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1149:0: C0301: Line too long (135/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1197:0: C0301: Line too long (120/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1280:0: C0301: Line too long (128/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:329:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:460:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:465:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:694:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:746:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:917:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1021:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1255:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1286:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1290:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_base_model.py:1294:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module nemo.collections.nlp.models.language_modeling.megatron_gpt_sft_model
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:120:0: C0301: Line too long (125/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:125:0: C0301: Line too long (135/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:134:0: C0301: Line too long (124/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:141:0: C0301: Line too long (140/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:145:0: C0301: Line too long (159/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:177:0: C0301: Line too long (145/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:224:0: C0301: Line too long (122/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:233:0: C0301: Line too long (134/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:258:0: C0301: Line too long (152/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:310:0: C0301: Line too long (125/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:316:0: C0301: Line too long (146/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:322:0: C0301: Line too long (245/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:338:0: C0301: Line too long (121/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:353:0: C0301: Line too long (132/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:474:0: C0301: Line too long (145/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:477:0: C0301: Line too long (145/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:488:0: C0301: Line too long (128/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:523:0: C0301: Line too long (142/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:594:0: C0301: Line too long (131/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:616:0: C0301: Line too long (130/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:636:0: C0301: Line too long (124/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:938:0: C0301: Line too long (142/119) (line-too-long)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:109:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:171:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:465:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:486:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:522:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:603:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:725:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:740:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:827:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:880:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:889:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:900:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:912:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:924:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_gpt_sft_model.py:937:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module nemo.collections.nlp.models.language_modeling.megatron_mamba_model
nemo/collections/nlp/models/language_modeling/megatron_mamba_model.py:44:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/models/language_modeling/megatron_mamba_model.py:17:0: W0611: Unused open_dict imported from omegaconf (unused-import)
nemo/collections/nlp/models/language_modeling/megatron_mamba_model.py:25:4: W0611: Unused import mamba_ssm (unused-import)
************* Module nemo.collections.nlp.modules.common.text_generation_server
nemo/collections/nlp/modules/common/text_generation_server.py:196:0: C0301: Line too long (137/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_server.py:63:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:74:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:92:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:118:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:188:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:309:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:320:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:492:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:515:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:27:0: W0611: Unused get_prompt_template_example imported from nemo.collections.nlp.data.language_modeling.megatron.gpt_sft_chat_dataset (unused-import)
************* Module nemo.collections.nlp.modules.common.text_generation_utils
nemo/collections/nlp/modules/common/text_generation_utils.py:261:0: C0301: Line too long (137/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:695:0: C0301: Line too long (173/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:701:0: C0301: Line too long (148/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:931:0: C0301: Line too long (182/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:934:0: C0301: Line too long (177/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:942:0: C0301: Line too long (141/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:987:0: C0301: Line too long (156/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:1004:0: C0301: Line too long (145/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:1307:0: C0301: Line too long (120/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_utils.py:72:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:89:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:96:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:211:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:320:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:382:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:570:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:898:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:903:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:1101:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_utils.py:17:0: W0611: Unused import os (unused-import)
nemo/collections/nlp/modules/common/text_generation_utils.py:30:0: W0611: Unused DEFAULT_VID_END_TOKEN imported from nemo.collections.multimodal.data.neva.conversation (unused-import)
nemo/collections/nlp/modules/common/text_generation_utils.py:30:0: W0611: Unused DEFAULT_VID_START_TOKEN imported from nemo.collections.multimodal.data.neva.conversation (unused-import)
************* Module nemo.collections.nlp.parts.nlp_overrides
nemo/collections/nlp/parts/nlp_overrides.py:206:0: C0301: Line too long (140/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:211:0: C0301: Line too long (149/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:228:0: C0301: Line too long (123/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:424:0: C0301: Line too long (136/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:510:0: C0301: Line too long (152/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:730:0: C0301: Line too long (140/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:735:0: C0301: Line too long (149/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:1001:0: C0301: Line too long (128/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:1005:0: C0301: Line too long (141/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:1009:0: C0301: Line too long (149/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:1066:0: C0301: Line too long (135/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:1154:0: C0301: Line too long (121/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:1732:0: C0301: Line too long (152/119) (line-too-long)
nemo/collections/nlp/parts/nlp_overrides.py:243:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:376:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:425:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:602:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:618:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:637:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:878:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:997:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:1643:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:1731:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/parts/nlp_overrides.py:18:0: W0611: Unused import re (unused-import)
nemo/collections/nlp/parts/nlp_overrides.py:19:0: W0611: Unused import shutil (unused-import)
nemo/collections/nlp/parts/nlp_overrides.py:106:4: W0611: Unused tensorstore imported from megatron.core.dist_checkpointing.strategies (unused-import)
************* Module nemo.export.trt_llm.tensorrt_llm_build
nemo/export/trt_llm/tensorrt_llm_build.py:31:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/export/trt_llm/tensorrt_llm_build.py:19:0: W0611: Unused Builder imported from tensorrt_llm.builder (unused-import)
nemo/export/trt_llm/tensorrt_llm_build.py:23:0: W0611: Unused add_lora imported from tensorrt_llm.models.modeling_utils (unused-import)
************* Module nemo.export.trt_llm.tensorrt_llm_run
nemo/export/trt_llm/tensorrt_llm_run.py:506:0: C0301: Line too long (125/119) (line-too-long)
nemo/export/trt_llm/tensorrt_llm_run.py:510:0: C0301: Line too long (136/119) (line-too-long)
nemo/export/trt_llm/tensorrt_llm_run.py:514:0: C0301: Line too long (123/119) (line-too-long)
nemo/export/trt_llm/tensorrt_llm_run.py:557:0: C0301: Line too long (181/119) (line-too-long)
nemo/export/trt_llm/tensorrt_llm_run.py:839:0: C0301: Line too long (153/119) (line-too-long)
nemo/export/trt_llm/tensorrt_llm_run.py:524:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/export/trt_llm/tensorrt_llm_run.py:533:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/export/trt_llm/tensorrt_llm_run.py:591:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/export/trt_llm/tensorrt_llm_run.py:33:0: W0611: Unused Mapping imported from tensorrt_llm.mapping (unused-import)
************* Module nemo.utils.callbacks.nemo_model_checkpoint
nemo/utils/callbacks/nemo_model_checkpoint.py:261:0: C0301: Line too long (133/119) (line-too-long)
nemo/utils/callbacks/nemo_model_checkpoint.py:704:0: C0301: Line too long (146/119) (line-too-long)
nemo/utils/callbacks/nemo_model_checkpoint.py:108:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/callbacks/nemo_model_checkpoint.py:196:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/callbacks/nemo_model_checkpoint.py:200:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/callbacks/nemo_model_checkpoint.py:215:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/callbacks/nemo_model_checkpoint.py:269:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/callbacks/nemo_model_checkpoint.py:20:0: W0611: Unused Tuple imported from typing (unused-import)
************* Module nemo.utils.exp_manager
nemo/utils/exp_manager.py:354:0: C0301: Line too long (120/119) (line-too-long)
nemo/utils/exp_manager.py:379:0: C0301: Line too long (124/119) (line-too-long)
nemo/utils/exp_manager.py:383:0: C0301: Line too long (122/119) (line-too-long)
nemo/utils/exp_manager.py:388:0: C0301: Line too long (127/119) (line-too-long)
nemo/utils/exp_manager.py:402:0: C0301: Line too long (120/119) (line-too-long)
nemo/utils/exp_manager.py:409:0: C0301: Line too long (120/119) (line-too-long)
nemo/utils/exp_manager.py:410:0: C0301: Line too long (126/119) (line-too-long)
nemo/utils/exp_manager.py:412:0: C0301: Line too long (136/119) (line-too-long)
nemo/utils/exp_manager.py:414:0: C0301: Line too long (139/119) (line-too-long)
nemo/utils/exp_manager.py:424:0: C0301: Line too long (123/119) (line-too-long)
nemo/utils/exp_manager.py:425:0: C0301: Line too long (128/119) (line-too-long)
nemo/utils/exp_manager.py:426:0: C0301: Line too long (132/119) (line-too-long)
nemo/utils/exp_manager.py:427:0: C0301: Line too long (127/119) (line-too-long)
nemo/utils/exp_manager.py:515:0: C0301: Line too long (122/119) (line-too-long)
nemo/utils/exp_manager.py:603:0: C0301: Line too long (208/119) (line-too-long)
nemo/utils/exp_manager.py:604:0: C0301: Line too long (230/119) (line-too-long)
nemo/utils/exp_manager.py:606:0: C0301: Line too long (178/119) (line-too-long)
nemo/utils/exp_manager.py:643:0: C0301: Line too long (136/119) (line-too-long)
nemo/utils/exp_manager.py:778:0: C0301: Line too long (121/119) (line-too-long)
nemo/utils/exp_manager.py:786:0: C0301: Line too long (156/119) (line-too-long)
nemo/utils/exp_manager.py:833:0: C0301: Line too long (141/119) (line-too-long)
nemo/utils/exp_manager.py:841:0: C0301: Line too long (152/119) (line-too-long)
nemo/utils/exp_manager.py:1111:0: C0301: Line too long (142/119) (line-too-long)
nemo/utils/exp_manager.py:1135:0: C0301: Line too long (154/119) (line-too-long)
nemo/utils/exp_manager.py:1201:0: C0301: Line too long (120/119) (line-too-long)
nemo/utils/exp_manager.py:1220:0: C0301: Line too long (123/119) (line-too-long)
nemo/utils/exp_manager.py:1246:0: C0301: Line too long (121/119) (line-too-long)
nemo/utils/exp_manager.py:91:0: C0115: Missing class docstring (missing-class-docstring)
nemo/utils/exp_manager.py:106:0: C0115: Missing class docstring (missing-class-docstring)
nemo/utils/exp_manager.py:133:0: C0115: Missing class docstring (missing-class-docstring)
nemo/utils/exp_manager.py:142:0: C0115: Missing class docstring (missing-class-docstring)
nemo/utils/exp_manager.py:151:0: C0115: Missing class docstring (missing-class-docstring)
nemo/utils/exp_manager.py:162:0: C0115: Missing class docstring (missing-class-docstring)
nemo/utils/exp_manager.py:275:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:278:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:281:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:284:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:287:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:290:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:293:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:296:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:334:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:337:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:340:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:343:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:1127:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:1228:0: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:1247:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:1250:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/utils/exp_manager.py:1266:0: C0116: Missing function or method docstring (missing-function-docstring)
************* Module scripts.checkpoint_converters.convert_mamba2_pyt_to_nemo
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:50:0: C0301: Line too long (133/119) (line-too-long)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:55:0: C0301: Line too long (124/119) (line-too-long)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:63:0: C0301: Line too long (133/119) (line-too-long)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:76:0: C0301: Line too long (218/119) (line-too-long)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:69:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:116:4: C0115: Missing class docstring (missing-class-docstring)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:124:8: C0116: Missing function or method docstring (missing-function-docstring)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:151:8: C0116: Missing function or method docstring (missing-function-docstring)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:164:8: C0116: Missing function or method docstring (missing-function-docstring)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:172:8: C0116: Missing function or method docstring (missing-function-docstring)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:192:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/checkpoint_converters/convert_mamba2_pyt_to_nemo.py:302:0: C0116: Missing function or method docstring (missing-function-docstring)

-----------------------------------
Your code has been rated at 9.53/10
```

---

Mitigation guide:

* Add sensible and useful docstrings to functions and methods
* For trivial methods like getter/setters, consider adding `# pylint: disable=C0116` inside the function itself
* To disable multiple functions/methods at once, put a `# pylint: disable=C0116` before the first and a `# pylint: enable=C0116` after the last.

By applying these rules, we reduce the occurance of this message in future.

Thank you for improving NeMo's documentation!