Skip to content

Pin ExecuTorch to the release/1.4 branch head - #4434

Open
shoumikhin wants to merge 1 commit into
pytorch:mainfrom
shoumikhin:pin-executorch-release-1.4
Open

Pin ExecuTorch to the release/1.4 branch head#4434
shoumikhin wants to merge 1 commit into
pytorch:mainfrom
shoumikhin:pin-executorch-release-1.4

Conversation

@shoumikhin

@shoumikhin shoumikhin commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Why this PR is needed

Torch-TensorRT currently builds native ExecuTorch code from the ExecuTorch 1.3 release branch.

New native integrations, including the shared CUDA caller-stream support in #4421, require APIs that are available in ExecuTorch 1.4. This PR updates the repository-wide source pin once, in a small standalone change, so feature PRs do not each carry their own dependency bump.

What changes

The same pin is updated in all four Bazel workspace files:

Before: ExecuTorch release/1.3 head
        6118688a095fd9697224f5cad72ce42db641c9cd

After:  ExecuTorch release/1.4 head
        cd380e7aefd18c171271cc228d3a155455095219

Files changed:

  • MODULE.bazel
  • docker/MODULE.bazel.docker
  • docker/MODULE.bazel.ngc
  • toolchains/ci_workspaces/MODULE.bazel.tmpl

No Torch-TensorRT runtime or Python behavior changes directly in this PR. It only selects the newer ExecuTorch source revision for native builds.

Example

A native build continues to use the normal TensorRT targets:

bazel build //:libtorchtrt --compilation_mode=opt --config=linux

The difference is that Bazel now fetches ExecuTorch from the 1.4 release line.

Dependency order

Merge this PR before #4421. After this lands, #4421 can rebase onto main and its temporary copy of these four pin changes will disappear.

Validation

Current GitHub CI completed the full matrix. Most jobs passed. The remaining failed jobs are in unrelated model/runtime tests and package-environment setup, for example Windows platform-name mismatches, missing TensorRT shared libraries, model test failures, and JetPack package-index dependency resolution. None of those failures point to the four pin files changed here.

Follow-up: replace the release-branch head with the immutable v1.4.0 tag commit when ExecuTorch publishes that tag.

@meta-cla meta-cla Bot added the cla signed label Jul 26, 2026
@github-actions github-actions Bot added the component: build system Issues re: Build system label Jul 26, 2026
@github-actions
github-actions Bot requested a review from narendasan July 26, 2026 22:42
@narendasan
narendasan requested a review from lanluo-nvidia July 27, 2026 18:19
main pins the ExecuTorch dependency to the release/1.3 branch head
(6118688a), which predates the shared extension_cuda caller-stream work.
Bump the pin to the release/1.4 branch head
(cd380e7aefd18c171271cc228d3a155455095219), the first ExecuTorch release
line that contains both pytorch/executorch#20158 (shared extension_cuda
caller-stream library) and pytorch/executorch#20498 (caller CUDA stream
for H2D/D2H copies).

This follows the existing convention of pinning a release-branch head
commit; the new_git_repository rule takes a commit, not a branch name.
The four Bazel files that pin ExecuTorch are updated identically:
MODULE.bazel, docker/MODULE.bazel.docker, docker/MODULE.bazel.ngc, and
toolchains/ci_workspaces/MODULE.bazel.tmpl.

Swap the branch-head commit for the immutable v1.4.0 tag once ExecuTorch
publishes it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant