Skip to content

[TRTLLM-14022][feat] BREAKING: Remove legacy TensorRT Python backend#16350

Closed
Wanli-Jiang wants to merge 1 commit into
NVIDIA:mainfrom
Wanli-Jiang:user/williamj/deprecated-trt-backend-python-removal-t3
Closed

[TRTLLM-14022][feat] BREAKING: Remove legacy TensorRT Python backend#16350
Wanli-Jiang wants to merge 1 commit into
NVIDIA:mainfrom
Wanli-Jiang:user/williamj/deprecated-trt-backend-python-removal-t3

Conversation

@Wanli-Jiang

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

Copy link
Copy Markdown
Collaborator

Duplicated PR #15918 to enable pre-merge CI tests.

@coderabbitai summary

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 added the api-breaking Accepted LLM API contract change that is backwards-incompatible label Jul 14, 2026
Remove the TensorRT execution backend from the Python package so that
`import tensorrt_llm` and the PyTorch backend run without the `tensorrt`
package installed. The `tensorrt` pip dependency itself is dropped in the
follow-up C++/packaging step; `requirements.txt` is unchanged here.

- Delete the TensorRT graph/build/runtime machinery: builder, network,
  functional graph ops, layers/, plugin/, the legacy models/ implementations,
  the runtime/ session and ModelRunner* classes, _tensorrt_engine, TRT quant
  layers and tools, and the trtllm-build/refit/prune CLIs.
- Keep import paths stable: partly-TensorRT modules (functional.py,
  models/modeling_utils.py, _common.py, runtime/, bench/build) are gutted in
  place so the TensorRT-free symbols used by the PyTorch backend stay put;
  no `_torch/` import churn.
- Drop the TensorRT public API surface (Builder/BuildConfig/TrtLlmArgs/...);
  `LLM(backend="tensorrt")` now raises and `trtllm-serve --backend` accepts
  pytorch/_autodeploy only (api_stability serve-CLI reference updated).
- Remove or de-TRT the tests that exercised the deleted code (disaggregated
  trt-backend tests, TRT bench/openai e2e params, mixed llmapi unittest
  suites) and delist them from test-db/qa/waives; shared test harnesses keep
  their signatures for the PyTorch twins.
- Port test_gather_generation_logits_cuda_graph to the PyTorch accuracy
  suite; repoint examples/apps to the PyTorch LLM; regenerate
  ruff-legacy-baseline.json.

Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
@Wanli-Jiang
Wanli-Jiang force-pushed the user/williamj/deprecated-trt-backend-python-removal-t3 branch from 9ad11ab to 49bc941 Compare July 14, 2026 03:20
@Wanli-Jiang

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59088 [ run ] triggered by Bot. Commit: 49bc941 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59088 [ run ] completed with state SUCCESS. Commit: 49bc941
/LLM/main/L0_MergeRequest_PR pipeline #47605 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-breaking Accepted LLM API contract change that is backwards-incompatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants