Skip to content

[TRTLLM-14027][infra] Remove --trt_root and stop installing the TensorRT SDK into images - #16608

Merged
Wanli-Jiang merged 4 commits into
NVIDIA:mainfrom
Wanli-Jiang:user/williamj/trtllm-14027-infra
Jul 22, 2026
Merged

[TRTLLM-14027][infra] Remove --trt_root and stop installing the TensorRT SDK into images#16608
Wanli-Jiang merged 4 commits into
NVIDIA:mainfrom
Wanli-Jiang:user/williamj/trtllm-14027-infra

Conversation

@Wanli-Jiang

@Wanli-Jiang Wanli-Jiang commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Build & Installation

    • Simplified build configuration by removing the deprecated TensorRT root option.
    • Updated container setup to install required CUDA libraries and supporting components directly.
    • TensorRT is no longer installed or bundled as a separate package component.
  • Documentation

    • Updated local and distributed build guidance to reflect the revised options.
    • Removed outdated TensorRT configuration and troubleshooting instructions.
  • Compatibility

    • Existing build commands using the removed TensorRT root option must be updated.

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)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • 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

To see a list of available CI bot commands, please comment /bot help.

@Wanli-Jiang
Wanli-Jiang force-pushed the user/williamj/trtllm-14027-infra branch from 2c77371 to 173f8d9 Compare July 20, 2026 07:50
@Wanli-Jiang
Wanli-Jiang marked this pull request as ready for review July 20, 2026 07:51
@Wanli-Jiang
Wanli-Jiang requested review from a team as code owners July 20, 2026 07:51
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The change removes TensorRT-specific build arguments, installation logic, packaging entries, integration parameters, and compilation documentation. Docker installation now uses CUDA library components without TensorRT version handling.

Changes

TensorRT installation removal

Layer / File(s) Summary
CUDA library installation path
docker/Dockerfile.multi, docker/Makefile, docker/common/*
Docker builds and installer scripts replace TensorRT installation flags and version variables with CUDA library installation.
Build interface and packaging cleanup
scripts/build_wheel.py, setup.py, tests/integration/..., .claude/skills/...
Build commands, CLI handling, packaging, integration fixtures, and compilation guidance no longer reference trt_root or the TensorRT installer script.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: tburt-nv

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is still the template skeleton and does not explain the change or any test coverage. Fill in the Description and Test Coverage sections with a short summary of the problem, the fix, and the tests run.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the PR's main change and follows the required ticket/type summary pattern.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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)
docker/common/install.sh (1)

14-14: 🧹 Nitpick | 🔵 Trivial

LGTM! The --tensorrt--cuda_libs replacement is consistent across the default, argument parser, --all aggregate, and install conditional.

Based on learnings, ensure the CUBLAS_VER value passed through to install_cuda_libs.sh aligns with the upstream PyTorch container (e.g., cuBLAS 13.2.0.9 for CUDA 13.1 configs), even if the major version appears higher than the CUDA version. Verify the pinned version in install_cuda_libs.sh and the Docker Makefile build args.

Also applies to: 37-40, 55-58, 95-102

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docker/common/install.sh` at line 14, Align the CUBLAS_VER value propagated
to install_cuda_libs.sh with the upstream PyTorch container versions, including
cuBLAS 13.2.0.9 for CUDA 13.1 configurations. Verify and update the pinned
version in install_cuda_libs.sh and the corresponding Docker Makefile build
arguments while preserving the existing cuda_libs option flow.

Source: Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/skills/exec-slurm-compile/scripts/compile.sh:
- Line 22: Synchronize the documented default flags with the actual command:
update the default command in the compile script to pass --no-venv alongside -a
"100-real" and --nvtx, keeping the comment and command consistent.

---

Nitpick comments:
In `@docker/common/install.sh`:
- Line 14: Align the CUBLAS_VER value propagated to install_cuda_libs.sh with
the upstream PyTorch container versions, including cuBLAS 13.2.0.9 for CUDA 13.1
configurations. Verify and update the pinned version in install_cuda_libs.sh and
the corresponding Docker Makefile build arguments while preserving the existing
cuda_libs option flow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: a828864f-9272-4ca5-8876-fa176b807eb3

📥 Commits

Reviewing files that changed from the base of the PR and between ee241d2 and 173f8d9.

📒 Files selected for processing (10)
  • .claude/skills/exec-local-compile/SKILL.md
  • .claude/skills/exec-slurm-compile/SKILL.md
  • .claude/skills/exec-slurm-compile/scripts/compile.sh
  • docker/Dockerfile.multi
  • docker/Makefile
  • docker/common/install.sh
  • docker/common/install_cuda_libs.sh
  • scripts/build_wheel.py
  • setup.py
  • tests/integration/defs/cpp/conftest.py
💤 Files with no reviewable changes (6)
  • setup.py
  • .claude/skills/exec-slurm-compile/SKILL.md
  • tests/integration/defs/cpp/conftest.py
  • docker/common/install_cuda_libs.sh
  • docker/Makefile
  • scripts/build_wheel.py

Comment thread .claude/skills/exec-slurm-compile/scripts/compile.sh
@Wanli-Jiang
Wanli-Jiang force-pushed the user/williamj/trtllm-14027-infra branch from 173f8d9 to 4f186fc Compare July 20, 2026 08:05
@Wanli-Jiang

Copy link
Copy Markdown
Collaborator Author

/bot run --stage-list "Build-Docker-Images" --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60322 [ run ] triggered by Bot. Commit: 4f186fc Link to invocation

@Wanli-Jiang
Wanli-Jiang requested a review from tburt-nv July 20, 2026 08:26

@juney-nvidia juney-nvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved from OSS compliance perspective

Comment thread docker/common/install.sh
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60322 [ run ] completed with state FAILURE. Commit: 4f186fc
/LLM/main/L0_MergeRequest_PR pipeline #48667 (Partly Tested) completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Wanli-Jiang

Copy link
Copy Markdown
Collaborator Author

/bot run --stage-list "Build-Docker-Images" --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60495 [ run ] triggered by Bot. Commit: 4f186fc Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60495 [ run ] completed with state FAILURE. Commit: 4f186fc
/LLM/main/L0_MergeRequest_PR pipeline #48820 (Partly Tested) completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

Wanli-Jiang added a commit to Wanli-Jiang/TensorRT-LLM that referenced this pull request Jul 21, 2026
Adopt the tritondevel images built by PR NVIDIA#16608 CI (build 48820, commit
4f186fc), which no longer install the TensorRT SDK. The images were
retagged and pushed manually (timestamp 202607211045); the now-inaccurate
trt10.16.1.11 segment is dropped from the canonical tag names since the
devel images no longer contain TensorRT. scripts/rename_docker_images.py
carries the new prefix forward automatically on future bumps.

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
@Wanli-Jiang
Wanli-Jiang force-pushed the user/williamj/trtllm-14027-infra branch from 4f186fc to f52fedf Compare July 21, 2026 06:16
TensorRT is no longer required to build TensorRT-LLM (the legacy TensorRT
backend was fully removed; FindTensorRT.cmake and all nvinfer dependencies
are gone, and CMake no longer consumes TensorRT_ROOT). The --trt_root flag
was kept for one cycle as a documented no-op; remove it now as promised in
the PR NVIDIA#16369 review:

- scripts/build_wheel.py: drop the argparse flag, the trt_root parameter,
  and the dead -DTensorRT_ROOT forwarding (previously appended on every
  build since the default was never None).
- tests/integration/defs/cpp/conftest.py: drop the trt_root kwarg from the
  build_trt_llm() call.
- .claude/skills/exec-local-compile, exec-slurm-compile: remove the flag
  from documented build commands, flag tables, and compile.sh defaults.

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
…ges and wheels

TensorRT-LLM no longer links or builds against TensorRT (the legacy engine
backend is removed; nvinfer dependencies and FindTensorRT.cmake are gone),
but the devel image still downloaded and installed the full TensorRT SDK,
and the wheel still shipped a TRT installer script.

- docker/common/install_tensorrt.sh -> install_cuda_libs.sh: the script was
  load-bearing beyond TensorRT - it installs the pinned cuDNN/NCCL/cuBLAS
  (+NVRTC) stacks - so it is renamed and only the install_tensorrt()
  function, the TRT_VER pin, and the TRT tarball download are removed.
- docker/common/install.sh: the --tensorrt option becomes --cuda_libs and
  no longer forwards TRT_VER.
- docker/Dockerfile.multi: drop ARG TRT_VER and switch the install.sh call
  to --cuda_libs.
- docker/Makefile: drop the TRT_VERSION variable and its build-arg.
- scripts/build_wheel.py + setup.py: stop copying install_tensorrt.sh into
  the package and shipping it as package_data (tensorrt_llm/scripts/
  install_tensorrt.sh in the wheel); the build-time copy would also have
  broken against the renamed source. Stale copies in existing build trees
  are still cleaned by the pre-existing clear_folder step.

NOTE for mergers: this changes devel-image content and therefore requires a
devel image rebuild plus a jenkins/current_image_tags.properties bump,
coordinated with the docker/infra owners. Existing pinned images keep
working (their pre-installed TensorRT is unused but harmless).

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
Adopt the tritondevel images built by PR NVIDIA#16608 CI (build 48820, commit
4f186fc), which no longer install the TensorRT SDK. The images were
retagged and pushed manually (timestamp 202607211045); the now-inaccurate
trt10.16.1.11 segment is dropped from the canonical tag names since the
devel images no longer contain TensorRT. scripts/rename_docker_images.py
carries the new prefix forward automatically on future bumps.

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
…SanityCheck

The sanity check's final steps invoked the removed TensorRT engine flow
(generate_checkpoint_config.py + trtllm-build + examples/run.py). Keep the
function (it is currently disabled at its call site) but comment out those
steps, with a note to switch to PyTorch backend test samples when the
check is re-enabled.

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
@Wanli-Jiang
Wanli-Jiang force-pushed the user/williamj/trtllm-14027-infra branch from f52fedf to 0adadfb Compare July 21, 2026 06:20
@Wanli-Jiang

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@Wanli-Jiang
Wanli-Jiang requested a review from chzblych July 21, 2026 06:21
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60610 [ run ] triggered by Bot. Commit: 0adadfb Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60610 [ run ] completed with state FAILURE. Commit: 0adadfb
/LLM/main/L0_MergeRequest_PR pipeline #48918 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Wanli-Jiang

Copy link
Copy Markdown
Collaborator Author

/bot run --only-multi-gpu-test --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60812 [ run ] triggered by Bot. Commit: 0adadfb Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60812 [ run ] completed with state SUCCESS. Commit: 0adadfb
/LLM/main/L0_MergeRequest_PR pipeline #49088 (Partly Tested) completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

CI Report

Link to invocation

@Wanli-Jiang

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "multi-test passed and single-GPU tests are passed as well"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60848 [ skip ] triggered by Bot. Commit: 0adadfb Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #60848 [ skip ] completed with state SUCCESS. Commit: 0adadfb
Skipping testing for commit 0adadfb

Link to invocation

@Wanli-Jiang
Wanli-Jiang dismissed chzblych’s stale review July 22, 2026 02:20

merge first since the comment is resolved.

@Wanli-Jiang
Wanli-Jiang merged commit 56f28cd into NVIDIA:main Jul 22, 2026
7 checks passed
yuanjingx87 pushed a commit to yuanjingx87/TensorRT-LLM that referenced this pull request Jul 26, 2026
…rRT SDK into images (NVIDIA#16608)

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
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.

7 participants