Skip to content

Conversation

@chzblych
Copy link
Collaborator

@chzblych chzblych commented Aug 4, 2025

Summary by CodeRabbit

  • Documentation

    • Updated Linux installation instructions to clarify CUDA Toolkit installation steps and environment variable setup.
    • Clarified requirements for PyTorch CUDA 12.8 installation on specific platforms.
    • Added guidance for installing the deep_gemm package as a workaround for SBSA platform issues.
    • Removed outdated details about CUDA Toolkit installation limitations.
  • Bug Fixes

    • Improved handling of platform detection and deep_gemm installation for SBSA systems to address known installation failures.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 4, 2025

📝 Walkthrough

Walkthrough

The changes update Linux installation documentation to clarify CUDA and PyTorch requirements, add a workaround for SBSA platform installation issues, and adjust the Jenkins test script to apply this workaround programmatically for SBSA by explicitly installing the deep_gemm package when needed.

Changes

Cohort / File(s) Change Summary
Linux Installation Documentation
docs/source/installation/linux.md
Updated instructions to clarify CUDA Toolkit installation, specify PyTorch CUDA 12.8 requirements for NVIDIA Blackwell GPUs and SBSA, and add an optional step for installing deep_gemm from GitHub as a workaround for SBSA installation failures. Removed a detailed explanation about CUDA Toolkit from known limitations.
Jenkins Test Script & SBSA Workaround
jenkins/L0_Test.groovy
Modified the platform architecture variable usage from values[2] to cpu_arch. Added logic to read requirements.txt and install deep_gemm from a specific index for SBSA platforms as a workaround for a known bug.

Sequence Diagram(s)

sequenceDiagram
    participant Jenkins
    participant FileSystem
    participant Pip

    Jenkins->>Jenkins: Determine cpu_arch
    alt cpu_arch == SBSA
        Jenkins->>FileSystem: Read requirements.txt
        FileSystem-->>Jenkins: Return content
        Jenkins->>Jenkins: Search for deep_gemm line
        alt deep_gemm found
            Jenkins->>Pip: pip install deep_gemm_package --extra-index-url
        else deep_gemm not found
            Jenkins->>Jenkins: Log absence of deep_gemm
        end
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • niukuo
  • ZhanruiSunCh

Note

⚡️ Unit Test Generation is now available in beta!

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

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

@coderabbitai coderabbitai bot changed the title [https://nvbugs/5433581][infra] @coderabbitai [https://nvbugs/5433581][infra] doc Update Linux install docs and Jenkins script for SBSA CUDA workaround Aug 4, 2025
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 (4)
docs/source/installation/linux.md (3)

12-14: Clarify CUDA Toolkit environment setup

Consider adding a brief example (export CUDA_HOME=/usr/local/cuda) or mention that some distro packages set it automatically. This helps first-time users verify the variable is actually present.


16-23: Pin companion package versions for PyTorch

torch==2.7.1 is pinned but torchvision / torchaudio are not. Mixing mismatched versions can break the wheel resolver. Recommend:

pip3 install torch==2.7.1 torchvision==0.18.1 torchaudio==2.7.1 …

27-27: Minor wording / plural

platformplatforms (“…on prior GPUs or Linux x86_64 platforms”).

jenkins/L0_Test.groovy (1)

2094-2099: Local variable name can be confusing

def platform = … shadows the earlier platform parameter used throughout the method and risks accidental misuse later.
Rename to something explicit such as cudaRepoArch to avoid ambiguity.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6135f75 and d4fcebd.

📒 Files selected for processing (2)
  • docs/source/installation/linux.md (1 hunks)
  • jenkins/L0_Test.groovy (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 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:

  • jenkins/L0_Test.groovy
  • docs/source/installation/linux.md
📚 Learning: in tensorrt-llm, examples directory can have different dependency versions than the root requirement...
Learnt from: yibinl-nvidia
PR: NVIDIA/TensorRT-LLM#6506
File: examples/models/core/mixtral/requirements.txt:3-3
Timestamp: 2025-08-01T15:14:45.673Z
Learning: In TensorRT-LLM, examples directory can have different dependency versions than the root requirements.txt file. Version conflicts between root and examples dependencies are acceptable because examples are designed to be standalone and self-contained.

Applied to files:

  • jenkins/L0_Test.groovy
  • docs/source/installation/linux.md
📚 Learning: applies to **/*.py : the code developed for tensorrt-llm should conform to python 3.8+....
Learnt from: CR
PR: NVIDIA/TensorRT-LLM#0
File: CODING_GUIDELINES.md:0-0
Timestamp: 2025-08-04T02:12:17.582Z
Learning: Applies to **/*.py : The code developed for TensorRT-LLM should conform to Python 3.8+.

Applied to files:

  • docs/source/installation/linux.md
🔇 Additional comments (1)
jenkins/L0_Test.groovy (1)

2108-2117: Verify deep_gemm install path resolution

readFile("${LLM_ROOT}/requirements.txt") runs on the agent; inside a pod the workspace path can differ, causing a “file not found” at runtime.
Please run a quick check that the file exists in this context or fall back to sh "grep '^deep_gemm' ${LLM_ROOT}/requirements.txt" to avoid pipeline failures.

@chzblych chzblych changed the title [https://nvbugs/5433581][infra] doc Update Linux install docs and Jenkins script for SBSA CUDA workaround [https://nvbugs/5433581][infra] Update install docs and CI script for SBSA deep_gemm workaround Aug 4, 2025
@chzblych
Copy link
Collaborator Author

chzblych commented Aug 5, 2025

Tested internally with https://nv/trt-llm-cicd/job/main/job/L0_MergeRequest/29121.

Copy link
Collaborator

@zongfeijing zongfeijing left a comment

Choose a reason for hiding this comment

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

LGTM

@chzblych
Copy link
Collaborator Author

chzblych commented Aug 5, 2025

/bot skip --comment "Tested internally with https://nv/trt-llm-cicd/job/main/job/L0_MergeRequest/29121".

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 (3)
docs/source/installation/linux.md (3)

12-14: Provide a concrete CUDA_HOME example to avoid mis-configuration

The new sentence instructs users to “make sure CUDA_HOME environment variable is properly set”, but gives no illustration. A quick one-liner prevents common mistakes when multiple CUDA versions are present.

 Install CUDA Toolkit following the [CUDA Installation Guide for Linux](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/) and
-make sure `CUDA_HOME` environment variable is properly set.
+export the correct `CUDA_HOME`, e.g.:
+
+```bash
+export CUDA_HOME=/usr/local/cuda-12.4
+```
+
+Verify with `nvcc --version`.

19-23: Make DeepGEMM pinning maintainable

Hard-coding a personal GitHub fork and commit hash in user-facing docs will break silently when the fork disappears or the API changes.

  1. Move the exact requirement to requirements/deep_gemm_sbsa.txt (or reuse the existing global requirements.txt) and reference that file in the doc.
  2. Add a brief rationale (“temporary SBSA workaround for nvbugs/5433581”) so future readers know when it can be removed.

27-27: Fix typo and clarify sentence

-PyTorch CUDA 12.8 package is required for supporting NVIDIA Blackwell GPUs and SBSA platform. On prior GPUs or Linux x86_64 platform, this extra installation is not required.
+The CUDA 12.8 PyTorch wheel is required only on NVIDIA Blackwell GPUs **or** the SBSA (AArch64) platform.  On earlier GPUs or standard x86_64 Linux hosts, skip this step.
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between d4fcebd and a6f9ad3.

📒 Files selected for processing (2)
  • docs/source/installation/linux.md (1 hunks)
  • jenkins/L0_Test.groovy (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • jenkins/L0_Test.groovy
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: in tensorrt-llm, examples directory can have different dependency versions than the root requirement...
Learnt from: yibinl-nvidia
PR: NVIDIA/TensorRT-LLM#6506
File: examples/models/core/mixtral/requirements.txt:3-3
Timestamp: 2025-08-01T15:14:45.673Z
Learning: In TensorRT-LLM, examples directory can have different dependency versions than the root requirements.txt file. Version conflicts between root and examples dependencies are acceptable because examples are designed to be standalone and self-contained.

Applied to files:

  • docs/source/installation/linux.md
📚 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/installation/linux.md
📚 Learning: applies to **/*.py : the code developed for tensorrt-llm should conform to python 3.8+....
Learnt from: CR
PR: NVIDIA/TensorRT-LLM#0
File: CODING_GUIDELINES.md:0-0
Timestamp: 2025-08-04T02:12:17.582Z
Learning: Applies to **/*.py : The code developed for TensorRT-LLM should conform to Python 3.8+.

Applied to files:

  • docs/source/installation/linux.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)
docs/source/installation/linux.md (1)

16-18: Double-check availability of torch==2.7.1 wheel on the cu128 index

Our automated checks against https://download.pytorch.org/whl/cu128/ did not surface any torch-2.7.1 wheels. If this release isn’t publicly published, please choose one of the following:

  • Downgrade the example to the latest public build (e.g. pip3 install torch==2.4.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128)
  • Or add a callout that torch==2.7.1 for cu128 is an internal preview and requires access to your organization’s mirror

Location to update:
• docs/source/installation/linux.md (lines 16–18)

@chzblych chzblych enabled auto-merge (squash) August 5, 2025 03:17
@tensorrt-cicd
Copy link
Collaborator

PR_Github #14075 [ skip ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #14075 [ skip ] completed with state SUCCESS
Skipping testing for commit a6f9ad3

@chzblych chzblych merged commit d53cc23 into NVIDIA:main Aug 5, 2025
4 checks passed
@chzblych chzblych deleted the nvbugs5433581 branch August 5, 2025 03:59
lancelly pushed a commit to lancelly/TensorRT-LLM that referenced this pull request Aug 6, 2025
… SBSA deep_gemm workaround (NVIDIA#6607)

Signed-off-by: Yanchao Lu <[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
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.

3 participants