Skip to content

[None][infra] add eagle3 one model accuracy tests #6264

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

Merged
merged 2 commits into from
Aug 2, 2025

Conversation

jhaotingc
Copy link
Collaborator

@jhaotingc jhaotingc commented Jul 22, 2025

Summary by CodeRabbit

  • Tests

    • Expanded test coverage for the Eagle3 decoding algorithm by parameterizing tests with eagle3_one_model and overlap_scheduler options.
    • Updated test lists to specify parameterized test cases, enhancing clarity and granularity of test execution.
    • Added evaluation of the GSM8K task in relevant test scenarios for broader accuracy assessment.
    • Removed skip entries for Eagle3 tests to ensure full test execution.
  • Documentation

    • Updated accuracy references to include results for the Eagle decoding algorithm.

Description

Related PR:

#4940 @crazydemo
#5558 @Tabrizian
#5879 @xq25478

Test Coverage

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.

run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental)]

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

--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.

--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.

--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-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-PyTorch-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.

--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline 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 in addition to running 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-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx".

--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.

--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.

For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md
and the scripts/test_to_stage_mapping.py helper.

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.

Copy link
Contributor

coderabbitai bot commented Jul 22, 2025

📝 Walkthrough

Walkthrough

The changes parameterize the test_eagle3 test method in the TestLlama3_1_8BInstruct class to run with combinations of overlap_scheduler and eagle3_one_model boolean parameters. Corresponding server and decoding configurations are updated to reflect these parameters. Test lists and skip entries are modified to include or remove these parameterized variants. Additionally, a new "Eagle" decoding algorithm accuracy entry is added for the Llama-3.1-8B-Instruct model.

Changes

Cohort / File(s) Change Summary
Eagle3 Test Parameterization (Disaggregated Serving)
tests/integration/defs/accuracy/test_disaggregated_serving.py
test_eagle3 in TestLlama3_1_8BInstruct now parameterized with overlap_scheduler and eagle3_one_model (True/False); updated server and decoding configs use these parameters.
Eagle3 Test Parameterization (PyTorch API)
tests/integration/defs/accuracy/test_llm_api_pytorch.py
test_eagle3 in TestLlama3_1_8BInstruct parameterized with overlap_scheduler and eagle3_one_model; updated config includes batch size and block reuse settings; evaluation extended to include GSM8K task.
Accuracy Reference Update
tests/integration/defs/accuracy/references/gsm8k.yaml
Added "Eagle" decoding algorithm entry with accuracy 74.20 for meta-llama/Llama-3.1-8B-Instruct.
Test List Update: DGX H100
tests/integration/test_lists/test-db/l0_dgx_h100.yml
Added two parameterized test entries for test_eagle3 with parameter combinations [eagle3_one_model=False-overlap_scheduler=False] and [eagle3_one_model=True-overlap_scheduler=True].
Test List Update: H100
tests/integration/test_lists/test-db/l0_h100.yml
Added two parameterized test_eagle3 entries with parameter combinations [False-False] and [True-True] for PyTorch pre_merge stage.
Test List Update: QA Examples
tests/integration/test_lists/qa/examples_test_list.txt
Replaced single test_eagle3 invocation with two parameterized entries for eagle3_one_model=True/False and overlap_scheduler=True/False.
Test List Update: QA Digits Func
tests/integration/test_lists/qa/llm_release_digits_func.txt
Split single test_eagle3 case into two parameterized cases with eagle3_one_model and overlap_scheduler set to (False, False) and (True, True).
Test List Update: QA Sanity
tests/integration/test_lists/qa/llm_sanity_test.txt
Replaced single test_eagle3 entry with two parameterized entries enumerating eagle3_one_model and overlap_scheduler combinations (False, False) and (True, True).
Test Skip List Update
tests/integration/test_lists/waives.txt
Removed skip entry for test_eagle3 in TestLlama3_1_8BInstruct.

Sequence Diagram(s)

sequenceDiagram
    participant TestRunner
    participant TestClass
    participant DecodingConfig
    participant Evaluation

    TestRunner->>TestClass: test_eagle3(overlap_scheduler, eagle3_one_model)
    TestClass->>DecodingConfig: create with eagle3_one_model
    TestClass->>Evaluation: run evaluation with config
    Evaluation-->>TestClass: results
    TestClass-->>TestRunner: test outcome
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • byshiue
  • yilin-void
  • litaotju
  • syuoni

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f465363 and c977d2a.

📒 Files selected for processing (9)
  • tests/integration/defs/accuracy/references/gsm8k.yaml (1 hunks)
  • tests/integration/defs/accuracy/test_disaggregated_serving.py (1 hunks)
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py (2 hunks)
  • tests/integration/test_lists/qa/examples_test_list.txt (1 hunks)
  • tests/integration/test_lists/qa/llm_release_digits_func.txt (1 hunks)
  • tests/integration/test_lists/qa/llm_sanity_test.txt (1 hunks)
  • tests/integration/test_lists/test-db/l0_dgx_h100.yml (1 hunks)
  • tests/integration/test_lists/test-db/l0_h100.yml (1 hunks)
  • tests/integration/test_lists/waives.txt (0 hunks)
💤 Files with no reviewable changes (1)
  • tests/integration/test_lists/waives.txt
🚧 Files skipped from review as they are similar to previous changes (8)
  • tests/integration/test_lists/qa/llm_release_digits_func.txt
  • tests/integration/defs/accuracy/references/gsm8k.yaml
  • tests/integration/test_lists/test-db/l0_h100.yml
  • tests/integration/test_lists/test-db/l0_dgx_h100.yml
  • tests/integration/test_lists/qa/llm_sanity_test.txt
  • tests/integration/test_lists/qa/examples_test_list.txt
  • tests/integration/defs/accuracy/test_disaggregated_serving.py
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Pre-commit Check
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jhaotingc
Copy link
Collaborator Author

/bot run --disable-fail-fast

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
tests/integration/defs/accuracy/test_disaggregated_serving.py (1)

344-344: Clarify the comment for max_num_tokens.

The comment # BS is unclear - consider using a more descriptive comment to explain why the generation server has a lower token limit (2048) compared to the context server (13393 * 2).

-            "max_num_tokens": 2048,  # BS
+            "max_num_tokens": 2048,  # Lower token limit for generation server
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ff99639 and e378410.

📒 Files selected for processing (1)
  • tests/integration/defs/accuracy/test_disaggregated_serving.py (1 hunks)
🔇 Additional comments (2)
tests/integration/defs/accuracy/test_disaggregated_serving.py (2)

318-367: LGTM! Well-structured Eagle3 one model accuracy test.

The test follows the established pattern and correctly configures Eagle3 speculative decoding with the one model variant enabled. The parameterization over enable_block_reuse provides good test coverage.


335-335: Verify asymmetric max_num_tokens configuration is intentional.

The context server is configured with max_num_tokens: 13393 * 2 while the generation server uses max_num_tokens: 2048. This asymmetric configuration differs from the existing test_eagle3 method where both servers use the same value.

Please confirm this asymmetric configuration is intentional for the Eagle3 one model test scenario.

Also applies to: 344-344

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12597 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12597 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #9374 completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

@jhaotingc jhaotingc force-pushed the add_disagg_eagle3_test branch 2 times, most recently from f3cf05d to 0df32bb Compare July 22, 2025 23:14
@jhaotingc jhaotingc changed the title add eagle3 one model disagg accuracy test add eagle3 one model accuracy tests Jul 22, 2025
@jhaotingc
Copy link
Collaborator Author

/bot run --disable-fail-fast

@jhaotingc jhaotingc requested a review from Tabrizian July 22, 2025 23:15
@tensorrt-cicd
Copy link
Collaborator

PR_Github #12615 [ run ] triggered by Bot

@jhaotingc jhaotingc requested review from crazydemo and byshiue July 22, 2025 23:22
@tensorrt-cicd
Copy link
Collaborator

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

@jhaotingc jhaotingc force-pushed the add_disagg_eagle3_test branch from aab7d64 to dea7c69 Compare July 23, 2025 06:40
@jhaotingc
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12664 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@jhaotingc
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12733 [ run ] triggered by Bot

@jhaotingc jhaotingc force-pushed the add_disagg_eagle3_test branch from 1384cea to 5bf95eb Compare July 23, 2025 19:42
@jhaotingc
Copy link
Collaborator Author

/bot kill

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12742 [ kill ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12733 [ run ] completed with state ABORTED

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12742 [ kill ] completed with state SUCCESS
Successfully killed previous jobs for commit 5bf95eb

@jhaotingc jhaotingc force-pushed the add_disagg_eagle3_test branch from 5bf95eb to 5264dcb Compare July 23, 2025 21:15
@jhaotingc
Copy link
Collaborator Author

/bot run --disable-fail-fast

@jhaotingc
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13716 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@jhaotingc jhaotingc changed the title add eagle3 one model accuracy tests [infra] add eagle3 one model accuracy tests Aug 1, 2025
@jhaotingc jhaotingc force-pushed the add_disagg_eagle3_test branch 2 times, most recently from 09119c0 to f465363 Compare August 1, 2025 22:36
@jhaotingc
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13843 [ run ] triggered by Bot

@jhaotingc jhaotingc changed the title [infra] add eagle3 one model accuracy tests [None][infra] add eagle3 one model accuracy tests Aug 1, 2025
@tensorrt-cicd
Copy link
Collaborator

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

@jhaotingc
Copy link
Collaborator Author

(random failure)

Signed-off-by: Jhao-Ting Chen <[email protected]>
@jhaotingc jhaotingc force-pushed the add_disagg_eagle3_test branch from f465363 to c977d2a Compare August 2, 2025 03:22
@jhaotingc
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13850 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@jhaotingc jhaotingc merged commit 4da5cfc into NVIDIA:main Aug 2, 2025
4 checks passed
@jhaotingc jhaotingc deleted the add_disagg_eagle3_test branch August 2, 2025 23:07
lancelly pushed a commit to lancelly/TensorRT-LLM that referenced this pull request Aug 6, 2025
jain-ria pushed a commit to jain-ria/TensorRT-LLM that referenced this pull request Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI automated tests, build checks, github actions, system stability & efficiency. Community want to contribute PRs initiated from Community Disaggregated Serving Deploying TRTLLM with separated, distributed components (params, kv-cache, compute). Arch & perf. Speculative Decoding Related to MTP/Eagle/Medusa/Lookahead/Prompt-Lookup-Decoding/Draft-Target-Model/ReDrafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants