Skip to content

Conversation

@timothygao8710
Copy link
Collaborator

@timothygao8710 timothygao8710 commented Oct 29, 2025

See #8164

Summary by CodeRabbit

  • Documentation
    • Added comprehensive guide on mixed precision context and generation for disaggregated serving, including prerequisites, example workflows (BF16 context with FP8 KV cache), and verification steps.

Description

Test Coverage

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

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 [--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.

timothygao8710 and others added 8 commits October 22, 2025 00:43
Added section on mixed precision context and generation, including prerequisites and example commands for setting up context and generation servers with different precisions.

Signed-off-by: Timothy Gao <35588167+timothygao8710@users.noreply.github.com>
Clarify mixed precision serving benefits in README.

Signed-off-by: Timothy Gao <35588167+timothygao8710@users.noreply.github.com>
Expanded explanation on mixed precision context and generation in disaggregated serving.

Signed-off-by: Timothy Gao <35588167+timothygao8710@users.noreply.github.com>
Clarify performance characteristics of prefill and decode workers in mixed precision context.

Signed-off-by: Timothy Gao <35588167+timothygao8710@users.noreply.github.com>
Signed-off-by: Timothy Gao <35588167+timothygao8710@users.noreply.github.com>
@timothygao8710 timothygao8710 marked this pull request as ready for review October 29, 2025 21:12
@timothygao8710 timothygao8710 requested review from a team as code owners October 29, 2025 21:12
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 29, 2025

📝 Walkthrough

Walkthrough

Adds a "Mixed Precision Context and Generation" section to the disaggregated serving README documenting prerequisites, example workflow using BF16 context with FP8 KV cache, and verification steps. The content appears duplicated at two insertion points in the diff.

Changes

Cohort / File(s) Summary
Documentation
examples/disaggregated/README.md
Added new section documenting mixed precision context and generation with setup prerequisites, workflow example, and verification instructions

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • No functional code changes; purely documentation additions
  • Verify content accuracy and consistency (section appears duplicated twice)
  • Check for formatting consistency with existing README sections

Pre-merge checks and finishing touches

❌ Failed checks (3 warnings)
Check name Status Explanation Resolution
Title Check ⚠️ Warning The PR title follows the general structure from the template but contains a formatting error that violates the specified format. The template examples show the ticket identifier and type should be concatenated without a space (e.g., [None][doc]), but this PR uses [None] [doc] with an intervening space. Additionally, the title text appears truncated, ending with "Disagg" instead of the complete word "Disaggregated." While the title does relate to the main changeset (adding a documentation section on mixed precision), it fails to adhere to the format requirements specified in the description template. Correct the PR title to follow the template format by removing the space between the ticket identifier and type: [None][doc] Add Mixed Precision Context and Generation section to Disaggregated. Ensure the title text is complete and not truncated. The corrected format should match the examples provided in the template, such as [None][chore] Minor clean-up.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Description check ⚠️ Warning The PR description is largely empty with only a reference to PR #8164 and the template structure visible. The Description, Test Coverage sections are blank, and substantive details about the changes are missing. Fill in the Description section explaining what documentation was added and why, and the Test Coverage section describing how these changes are verified.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • 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

Comment @coderabbitai help to get the list of available commands and usage tips.

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: 1

🧹 Nitpick comments (1)
examples/disaggregated/README.md (1)

217-217: Fix formatting inconsistency in section title.

The spacing in "BF 16 Gen, FP 8 Ctx" is inconsistent with usage elsewhere (lines 208, 262), where precision formats are written without spaces: "BF16" and "FP8".

-### Example (BF 16 Gen, FP 8 Ctx)
+### Example (BF16 Context, FP8 Generation)
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 834a780 and ce7cc06.

📒 Files selected for processing (1)
  • examples/disaggregated/README.md (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: venkywonka
PR: NVIDIA/TensorRT-LLM#6029
File: .github/pull_request_template.md:45-53
Timestamp: 2025-08-27T17:50:13.264Z
Learning: For PR templates in TensorRT-LLM, avoid suggesting changes that would increase developer overhead, such as converting plain bullets to mandatory checkboxes. The team prefers guidance-style bullets that don't require explicit interaction to reduce friction in the PR creation process.
📚 Learning: 2025-07-22T09:22:14.726Z
Learnt from: yechank-nvidia
PR: NVIDIA/TensorRT-LLM#6254
File: tensorrt_llm/_torch/pyexecutor/model_engine.py:1201-1204
Timestamp: 2025-07-22T09:22:14.726Z
Learning: In TensorRT-LLM's multimodal processing pipeline, shared tensor recovery using `from_shared_tensor()` is only needed during the context phase. Generation requests reuse the already-recovered tensor data and only need to call `strip_for_generation()` to remove unnecessary multimodal data while preserving the recovered tensors. This avoids redundant tensor recovery operations during generation.

Applied to files:

  • examples/disaggregated/README.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
🔇 Additional comments (1)
examples/disaggregated/README.md (1)

206-262: Verify claimed duplication in the AI summary.

The AI summary states: "The section appears twice in the diff, indicating duplication of the same content at two insertion points." However, the annotated code provided shows this section only once (lines 206–262). Please confirm whether duplication exists in the actual diff or if the summary is inaccurate.

@juney-nvidia juney-nvidia added Community want to contribute PRs initiated from Community Community Engagement help/insights needed from community labels Oct 30, 2025
timothygao8710 and others added 2 commits November 7, 2025 12:25
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Timothy Gao <35588167+timothygao8710@users.noreply.github.com>
Clarified mixed precision context and generation worker requirements and examples in README.

Signed-off-by: Timothy Gao <35588167+timothygao8710@users.noreply.github.com>
@Shixiaowei02
Copy link
Collaborator

Thanks for your contribution!

@chuangz0 chuangz0 enabled auto-merge (squash) November 12, 2025 07:18
@chuangz0
Copy link
Collaborator

/bot skip --comment "only doc update"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #24266 [ skip ] triggered by Bot. Commit: 8850f41

@tensorrt-cicd
Copy link
Collaborator

PR_Github #24266 [ skip ] completed with state SUCCESS. Commit: 8850f41
Skipping testing for commit 8850f41

@chuangz0 chuangz0 merged commit 96132b4 into NVIDIA:main Nov 12, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Engagement help/insights needed from community Community want to contribute PRs initiated from Community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants