Skip to content

Conversation

reasonsolo
Copy link
Collaborator

@reasonsolo reasonsolo commented Jul 18, 2025

Description

Add accuracy tests for Qwen3 disaggregated serving.

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.

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.

Summary by CodeRabbit

  • New Features

    • Added accuracy reference data for the Qwen3 8B model, including quantized and baseline results.
    • Introduced new integration tests for Qwen3 8B model accuracy and disaggregated serving scenarios.
    • Expanded single GPU disaggregated tests to include the Qwen3 8B FP8 model with various configuration combinations.
  • Refactor

    • Improved test path resolution logic for model selection in single GPU disaggregated tests.
  • Chores

    • Updated test lists to include new Qwen3 8B accuracy and disaggregated test cases for enhanced coverage.

@reasonsolo reasonsolo requested a review from Tabrizian July 18, 2025 09:08
Copy link
Contributor

coderabbitai bot commented Jul 18, 2025

📝 Walkthrough

Walkthrough

This update introduces support and integration tests for the Qwen3 8B model, including accuracy references, disaggregated serving, and single GPU scenarios. It adds new test classes, parameterized test cases, and updates test lists to cover various configurations, including quantized (FP8) variants. Model path resolution logic is refactored for maintainability.

Changes

Cohort / File(s) Change Summary
Accuracy Reference Update
tests/integration/defs/accuracy/references/gsm8k.yaml
Added Qwen3/Qwen3-8B model with baseline and FP8 quantized accuracy records (both 87.1114).
Disaggregated Serving Accuracy Test
tests/integration/defs/accuracy/test_disaggregated_serving.py
Introduced TestQwen3_8B class for integration testing of Qwen3 8B in disaggregated serving, with parameterized tests for overlap scheduler.
Disaggregated Single GPU Test & Refactor
tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py
Refactored model path resolution using a dictionary; added test_disaggregated_simple_qwen3 covering Qwen3-8B-FP8 with parameterization over overlap and CUDA graph.
Test List: DGX H100
tests/integration/test_lists/test-db/l0_dgx_h100.yml
Added two new entries for Qwen3 8B disaggregated serving accuracy tests with overlap scheduler True/False.
Test List: H100 Single GPU
tests/integration/test_lists/test-db/l0_h100.yml
Added four new entries for disaggregated single GPU Qwen3-8B-FP8 tests covering all combinations of overlap and CUDA graph flags.
Test List: QA Examples
tests/integration/test_lists/qa/examples_test_list.txt
Appended six new test case entries for Qwen3 8B model: two for disaggregated serving accuracy (overlap scheduler True/False), four for single GPU FP8 variant (all flag combinations).

Sequence Diagram(s)

sequenceDiagram
    participant Tester
    participant LLMServer (Disaggregated)
    participant GSM8K Evaluation

    Tester->>LLMServer (Disaggregated): Launch with Qwen3-8B model (various configs)
    LLMServer (Disaggregated)->>Tester: Ready
    Tester->>LLMServer (Disaggregated): Submit GSM8K evaluation task
    LLMServer (Disaggregated)->>GSM8K Evaluation: Run evaluation
    GSM8K Evaluation-->>LLMServer (Disaggregated): Return accuracy
    LLMServer (Disaggregated)-->>Tester: Report results
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • yiqingy0
  • litaotju
  • yilin-void
  • brb-nv
  • Shixiaowei02

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 8bb4fad and 9088d73.

📒 Files selected for processing (1)
  • tests/integration/test_lists/test-db/l0_h100.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • tests/integration/test_lists/test-db/l0_h100.yml
✨ Finishing Touches
🧪 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.

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/disaggregated/test_disaggregated_single_gpu.py (1)

236-236: Fix line length violation.

The line exceeds the 120-character limit. Consider breaking it into multiple lines for better readability.

-        " The capital of Germany is Berlin. \n\n2. What is the largest planet in our solar system? The largest planet in our",
+        " The capital of Germany is Berlin. \n\n2. What is the largest planet in our solar system? "
+        "The largest planet in our",
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a95f31e and 65457d9.

📒 Files selected for processing (4)
  • tests/integration/defs/accuracy/references/gsm8k.yaml (1 hunks)
  • tests/integration/defs/accuracy/test_disaggregated_serving.py (1 hunks)
  • tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py (2 hunks)
  • tests/integration/test_lists/test-db/l0_dgx_h100.yml (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (2)
tests/integration/defs/accuracy/test_disaggregated_serving.py (2)
tests/integration/defs/accuracy/accuracy_core.py (4)
  • LlmapiAccuracyTestHarness (726-737)
  • GSM8K (286-299)
  • evaluate (146-199)
  • evaluate (678-688)
tests/integration/defs/conftest.py (1)
  • llm_models_root (77-83)
tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py (3)
tests/unittest/_torch/test_trtllm_sampler.py (1)
  • model_path (21-22)
tests/unittest/llmapi/apps/_test_openai_chat_structural_tag.py (1)
  • model_name (17-18)
tests/integration/defs/conftest.py (1)
  • llm_models_root (77-83)
🪛 Ruff (0.12.2)
tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py

236-236: Line too long (126 > 120)

(E501)

🔇 Additional comments (5)
tests/integration/defs/accuracy/references/gsm8k.yaml (1)

71-75: Verify identical accuracy values for baseline and FP8 quantization.

The baseline accuracy (87.1114) and FP8 quantized accuracy (87.1114) are identical. While this is possible, it's unusual for quantization to preserve accuracy exactly. Please confirm these values are correct and not placeholder data.

tests/integration/test_lists/test-db/l0_dgx_h100.yml (1)

39-40: LGTM! Test configuration is consistent.

The new test entries for TestQwen3_8B follow the correct format and are properly configured for the pre_merge stage with appropriate GPU requirements.

tests/integration/defs/accuracy/test_disaggregated_serving.py (1)

426-458: LGTM! Test implementation follows established patterns.

The new TestQwen3_8B class is well-implemented:

  • Proper inheritance from LlmapiAccuracyTestHarness
  • Correct parametrization for overlap_scheduler testing
  • Uses GSM8K evaluation task consistent with the accuracy reference data
  • Appropriate timeout setting for disaggregated serving tests
tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py (2)

29-43: LGTM! Good refactoring to centralize model path management.

The introduction of the MODEL_PATHS dictionary is a clean improvement that makes path resolution more maintainable and easier to extend.


227-241: LGTM! Test implementation is consistent with existing patterns.

The new test function follows the established pattern for disaggregated single GPU testing with appropriate parameterization and expected output validation.

@reasonsolo reasonsolo force-pushed the trtllm6357_qwen3acctest branch from 65457d9 to 714f8e8 Compare July 21, 2025 02:09
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 (2)
tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py (2)

29-43: Consider using exact key matching instead of substring matching.

The current implementation uses substring matching (if name in model_name) which could lead to incorrect matches if model names contain substrings of other model names.

Consider this more robust approach:

def model_path(model_name):
    llm_models_root = os.environ["LLM_MODELS_ROOT"]
-   for name, path in MODEL_PATHS.items():
-       if name in model_name:
-           return os.path.join(llm_models_root, path)
+   if model_name in MODEL_PATHS:
+       return os.path.join(llm_models_root, MODEL_PATHS[model_name])
    raise ValueError(f"Unknown model: {model_name}")

Alternatively, if substring matching is intentional, consider using model_name.endswith(name) for more predictable behavior.


236-236: Fix line length to comply with style guidelines.

The line exceeds the 120-character limit. Consider breaking it:

-        " The capital of Germany is Berlin. \n\n2. What is the largest planet in our solar system? The largest planet in our",
+        " The capital of Germany is Berlin. \n\n2. What is the largest planet in our solar system? "
+        "The largest planet in our",
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 65457d9 and 714f8e8.

📒 Files selected for processing (5)
  • tests/integration/defs/accuracy/references/gsm8k.yaml (1 hunks)
  • tests/integration/defs/accuracy/test_disaggregated_serving.py (1 hunks)
  • tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py (2 hunks)
  • tests/integration/test_lists/test-db/l0_dgx_h100.yml (1 hunks)
  • tests/integration/test_lists/test-db/l0_h100.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • tests/integration/test_lists/test-db/l0_dgx_h100.yml
  • tests/integration/defs/accuracy/references/gsm8k.yaml
  • tests/integration/defs/accuracy/test_disaggregated_serving.py
🧰 Additional context used
🧬 Code Graph Analysis (1)
tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py (3)
tests/unittest/_torch/test_trtllm_sampler.py (1)
  • model_path (21-22)
tests/unittest/llmapi/apps/_test_openai_chat_structural_tag.py (1)
  • model_name (17-18)
tests/integration/defs/conftest.py (1)
  • llm_models_root (77-83)
🪛 Ruff (0.12.2)
tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py

236-236: Line too long (126 > 120)

(E501)

⏰ 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
🔇 Additional comments (2)
tests/integration/test_lists/test-db/l0_h100.yml (1)

62-65: LGTM! Test entries properly added for Qwen3-8B-FP8.

The four new test entries follow the established naming convention and parameter combination pattern consistent with other model tests in this configuration file.

tests/integration/defs/disaggregated/test_disaggregated_single_gpu.py (1)

227-241: Well-implemented test function for Qwen3-8B-FP8 model.

The test follows the established pattern and is properly parameterized. The test is now correctly registered in the test list configuration, addressing the previous concern about registration.

@reasonsolo
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12402 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@reasonsolo reasonsolo requested review from a team as code owners July 21, 2025 09:01
@reasonsolo reasonsolo force-pushed the trtllm6357_qwen3acctest branch from e49d5b9 to ddf761f Compare July 21, 2025 09:03
@reasonsolo
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12434 [ run ] triggered by Bot

@reasonsolo reasonsolo self-assigned this Jul 21, 2025
@reasonsolo
Copy link
Collaborator Author

/bot run

@coderabbitai coderabbitai bot requested a review from Shixiaowei02 July 31, 2025 02:51
@tensorrt-cicd
Copy link
Collaborator

PR_Github #13596 [ run ] triggered by Bot

@reasonsolo
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13649 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13596 [ run ] completed with state ABORTED
/LLM/main/L0_MergeRequest_PR pipeline #10195 completed with status: 'FAILURE'

@tensorrt-cicd
Copy link
Collaborator

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

@raayandhar
Copy link
Contributor

/bot run --only-multi-gpu-test --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13706 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13706 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #10296 (Partly Tested) completed with status: 'SUCCESS'

@raayandhar
Copy link
Contributor

/bot run --reuse-test

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13719 [ run ] triggered by Bot

@reasonsolo
Copy link
Collaborator Author

/bot run --reuse-test

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13752 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13719 [ run ] completed with state ABORTED

@tensorrt-cicd
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community want to contribute PRs initiated from Community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants