Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aligner/nemotron5 #11264

Draft
wants to merge 80 commits into
base: main
Choose a base branch
from
Draft

Aligner/nemotron5 #11264

wants to merge 80 commits into from

Conversation

arendu
Copy link
Collaborator

@arendu arendu commented Nov 12, 2024

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
# 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
  • 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 contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

@github-actions github-actions bot added the NLP label Nov 12, 2024
if dist_ckpt_args.spec is not None:
mamba_stack_spec = import_module(dist_ckpt_args.spec)
else:
raise ("You must provide a valid Mamba layer spec!")

Check failure

Code scanning / CodeQL

Illegal raise Error

Illegal class 'str' raised; will result in a TypeError being raised instead.
@@ -165,30 +421,47 @@
nemo_config.model.tokenizer.library = tokenizer_library
nemo_config.model.tokenizer.type = tokenizer_type
nemo_config.model.tokenizer.model = tokenizer_model

nemo_config.model.tokenizer.vocab_file = tokenizer_vocab

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable Error

Local variable 'tokenizer_vocab' may be used before it is initialized.

nemo_config.model.tokenizer.vocab_file = tokenizer_vocab
if args.source_dist_ckpt:
nemo_config.model.kv_channels = dist_ckpt_args.kv_channels

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable Error

Local variable 'dist_ckpt_args' may be used before it is initialized.
nemo_model_from_pyt.save_to(args.output_path)
nemo_model = nemo_model.to(dtype=dtype)
if args.check_fwd_pass:
assert mcore_model is not None

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable Error

Local variable 'mcore_model' may be used before it is initialized.
)
Utils.inited = True

except:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
)
Utils.inited = True

except:

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
@@ -13,6 +13,8 @@
# limitations under the License.

import torch
import torch.nn.functional as F
from omegaconf import open_dict

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'open_dict' is not used.
arendu and others added 29 commits November 19, 2024 23:31
Signed-off-by: arendu <[email protected]>
…or Aligner (#10863)

* fix(export): update API for disabling device reassignment in TRTLLM for Aligner

[feat] Upgrade nemo-export path for aligner to TRTLLM-v12 and use python runtime

Signed-off-by: Terry Kong <[email protected]>

fix: forgot to always set _disable_torch_cuda_device_set

Signed-off-by: Terry Kong <[email protected]>

Signed-off-by: Terry Kong <[email protected]>

Apply isort and black reformatting

Signed-off-by: terrykong <[email protected]>

invert torch device set

Signed-off-by: Terry Kong <[email protected]>

* remove comment

Signed-off-by: Terry Kong <[email protected]>

---------

Signed-off-by: Terry Kong <[email protected]>
In theory, with the previous implementation it would have been possible
for a thread to re-use the output from a previous batch, if it happened
to grab the lock before the thread with queryid == 0.
This can give a small speedup for free, since usually batched queries
all come in within <0.5s
Signed-off-by: Gerald Shen <[email protected]>
This is because those tokens are typically added in the code (e.g. for
padding purpose) and we do not want them to be part of the response.
Signed-off-by: Ali Taghibakhshi <[email protected]>
Copy link
Contributor

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_mamba_eval
examples/nlp/language_modeling/megatron_mamba_eval.py:317: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:314:0: C0116: Missing function or method docstring (missing-function-docstring)
************* 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:307: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_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:181:0: C0301: Line too long (137/119) (line-too-long)
nemo/collections/nlp/modules/common/text_generation_server.py:62:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:73:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:77:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:103:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:173:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:289:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:300:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:472:0: C0115: Missing class docstring (missing-class-docstring)
nemo/collections/nlp/modules/common/text_generation_server.py:495: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.58/10

Thank you for improving NeMo's documentation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants