Skip to content

Conversation

@nv-guomingz
Copy link
Collaborator

@nv-guomingz nv-guomingz commented Jul 28, 2025

Remove the explicit --backend pytorch for trtllm-serve doc and example since we've set the PyTorch as the default backend with #5717

Summary by CodeRabbit

  • Documentation

    • Removed the explicit --backend pytorch option from all trtllm-serve command examples and related documentation, simplifying usage instructions across blogs, READMEs, and guides.
  • Tests

    • Updated test fixtures and scripts to omit the --backend pytorch argument when launching servers, aligning tests with the streamlined command usage.

@nv-guomingz nv-guomingz requested review from LinPoly and syuoni July 28, 2025 16:47
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 28, 2025

📝 Walkthrough

Walkthrough

This change removes all explicit uses of the --backend pytorch argument from documentation, example scripts, and test code involving the trtllm-serve command. All command-line invocations and related documentation now rely on the default backend behavior, without specifying the backend explicitly. No changes are made to functional code or APIs.

Changes

Cohort / File(s) Change Summary
Documentation command examples
docs/source/commands/trtllm-serve.rst, docs/source/blogs/tech_blog/blog5_Disaggregated_Serving_in_TensorRT-LLM.md, docs/source/blogs/tech_blog/blog6_Llama4_maverick_eagle_guide.md
Removed all references and examples using --backend pytorch in documentation and blog command lines.
Disaggregated serving and model example READMEs
examples/disaggregated/README.md, examples/models/core/gemma/README.md, examples/models/core/llama/README.md, examples/models/core/llama4/README.md, examples/models/core/qwen/README.md
Removed --backend pytorch from all example trtllm-serve commands in model and disaggregated READMEs.
Script and shell command examples
examples/llm-api/llm_mgmn_trtllm_serve.sh, examples/serve/deepseek_r1_reasoning_parser.sh
Removed --backend pytorch from shell script and serve command examples.
Integration and unit tests
tests/integration/defs/disaggregated/test_disaggregated_etcd.py, tests/unittest/llmapi/apps/_test_openai_chat_json.py, tests/unittest/llmapi/apps/_test_openai_chat_multimodal.py, tests/unittest/llmapi/apps/_test_openai_chat_structural_tag.py, tests/unittest/llmapi/apps/_test_trtllm_serve_duplicated_args.py
Removed --backend pytorch from all test server command invocations and argument lists.

Sequence Diagram(s)

No sequence diagrams generated, as the changes are limited to documentation, scripts, and test argument lists.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

Documentation, Community want to contribute

Suggested reviewers

  • litaotju
  • syuoni
  • kaiyux

Note

⚡️ Unit Test Generation is now available in beta!

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

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from 24e3be9 to 2f353f3 Compare July 28, 2025 16:47
@nv-guomingz
Copy link
Collaborator Author

/bot run

@coderabbitai coderabbitai bot requested review from kaiyux and litaotju July 28, 2025 16:47
@coderabbitai coderabbitai bot added Community want to contribute PRs initiated from Community Doc <NV>TRTLLM's textual/illustrative materials: API refs, guides, tutorials. Improvement & clarity. labels Jul 28, 2025
@tensorrt-cicd
Copy link
Collaborator

PR_Github #13222 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13222 [ run ] completed with state FAILURE

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from 2f353f3 to 0db508a Compare July 29, 2025 02:06
@nv-guomingz
Copy link
Collaborator Author

/bot run

@coderabbitai coderabbitai bot requested a review from Superjomn July 29, 2025 02:06
@nv-guomingz nv-guomingz removed Doc <NV>TRTLLM's textual/illustrative materials: API refs, guides, tutorials. Improvement & clarity. Community want to contribute PRs initiated from Community labels Jul 29, 2025
@tensorrt-cicd
Copy link
Collaborator

PR_Github #13269 [ run ] triggered by Bot

@nv-guomingz nv-guomingz changed the title chore: add trtllm-serve json schema example into doc. chore: update trtllm-serve usage doc by removing backend parameter when it use torch as backend. Jul 29, 2025
@tensorrt-cicd
Copy link
Collaborator

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

Copy link
Collaborator

@LinPoly LinPoly left a comment

Choose a reason for hiding this comment

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

LGTM

@syuoni
Copy link
Collaborator

syuoni commented Jul 29, 2025

Hi @nv-guomingz @LinPoly ,

This might be out of the scope of this PR, but I found that the TensorRT backend has different names across commands:

Should we unify them before 1.0?

@nv-guomingz
Copy link
Collaborator Author

nv-guomingz commented Jul 29, 2025

Hi @nv-guomingz @LinPoly ,

This might be out of the scope of this PR, but I found that the TensorRT backend has different names across commands:

Should we unify them before 1.0?

Good catch. If you don't mind, I wanna to update it in another PR to make the dedicated changes. @syuoni

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from 0db508a to d3104a1 Compare July 29, 2025 08:34
@nv-guomingz
Copy link
Collaborator Author

/bot reuse-pipeline

@coderabbitai coderabbitai bot requested review from litaotju and syuoni July 29, 2025 08:35
@nv-guomingz
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13335 [ reuse-pipeline ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from f1c4f2e to af04666 Compare July 29, 2025 17:16
@nv-guomingz
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

🔭 Outside diff range comments (1)
examples/disaggregated/README.md (1)

112-116: Fix typo refersh_intervalrefresh_interval

-refersh_interval: 10.0
+refresh_interval: 10.0
🧹 Nitpick comments (5)
examples/disaggregated/README.md (5)

28-36: Remove residual double-spaces after --port for cleaner CLI snippets

Extra spaces remained after the --port flag when the --backend pytorch token was deleted. They are harmless but visually noisy and propagate into copy-pasted commands.

-CUDA_VISIBLE_DEVICES=0 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8001  --extra_llm_api_options ./context_extra-llm-api-config.yml &> log_ctx_0 &
-CUDA_VISIBLE_DEVICES=1 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8002  --extra_llm_api_options ./context_extra-llm-api-config.yml &> log_ctx_1 &
-CUDA_VISIBLE_DEVICES=2 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8003  --extra_llm_api_options ./gen_extra-llm-api-config.yml &> log_gen_0 &
+CUDA_VISIBLE_DEVICES=0 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8001 --extra_llm_api_options ./context_extra-llm-api-config.yml &> log_ctx_0 &
+CUDA_VISIBLE_DEVICES=1 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8002 --extra_llm_api_options ./context_extra-llm-api-config.yml &> log_ctx_1 &
+CUDA_VISIBLE_DEVICES=2 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8003 --extra_llm_api_options ./gen_extra-llm-api-config.yml &> log_gen_0 &

98-103: Apply the same spacing tidy-up in dynamic-scaling examples

The commands in the ETCD section still carry the double space after --port. Align them with the static-launch examples for consistency.

-CUDA_VISIBLE_DEVICES=0 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8001  --server_role CONTEXT ...
+CUDA_VISIBLE_DEVICES=0 trtllm-serve TinyLlama/TinyLlama-1.1B-Chat-v1.0 --host localhost --port 8001 --server_role CONTEXT ...

(Repeat for ports 8002 and 8003.)


124-129: Indentation off-by-one in added-server snippet

Line 126 is indented by five spaces whereas the surrounding flag lines use four, breaking alignment inside the code block.

-     --server_role GENERATION \
+    --server_role GENERATION \

181-183: Typo in section heading

Know IssuesKnown Issues.


48-60: Optional: clarify that backend: pytorch is redundant

Since PyTorch is now the default backend, specifying it in disagg_config.yaml is optional. Consider adding a brief note (or removing the field) to prevent confusion after dropping the --backend CLI flag.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between f1c4f2e and af04666.

📒 Files selected for processing (15)
  • docs/source/blogs/tech_blog/blog5_Disaggregated_Serving_in_TensorRT-LLM.md (1 hunks)
  • docs/source/blogs/tech_blog/blog6_Llama4_maverick_eagle_guide.md (1 hunks)
  • docs/source/commands/trtllm-serve.rst (5 hunks)
  • examples/disaggregated/README.md (3 hunks)
  • examples/llm-api/llm_mgmn_trtllm_serve.sh (0 hunks)
  • examples/models/core/gemma/README.md (0 hunks)
  • examples/models/core/llama/README.md (0 hunks)
  • examples/models/core/llama4/README.md (0 hunks)
  • examples/models/core/qwen/README.md (0 hunks)
  • examples/serve/deepseek_r1_reasoning_parser.sh (0 hunks)
  • tests/integration/defs/disaggregated/test_disaggregated_etcd.py (2 hunks)
  • tests/unittest/llmapi/apps/_test_openai_chat_json.py (1 hunks)
  • tests/unittest/llmapi/apps/_test_openai_chat_multimodal.py (1 hunks)
  • tests/unittest/llmapi/apps/_test_openai_chat_structural_tag.py (1 hunks)
  • tests/unittest/llmapi/apps/_test_trtllm_serve_duplicated_args.py (1 hunks)
💤 Files with no reviewable changes (6)
  • examples/llm-api/llm_mgmn_trtllm_serve.sh
  • examples/serve/deepseek_r1_reasoning_parser.sh
  • examples/models/core/gemma/README.md
  • examples/models/core/llama4/README.md
  • examples/models/core/llama/README.md
  • examples/models/core/qwen/README.md
✅ Files skipped from review due to trivial changes (2)
  • docs/source/blogs/tech_blog/blog6_Llama4_maverick_eagle_guide.md
  • docs/source/commands/trtllm-serve.rst
🚧 Files skipped from review as they are similar to previous changes (6)
  • tests/integration/defs/disaggregated/test_disaggregated_etcd.py
  • tests/unittest/llmapi/apps/_test_openai_chat_structural_tag.py
  • tests/unittest/llmapi/apps/_test_trtllm_serve_duplicated_args.py
  • tests/unittest/llmapi/apps/_test_openai_chat_json.py
  • tests/unittest/llmapi/apps/_test_openai_chat_multimodal.py
  • docs/source/blogs/tech_blog/blog5_Disaggregated_Serving_in_TensorRT-LLM.md
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
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.
Learnt from: CR
PR: NVIDIA/TensorRT-LLM#0
File: CODING_GUIDELINES.md:0-0
Timestamp: 2025-07-29T08:25:52.877Z
Learning: Applies to **/*.py : The code developed for TensorRT-LLM should conform to Python 3.8+.
examples/disaggregated/README.md (2)

Learnt from: yechank-nvidia
PR: #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.

Learnt from: moraxu
PR: #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.

🪛 markdownlint-cli2 (0.17.2)
examples/disaggregated/README.md

35-35: Unordered list style
Expected: dash; Actual: asterisk

(MD004, ul-style)

⏰ 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

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13399 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from af04666 to 2e48c8e Compare July 30, 2025 04:30
@nv-guomingz
Copy link
Collaborator Author

/bot run --stage-list "H100_PCIe-TensorRT-Perf-1"

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13474 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from 2e48c8e to d4028cd Compare July 30, 2025 06:48
@nv-guomingz
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13499 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from d4028cd to 016242e Compare July 30, 2025 10:49
@nv-guomingz
Copy link
Collaborator Author

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13526 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@nv-guomingz nv-guomingz force-pushed the user/guomingz/trtllm-serve-backend-doc branch from 016242e to b6696e8 Compare July 30, 2025 14:49
@nv-guomingz
Copy link
Collaborator Author

/bot reuse-pipeline

@nv-guomingz nv-guomingz enabled auto-merge (squash) July 30, 2025 14:49
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)
examples/disaggregated/README.md (1)

82-84: Add fenced-block language identifier to silence markdown-lint warnings
markdownlint-cli2 reports MD040 because this fenced block lacks a language tag.

-```
+```bash
 python3 ./clients/disagg_client.py -c disagg_config.yaml -p ./clients/prompts.json -e chat

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

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


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 016242e6401ffb3ec6b5119754bc06fcc648a0b2 and b6696e88f493366bbc60361819dc0d35374faa48.

</details>

<details>
<summary>📒 Files selected for processing (15)</summary>

* `docs/source/blogs/tech_blog/blog5_Disaggregated_Serving_in_TensorRT-LLM.md` (1 hunks)
* `docs/source/blogs/tech_blog/blog6_Llama4_maverick_eagle_guide.md` (1 hunks)
* `docs/source/commands/trtllm-serve.rst` (5 hunks)
* `examples/disaggregated/README.md` (3 hunks)
* `examples/llm-api/llm_mgmn_trtllm_serve.sh` (0 hunks)
* `examples/models/core/gemma/README.md` (0 hunks)
* `examples/models/core/llama/README.md` (0 hunks)
* `examples/models/core/llama4/README.md` (0 hunks)
* `examples/models/core/qwen/README.md` (0 hunks)
* `examples/serve/deepseek_r1_reasoning_parser.sh` (0 hunks)
* `tests/integration/defs/disaggregated/test_disaggregated_etcd.py` (2 hunks)
* `tests/unittest/llmapi/apps/_test_openai_chat_json.py` (1 hunks)
* `tests/unittest/llmapi/apps/_test_openai_chat_multimodal.py` (1 hunks)
* `tests/unittest/llmapi/apps/_test_openai_chat_structural_tag.py` (1 hunks)
* `tests/unittest/llmapi/apps/_test_trtllm_serve_duplicated_args.py` (1 hunks)

</details>

<details>
<summary>💤 Files with no reviewable changes (6)</summary>

* examples/llm-api/llm_mgmn_trtllm_serve.sh
* examples/serve/deepseek_r1_reasoning_parser.sh
* examples/models/core/llama/README.md
* examples/models/core/llama4/README.md
* examples/models/core/gemma/README.md
* examples/models/core/qwen/README.md

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (5)</summary>

* docs/source/blogs/tech_blog/blog6_Llama4_maverick_eagle_guide.md
* tests/unittest/llmapi/apps/_test_openai_chat_structural_tag.py
* tests/unittest/llmapi/apps/_test_openai_chat_multimodal.py
* docs/source/commands/trtllm-serve.rst
* tests/unittest/llmapi/apps/_test_openai_chat_json.py

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (3)</summary>

* tests/unittest/llmapi/apps/_test_trtllm_serve_duplicated_args.py
* tests/integration/defs/disaggregated/test_disaggregated_etcd.py
* docs/source/blogs/tech_blog/blog5_Disaggregated_Serving_in_TensorRT-LLM.md

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🧠 Learnings (2)</summary>

<details>
<summary>📓 Common learnings</summary>

Learnt from: moraxu
PR: #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.


Learnt from: CR
PR: NVIDIA/TensorRT-LLM#0
File: CODING_GUIDELINES.md:0-0
Timestamp: 2025-07-30T06:11:42.362Z
Learning: Applies to **/*.py : The code developed for TensorRT-LLM should conform to Python 3.8+.


</details>
<details>
<summary>examples/disaggregated/README.md (2)</summary>

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.

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.

</details>

</details><details>
<summary>🪛 markdownlint-cli2 (0.17.2)</summary>

<details>
<summary>examples/disaggregated/README.md</summary>

101-101: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

</details>

<details>
<summary>⏰ 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)</summary>

* GitHub Check: Pre-commit Check

</details>

<details>
<summary>🔇 Additional comments (5)</summary><blockquote>

<details>
<summary>examples/disaggregated/README.md (5)</summary>

`28-29`: **Removal of `--backend pytorch` is correct and keeps the example in-sync with the new default backend**

No further action required for these two context-server commands.

---

`35-35`: **Likewise, generation-server example is now backend-agnostic**

Looks good.

---

`98-99`: **Dynamic-scaling context-server commands also updated correctly**

Change aligns with the default backend behaviour.

---

`102-102`: **Generation-server dynamic-scaling command updated**

Nothing else to flag.

---

`126-126`: **Newly-added generation server example consistent with prior updates**

All good here.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13548 [ reuse-pipeline ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #13548 [ reuse-pipeline ] completed with state SUCCESS
Reusing PR_Github #13526 for commit b6696e8

@nv-guomingz nv-guomingz merged commit 03e38c9 into NVIDIA:main Jul 30, 2025
3 checks passed
lancelly pushed a commit to lancelly/TensorRT-LLM that referenced this pull request Aug 6, 2025
…en it use torch as backend. (NVIDIA#6419)

Signed-off-by: nv-guomingz <[email protected]>
Signed-off-by: Lanyu Liao <[email protected]>
jain-ria pushed a commit to jain-ria/TensorRT-LLM that referenced this pull request Aug 7, 2025
@nv-guomingz nv-guomingz deleted the user/guomingz/trtllm-serve-backend-doc branch September 30, 2025 08:11
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.

5 participants