Repository navigation
[2.15] Backport #4882: install the matching runtime companion with the executorch extra - #4913
Closed
shoumikhin wants to merge 2 commits into
Closed
shoumikhin wants to merge 2 commits into
shoumikhin wants to merge 2 commits into
Conversation
Co-authored-by: shoumikhin <shoumikhin@users.noreply.github.com> (cherry picked from commit db538e1)
…cutorch extra (pytorch#4882) Co-authored-by: shoumikhin <shoumikhin@users.noreply.github.com> (cherry picked from commit fd3c31d)
shoumikhin
force-pushed
the
backport-2.15-4882
branch
from
October 21, 2026 20:00
768ba0c to
543711c
Compare
5 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ptebut not to run one. Running it needstorch-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_tensorrton the test channel, the stable index and PyPI. Otherwise pip silently picks an oldertorch_tensorrtinstead of failing.This is a clean
git cherry-pick -xof the merge commit on top of the #4839 backport, with no conflicts. The patch is identical to #4882.Validation:
uv lockhook, which cannot resolve the CUDA-only torch wheel on macOS and fails the same way onrelease/2.15release/2.15, with the same 27 skipped