Skip to content

Conversation

nv-guomingz
Copy link
Collaborator

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

Fix the issue that our doc doesn't show code snippets which raised by #5736

image

Summary by CodeRabbit

  • Documentation
    • Updated example file paths in multiple documentation files to ensure links to quickstart scripts are correct and functional.
    • Fixed references in DeepSeek-V3 and Qwen3 README files, as well as the PyTorch backend section, to point to the appropriate example scripts.

@nv-guomingz nv-guomingz requested a review from hchings July 24, 2025 03:35
Copy link
Contributor

coderabbitai bot commented Jul 24, 2025

📝 Walkthrough

Walkthrough

This update corrects relative file paths to example scripts in documentation files for the Llama model (PyTorch backend), DeepSeek-V3, and Qwen3. The changes ensure that references to quickstart example scripts point to their correct locations, improving documentation accuracy. No functional or code logic changes were made.

Changes

Files Change Summary
docs/source/torch.md Updated example script path from ../../examples/pytorch/quickstart.py to ../../examples/llm-api/quickstart_example.py.
examples/models/core/deepseek_v3/README.md, examples/models/core/qwen/README.md Corrected relative paths to quickstart_advanced.py in documentation to point to llm-api/quickstart_advanced.py.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • QiJune
  • litaotju

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 e7433d1 and f3e0d2d.

📒 Files selected for processing (3)
  • docs/source/torch.md (1 hunks)
  • examples/models/core/deepseek_v3/README.md (2 hunks)
  • examples/models/core/qwen/README.md (1 hunks)
✅ Files skipped from review due to trivial changes (3)
  • examples/models/core/qwen/README.md
  • docs/source/torch.md
  • examples/models/core/deepseek_v3/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
✨ Finishing Touches
🧪 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 requested a review from Superjomn July 24, 2025 03:36
Copy link
Collaborator

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

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

🔭 Outside diff range comments (1)
examples/models/core/deepseek_v3/README.md (1)

80-85: Relative path off by two levels

From examples/models/core/deepseek_v3/README.md, the link needs three .. segments to reach examples/llm-api, not one.

-To quickly run DeepSeek-V3, [examples/llm-api/quickstart_advanced.py](../llm-api/quickstart_advanced.py):
+To quickly run DeepSeek-V3, [examples/llm-api/quickstart_advanced.py](../../../llm-api/quickstart_advanced.py):
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 82d03ca and 85bb76f.

📒 Files selected for processing (3)
  • docs/source/torch.md (1 hunks)
  • examples/models/core/deepseek_v3/README.md (2 hunks)
  • examples/models/core/qwen/README.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
docs/source/torch.md (1)

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.

🪛 markdownlint-cli2 (0.17.2)
examples/models/core/deepseek_v3/README.md

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

(MD004, ul-style)

🔇 Additional comments (2)
examples/models/core/qwen/README.md (1)

627-631: Link update LGTM

The new relative path (../../../llm-api/quickstart_advanced.py) correctly resolves from examples/models/core/qwen/README.md back to examples/llm-api/quickstart_advanced.py.
No further action required.

examples/models/core/deepseek_v3/README.md (1)

97-101: Good catch on second link

This second reference already uses ../../../llm-api/quickstart_advanced.py and is therefore correct.

@nv-guomingz
Copy link
Collaborator Author

/bot run --stage-list "A10-Build_Docs"

@nv-guomingz nv-guomingz force-pushed the user/guomingz/fix_doc_example branch from 85bb76f to 91da752 Compare July 24, 2025 03:41
@coderabbitai coderabbitai bot requested review from litaotju and QiJune July 24, 2025 03:42
@coderabbitai coderabbitai bot added the Doc <NV>TRTLLM's textual/illustrative materials: API refs, guides, tutorials. Improvement & clarity. label Jul 24, 2025
@nv-guomingz nv-guomingz force-pushed the user/guomingz/fix_doc_example branch from 91da752 to e7433d1 Compare July 24, 2025 03:45
@tensorrt-cicd
Copy link
Collaborator

PR_Github #12787 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

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

@nv-guomingz nv-guomingz force-pushed the user/guomingz/fix_doc_example branch from e7433d1 to f3e0d2d Compare July 24, 2025 04:28
@nv-guomingz
Copy link
Collaborator Author

/bot skip --comment "docs change, build phase already passed"

@nv-guomingz nv-guomingz enabled auto-merge (squash) July 24, 2025 04:28
@tensorrt-cicd
Copy link
Collaborator

PR_Github #12795 [ skip ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12795 [ skip ] completed with state SUCCESS
Skipping testing for commit f3e0d2d

@nv-guomingz nv-guomingz merged commit 31d3eff into NVIDIA:main Jul 24, 2025
3 checks passed
NVShreyas pushed a commit to NVShreyas/TensorRT-LLM that referenced this pull request Jul 28, 2025
Ransiki pushed a commit to Ransiki/TensorRT-LLM that referenced this pull request Jul 29, 2025
lancelly pushed a commit to lancelly/TensorRT-LLM that referenced this pull request Aug 6, 2025
@coderabbitai coderabbitai bot mentioned this pull request Sep 8, 2025
1 task
@nv-guomingz nv-guomingz deleted the user/guomingz/fix_doc_example branch September 30, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doc <NV>TRTLLM's textual/illustrative materials: API refs, guides, tutorials. Improvement & clarity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants