Skip to content

[2.15] Backport #4882: install the matching runtime companion with the executorch extra - #4913

Closed
shoumikhin wants to merge 2 commits into
pytorch:release/2.15from
shoumikhin:backport-2.15-4882
Closed

shoumikhin wants to merge 2 commits into
pytorch:release/2.15from
shoumikhin:backport-2.15-4882

Conversation

@shoumikhin

Copy link
Copy Markdown
Contributor

Backport of #4882 to release/2.15.

Depends on the #4839 backport (#4910). This change updates the ExecuTorch guide that #4839 adds, so it is built on top of that backport. Until that one merges, this branch also carries the #4839 commit. Please review only the last commit.

In 2.15 today, pip install "torch-tensorrt[executorch]" installs ExecuTorch, which is enough to export a .pte but not to run one. Running it needs torch-tensorrt-executorch-runtime, and the extra does not say which build. With this change, the extra requires exactly the companion built in the same job.

For the release this means the companion has to be published next to torch_tensorrt on the test channel, the stable index and PyPI. Otherwise pip silently picks an older torch_tensorrt instead of failing.

This is a clean git cherry-pick -x of the merge commit on top of the #4839 backport, with no conflicts. The patch is identical to #4882.

Validation:

Co-authored-by: shoumikhin <shoumikhin@users.noreply.github.com>
(cherry picked from commit db538e1)
@meta-cla meta-cla Bot added the cla signed label Oct 21, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation component: tests Issues re: Tests component: build system Issues re: Build system component: api [Python] Issues re: Python API labels Oct 21, 2026
…cutorch extra (pytorch#4882)

Co-authored-by: shoumikhin <shoumikhin@users.noreply.github.com>
(cherry picked from commit fd3c31d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed component: api [Python] Issues re: Python API component: build system Issues re: Build system component: tests Issues re: Tests documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant