Skip to content

Conversation

leslie-fang25
Copy link
Collaborator

@leslie-fang25 leslie-fang25 commented Aug 6, 2025

Summary by CodeRabbit

Summary by CodeRabbit

  • Documentation
    • Updated the feature combination matrix to clarify compatibility statuses for "Chunked Prefill" with "Disaggregated Serving" and "EAGLE-3(Two Model Engine)" with "Overlap Scheduler."
  • Tests
    • Added new test coverage for chunked prefill functionality with the Qwen3 8B model.
    • Improved test structure for disaggregated serving configurations to enhance code reuse.

Description

This PR mainly update the feature combination matrix of disaggregated:

  • disaggregated with chunked_prefill: verified and added the test case in this PR
  • disaggregated with kv cache reuse: verified by checking cache_hit_rate
    kv_stats_to_save.cache_hit_rate = kv_stats.cache_hit_rate
    larger than 0 when running the test case.
  • disaggregated with SWA: test case already existing as test_disaggregated_serving.py::TestGemma3_1BInstruct::test_auto_dtype.

Test Coverage

python -u -m pytest -s -v tests/integration/defs/accuracy/test_disaggregated_serving.py::TestQwen3_8B::test_chunked_prefill

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.

@leslie-fang25 leslie-fang25 requested a review from a team as a code owner August 6, 2025 08:54
Copy link
Contributor

coderabbitai bot commented Aug 6, 2025

📝 Walkthrough

Walkthrough

This change updates compatibility entries in the feature combination matrix documentation, marking "Chunked Prefill," "KV Cache Reuse," and "Slide Window Attention" as compatible with "Disaggregated Serving." It refactors the TestQwen3_8B integration test class to add a helper method for default server configs, updates an existing parameterized test, and adds a new test for chunked prefill. The new test is also added to the l0_dgx_h100.yml test list.

Changes

Cohort / File(s) Change Summary
Feature Combination Matrix Documentation
docs/source/torch/features/feature_combination_matrix.md
Updated compatibility statuses for "Chunked Prefill," "KV Cache Reuse," and "Slide Window Attention" with "Disaggregated Serving" from "Untested" to "Yes"; corrected "EAGLE-3" with "Overlap Scheduler" from uppercase "NO" to lowercase "No".
Integration Tests for Disaggregated Serving
tests/integration/defs/accuracy/test_disaggregated_serving.py
Refactored TestQwen3_8B to add _get_default_config helper, updated test_auto_dtype to use it with parameterization, and added test_chunked_prefill test method.
Test List Configuration
tests/integration/test_lists/test-db/l0_dgx_h100.yml
Added test_chunked_prefill test case from TestQwen3_8B to the l0_dgx_h100 test list for expanded coverage.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

Documentation, Disaggregated Serving, CI

Suggested reviewers

  • yilin-void
  • litaotju
  • syuoni

📜 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 79c1551 and 559cd57.

📒 Files selected for processing (1)
  • docs/source/torch/features/feature_combination_matrix.md (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • docs/source/torch/features/feature_combination_matrix.md
⏰ 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 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.
  • 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.

Support

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

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.

@leslie-fang25 leslie-fang25 requested a review from QiJune August 6, 2025 08:54
@leslie-fang25
Copy link
Collaborator Author

/bot run

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)
docs/source/torch/features/feature_combination_matrix.md (1)

12-12: Minor consistency nit – double-check for any remaining “NO” capitalisation.
You fixed the casing here, but if any other rows/columns still contain an uppercase “NO”, consider normalising them to “No” for stylistic consistency throughout the table.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 0ff8df9 and 4f39e3a.

📒 Files selected for processing (1)
  • docs/source/torch/features/feature_combination_matrix.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in tensorrt-llm testing, it's common to have both cli flow tests (test_cli_flow.py) and pytorch api ...
Learnt from: moraxu
PR: NVIDIA/TensorRT-LLM#6303
File: tests/integration/test_lists/qa/examples_test_list.txt:494-494
Timestamp: 2025-07-28T17:06:08.621Z
Learning: In TensorRT-LLM testing, it's common to have both CLI flow tests (test_cli_flow.py) and PyTorch API tests (test_llm_api_pytorch.py) for the same model. These serve different purposes: CLI flow tests validate the traditional command-line workflow, while PyTorch API tests validate the newer LLM API backend. Both are legitimate and should coexist.

Applied to files:

  • docs/source/torch/features/feature_combination_matrix.md
🔇 Additional comments (1)
docs/source/torch/features/feature_combination_matrix.md (1)

9-9: Update accurately reflects unsupported “Chunked Prefill × Disaggregated Serving”.
The change to “No” aligns the matrix with the current trtllm-serve limitation (enable_chunked_prefill flag not supported). Looks good.

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14281 [ run ] triggered by Bot

@leslie-fang25 leslie-fang25 marked this pull request as draft August 6, 2025 09:16
@leslie-fang25
Copy link
Collaborator Author

/bot run

@leslie-fang25 leslie-fang25 marked this pull request as ready for review August 6, 2025 10:00
@tensorrt-cicd
Copy link
Collaborator

PR_Github #14296 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14281 [ run ] completed with state ABORTED

@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14299 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14345 [ run ] triggered by Bot

@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14416 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14345 [ run ] completed with state ABORTED

@leslie-fang25 leslie-fang25 changed the title [None][doc] update feature_combination_matrix of disaggregated and chunked prefill [None][infra] update feature_combination_matrix of disaggregated and chunked prefill Aug 7, 2025
@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14424 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@nv-guomingz
Copy link
Collaborator

@leslie-fang25 Does this PR need to be cherry-picked into release/1.0 branch?

@leslie-fang25 leslie-fang25 force-pushed the leslie/update_disaggregated_feature_combination branch from 352c768 to cd6dfa1 Compare August 15, 2025 04:04
@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15393 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25 leslie-fang25 force-pushed the leslie/update_disaggregated_feature_combination branch from cd6dfa1 to 1cc91c3 Compare August 15, 2025 05:27
@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15404 [ run ] triggered by Bot

Copy link
Collaborator

@QiJune QiJune left a comment

Choose a reason for hiding this comment

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

LGTM

@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15495 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25 leslie-fang25 force-pushed the leslie/update_disaggregated_feature_combination branch 2 times, most recently from bb370fd to 1fbd151 Compare August 18, 2025 23:55
@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15670 [ run ] triggered by Bot

@leslie-fang25 leslie-fang25 force-pushed the leslie/update_disaggregated_feature_combination branch from 1fbd151 to 1e71ba2 Compare August 19, 2025 07:09
@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15738 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15670 [ run ] completed with state ABORTED

@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25
Copy link
Collaborator Author

/bot run

@leslie-fang25 leslie-fang25 force-pushed the leslie/update_disaggregated_feature_combination branch from 1e71ba2 to aa5e86c Compare August 19, 2025 10:57
@leslie-fang25
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15775 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15776 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #15775 [ run ] completed with state ABORTED

@tensorrt-cicd
Copy link
Collaborator

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

@leslie-fang25 leslie-fang25 merged commit 3f6a926 into NVIDIA:main Aug 20, 2025
4 checks passed
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.

4 participants