Skip to content

fix/ replace sanity test for nemotron h with a correctness test - #4147

Closed
omera-nv wants to merge 11 commits into
NVIDIA:mainfrom
omera-nv:add_nemotron_h_correctness_test
Closed

fix/ replace sanity test for nemotron h with a correctness test#4147
omera-nv wants to merge 11 commits into
NVIDIA:mainfrom
omera-nv:add_nemotron_h_correctness_test

Conversation

@omera-nv

@omera-nv omera-nv commented May 8, 2025

Copy link
Copy Markdown
Collaborator

[TRTLLM-5085][fix] Nemotron H correctness test

Description

Nemotron H was lacking a correctness test due to a missing public reference.
This PR replaces the basic sanity test with a proper correctness test against known good outputs from mcore.

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--disable-fail-fast --skip-test --stage-list "A10-1, xxx" --gpu-type "A30, H100_PCIe" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-[Post-Merge]-1, xxx"]

Launch build/test pipelines. All previously running jobs will be killed.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests. Will also run L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-[Post-Merge]-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-[Post-Merge]-1, xxx".

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@omera-nv
omera-nv requested review from Naveassaf and kaiyux May 8, 2025 07:12
@omera-nv
omera-nv force-pushed the add_nemotron_h_correctness_test branch from 01fa527 to f42cfba Compare May 8, 2025 07:23
@omera-nv
omera-nv requested a review from suyoggupta May 8, 2025 07:24
@omera-nv

omera-nv commented May 8, 2025

Copy link
Copy Markdown
Collaborator Author

/bot run

@Naveassaf
Naveassaf requested a review from tomeras91 May 8, 2025 07:27
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #4514 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #4514 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #3246 completed with status: 'FAILURE'

@omera-nv

omera-nv commented May 8, 2025

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #4546 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #4546 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #3268 completed with status: 'FAILURE'

Comment thread tests/unittest/_torch/modeling/test_modeling_nemotron_h.py Outdated
Comment thread tests/unittest/_torch/modeling/test_modeling_nemotron_h.py Outdated
Comment thread tests/unittest/_torch/modeling/test_modeling_nemotron_h.py Outdated
@omera-nv
omera-nv force-pushed the add_nemotron_h_correctness_test branch from f42cfba to 1b4cf13 Compare May 12, 2025 08:35
@omera-nv

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #4862 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #4862 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #3520 completed with status: 'SUCCESS'

omera-nv added 3 commits May 15, 2025 07:58
Signed-off-by: Omer Ullman Argov <118735753+omera-nv@users.noreply.github.com>
Signed-off-by: Omer Ullman Argov <118735753+omera-nv@users.noreply.github.com>
Signed-off-by: Omer Ullman Argov <118735753+omera-nv@users.noreply.github.com>
@omera-nv
omera-nv force-pushed the add_nemotron_h_correctness_test branch from 1b4cf13 to 9b31dcd Compare May 15, 2025 10:30
Signed-off-by: Omer Ullman Argov <118735753+omera-nv@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces the basic sanity test for Nemotron H with a proper correctness test that compares model outputs against known good values from mcore. Key changes include:

  • Removal of the old sanity test and configuration dictionary.
  • Addition of a new correctness test with proper GPU memory checks and token generation.
  • Integration of weights loading, tokenizer initialization, and logprobs comparison.

Comment thread tests/unittest/_torch/modeling/test_modeling_nemotron_h.py
tomeras91 added 2 commits May 18, 2025 08:48
Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
tomeras91 added 2 commits May 18, 2025 13:33
…atched forward test

Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
…lling the decoded tokens

Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
@tomeras91

Copy link
Copy Markdown
Collaborator

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5616 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5616 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #4101 completed with status: 'FAILURE'

Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
@tomeras91

Copy link
Copy Markdown
Collaborator

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5623 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5623 [ run ] completed with state FAILURE
/LLM/main/L0_MergeRequest_PR pipeline #4107 completed with status: 'FAILURE'

Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
@tomeras91

Copy link
Copy Markdown
Collaborator

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5628 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #5628 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #4112 completed with status: 'SUCCESS'

@suyoggupta
suyoggupta enabled auto-merge (squash) May 19, 2025 08:03
@suyoggupta
suyoggupta self-requested a review May 19, 2025 08:05
auto-merge was automatically disabled May 19, 2025 10:52

Pull Request is not mergeable

@tomeras91

Copy link
Copy Markdown
Collaborator

/bot run

1 similar comment
@netanel-haber

Copy link
Copy Markdown
Collaborator

/bot run

@tomeras91

Copy link
Copy Markdown
Collaborator

Replaced by PR #4444

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants