Skip to content

Commit 517a2ef

Browse files
author
pytorchbot
committed
2026-10-28 nightly release (8269de2)
1 parent 94c1283 commit 517a2ef

442 files changed

Lines changed: 1841 additions & 795 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/_test-windows.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ jobs:
158158
script: |
159159
set -euo pipefail
160160
if [[ "${{ matrix.suite }}" == "executorch-windows" ]]; then
161+
# A development ExecuTorch pin is on the nightly channel, a release pin on the test channel.
161162
# Windows uses torchao's Python-only nightly wheel from the CPU index.
162163
python -m pip install --pre pyyaml \
163164
--extra-index-url "https://download.pytorch.org/whl/nightly/${CU_VERSION}" \
165+
--extra-index-url "https://download.pytorch.org/whl/test/${CU_VERSION}" \
164166
--extra-index-url "https://download.pytorch.org/whl/nightly/cpu" \
165167
-r packaging/executorch_pin.txt
166168
runtime_wheels=("${RUNNER_TEMP}"/artifacts/torch_tensorrt_executorch_runtime-*.whl)

‎.github/workflows/build_linux.yml‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ jobs:
337337
key: trt-bazel-${{ inputs.architecture }}-${{ matrix.desired_cuda }}-rtx${{ inputs.use-rtx }}-${{ hashFiles('**/MODULE.bazel', '**/WORKSPACE', '**/.bazelrc', '**/dev_dep_versions.yml') }}
338338
restore-keys: |
339339
trt-bazel-${{ inputs.architecture }}-${{ matrix.desired_cuda }}-rtx${{ inputs.use-rtx }}-
340-
# Named before either wheel is built: the main wheel's executorch extra requires exactly this
340+
# Named before either wheel is built: the main wheel's executorch extra can require exactly this
341341
# companion, and the companion build below takes its version from the same variable.
342342
- name: Name the ExecuTorch runtime companion
343343
if: ${{ inputs.build-executorch-runtime }}
@@ -348,6 +348,13 @@ jobs:
348348
source "${BUILD_ENV_FILE}"
349349
version="$(${CONDA_RUN} python packaging/executorch_runtime_version.py ${{ inputs.is-release-wheel }})"
350350
echo "TORCH_TENSORRT_EXECUTORCH_RUNTIME_VERSION=${version}" >> "${GITHUB_ENV}"
351+
# A release wheel has no CUDA label, the form PyPI needs; its cu132 build goes to PyPI. Any
352+
# other build goes to this run's PyTorch channel.
353+
if [[ ${{ inputs.is-release-wheel }} == true ]]; then
354+
echo "TORCH_TENSORRT_EXECUTORCH_RUNTIME_CHANNEL=pypi" >> "${GITHUB_ENV}"
355+
else
356+
echo "TORCH_TENSORRT_EXECUTORCH_RUNTIME_CHANNEL=${CHANNEL}" >> "${GITHUB_ENV}"
357+
fi
351358
- name: Build the wheel (python-build-package)
352359
if: ${{ inputs.build-platform == 'python-build-package' }}
353360
working-directory: ${{ inputs.repository }}
@@ -447,17 +454,19 @@ jobs:
447454
sys.exit("The main wheel declares no CUDA 13 TensorRT dependencies")
448455
subprocess.check_call([sys.executable, "-m", "pip", "install", *tensorrt])
449456
PY
450-
# The nightly channel is named directly rather than through the channel variable, on release
451-
# rows too, because the pin is a dated development build that only that channel carries.
452-
# The default index stays in the set for the other requirements, which means a pin naming a
453-
# version the default index also publishes could resolve to the processor-only build from
454-
# there. What refuses that is the delegate's own build, which reads the installed
457+
# Both channels that carry a pinned ExecuTorch are named directly rather than through the
458+
# channel variable: a dated development build is only on the nightly channel, and a release
459+
# is on the test channel. The default index stays in the set for the other requirements,
460+
# which means a pin naming a version the default index also publishes could resolve to the
461+
# processor-only build from there. pip prefers the labelled CUDA build of the same version,
462+
# and what refuses the other is the delegate's own build, which reads the installed
455463
# ExecuTorch's local label and stops unless it names a CUDA build, so the failure is a clear
456464
# message rather than a configure error about a missing extension.
457465
# The version itself comes from the requirement file, so moving the pin to a newer
458466
# nightly changes no file in this directory.
459467
${CONDA_RUN} python -m pip install pyyaml patchelf "wheel>=0.40" \
460468
--extra-index-url "https://download.pytorch.org/whl/nightly/${CU_VERSION}" \
469+
--extra-index-url "https://download.pytorch.org/whl/test/${CU_VERSION}" \
461470
-r packaging/executorch_pin.txt
462471
echo "TORCH_TENSORRT_EXECUTORCH_RUNTIME_VERSION=${TORCH_TENSORRT_EXECUTORCH_RUNTIME_VERSION:?}"
463472
${CONDA_RUN} python -m pip wheel --no-build-isolation --no-deps --wheel-dir dist \

‎.github/workflows/build_windows.yml‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ jobs:
429429
else
430430
export PYTORCH_VERSION="$(${CONDA_RUN} pip show torch | grep ^Version: | sed 's/Version: *//')"
431431
fi
432-
# Named before either wheel is built: the main wheel's executorch extra requires exactly this
432+
# Named before either wheel is built: the main wheel's executorch extra can require exactly this
433433
# companion, and the companion build below takes its version from the same variable.
434434
- name: Name the ExecuTorch runtime companion
435435
if: ${{ inputs.build-executorch-runtime && inputs.architecture == 'x64' && !inputs.cross-compile && !inputs.python-only && !inputs.use-rtx && !inputs.is-release-tarball }}
@@ -439,6 +439,12 @@ jobs:
439439
source "${BUILD_ENV_FILE}"
440440
version="$(${CONDA_RUN} python packaging/executorch_runtime_version.py ${{ inputs.is-release-wheel }})"
441441
echo "TORCH_TENSORRT_EXECUTORCH_RUNTIME_VERSION=${version}" >> "${GITHUB_ENV}"
442+
# A release wheel has the form PyPI needs, and PyPI's Windows ExecuTorch is the CPU build the
443+
# delegate cannot load, so it records no channel and its extra leaves the delegate out. Any
444+
# other build goes to this run's PyTorch channel.
445+
if [[ ${{ inputs.is-release-wheel }} != true ]]; then
446+
echo "TORCH_TENSORRT_EXECUTORCH_RUNTIME_CHANNEL=${CHANNEL}" >> "${GITHUB_ENV}"
447+
fi
442448
- name: Build the wheel (python-build-package) X64
443449
if: ${{ inputs.build-platform == 'python-build-package' && inputs.architecture == 'x64' && inputs.cross-compile == false }}
444450
working-directory: ${{ inputs.repository }}
@@ -490,17 +496,22 @@ jobs:
490496
else
491497
${CONDA_RUN} ${ENV_SCRIPT} python setup.py bdist_wheel ${BUILD_PARAMS}
492498
fi
499+
# A release wheel has the form PyPI needs, and the delegate cannot load PyPI's Windows
500+
# ExecuTorch, so its job builds no delegate. The version is still recorded above for the install
501+
# advice.
493502
- name: Build the ExecuTorch runtime wheel
494-
if: ${{ env.TORCH_TENSORRT_EXECUTORCH_RUNTIME_VERSION != '' }}
503+
if: ${{ env.TORCH_TENSORRT_EXECUTORCH_RUNTIME_VERSION != '' && !inputs.is-release-wheel }}
495504
working-directory: ${{ inputs.repository }}
496505
run: |
497506
set -euxo pipefail
498507
source "${BUILD_ENV_FILE}"
499508
case "${CU_VERSION}" in cu132|cu134) ;; *) echo "Unsupported ExecuTorch CUDA row: ${CU_VERSION}" >&2; exit 1 ;; esac
500509
${CONDA_RUN} python -m pip install --no-deps dist/torch_tensorrt-*.whl
510+
# A development ExecuTorch pin is on the nightly channel, a release pin on the test channel.
501511
# Windows uses torchao's Python-only nightly wheel from the CPU index.
502512
${CONDA_RUN} python -m pip install --pre "cmake>=3.28" ninja pyyaml "wheel>=0.40" \
503513
--extra-index-url "https://download.pytorch.org/whl/nightly/${CU_VERSION}" \
514+
--extra-index-url "https://download.pytorch.org/whl/test/${CU_VERSION}" \
504515
--extra-index-url "https://download.pytorch.org/whl/nightly/cpu" \
505516
-r packaging/executorch_pin.txt
506517
# The core build has fetched the TensorRT SDK containing headers and import libraries.

‎.github/workflows/executorch-test-linux.yml‎

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ jobs:
6363
chmod +x "${RUNNER_TEMP}/bin/bazel"
6464
export PATH="${RUNNER_TEMP}/bin:${PATH}"
6565
66-
# ExecuTorch's CUDA wheels live only on the PyTorch nightly index, so the channel is
67-
# needed. No --pre: a specifier naming a prerelease admits prereleases by itself, and
68-
# --pre would apply to every other requirement in the same command too. The version
69-
# comes from the requirement file so a bump changes no file in this directory.
66+
# ExecuTorch's CUDA wheels live only on the PyTorch indexes: a development build on the
67+
# nightly one, a release on the test one. No --pre: a specifier naming a prerelease admits
68+
# prereleases by itself, and --pre would apply to every other requirement in the same
69+
# command too. The version comes from the requirement file so a bump changes no file in
70+
# this directory.
7071
python -m pip install pyyaml "wheel>=0.40" \
7172
--extra-index-url "https://download.pytorch.org/whl/nightly/${CU_VERSION}" \
73+
--extra-index-url "https://download.pytorch.org/whl/test/${CU_VERSION}" \
7274
-r packaging/executorch_pin.txt
7375
7476
# The shared artifact carries the matching core and companion wheels.
@@ -108,31 +110,42 @@ jobs:
108110
# Resolve the user-facing range without reusing the build's installed pin.
109111
python -m venv "${RUNNER_TEMP}/range-check-venv"
110112
# pin-check: range-ok
111-
"${RUNNER_TEMP}/range-check-venv/bin/python" -m pip install --no-deps --extra-index-url "https://download.pytorch.org/whl/nightly/${CU_VERSION}" -r packaging/executorch_range.txt
113+
"${RUNNER_TEMP}/range-check-venv/bin/python" -m pip install --no-deps --extra-index-url "https://download.pytorch.org/whl/nightly/${CU_VERSION}" --extra-index-url "https://download.pytorch.org/whl/test/${CU_VERSION}" -r packaging/executorch_range.txt
112114
113115
# pip does not fail when an extra cannot be satisfied; it quietly picks an older
114-
# torch-tensorrt. So check here that the main wheel's executorch extra requires exactly the
115-
# companion built beside it, and that pip resolves that extra for the version just built.
116+
# torch-tensorrt. So check here that the executorch extra requires exactly the companion
117+
# built beside it when this run's channel also carries the ExecuTorch build that companion
118+
# pins (nightly for a development build, test for a release), that it requires none
119+
# otherwise, and that pip resolves that extra for the version just built.
116120
python - <<'PY'
117121
import importlib.metadata as metadata
122+
import os
118123
import sys
119124
120125
from packaging.requirements import Requirement
121126
122127
companion = metadata.version("torch-tensorrt-executorch-runtime")
128+
(executorch,) = [
129+
r
130+
for r in map(Requirement, metadata.requires("torch-tensorrt-executorch-runtime") or [])
131+
if r.name == "executorch"
132+
]
133+
executorch_channel = "nightly" if ".dev" in str(executorch.specifier) else "test"
123134
pins = [
124135
r
125136
for r in map(Requirement, metadata.requires("torch-tensorrt") or [])
126137
if r.name == "torch-tensorrt-executorch-runtime"
127138
and r.marker is not None
128139
and r.marker.evaluate({"extra": "executorch"})
129140
]
130-
if [str(r.specifier) for r in pins] != [f"=={companion}"]:
131-
sys.exit(f"the executorch extra requires {pins}, not the companion built beside it ({companion})")
141+
expected = [f"=={companion}"] if os.environ["CHANNEL"] == executorch_channel else []
142+
if [str(r.specifier) for r in pins] != expected:
143+
sys.exit(f"the executorch extra requires {pins}, not {expected} (companion {companion}, channel {os.environ['CHANNEL']}, {executorch})")
132144
PY
133145
built="$(python -c 'import importlib.metadata as m; print(m.version("torch-tensorrt"))')"
134146
python -m pip install --pre --dry-run --find-links /opt/torch-tensorrt-builds \
135147
--extra-index-url "https://download.pytorch.org/whl/nightly/${CU_VERSION}" \
148+
--extra-index-url "https://download.pytorch.org/whl/test/${CU_VERSION}" \
136149
--extra-index-url https://pypi.nvidia.com \
137150
"torch-tensorrt[executorch]==${built}"
138151

‎docs/_cpp_api/classtorch__tensorrt_1_1DataType.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
4444
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4545

46-
<script src="../_static/documentation_options.js?v=ede72c6b"></script>
46+
<script src="../_static/documentation_options.js?v=3fea7915"></script>
4747
<script src="../_static/doctools.js?v=888ff710"></script>
4848
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
4949
<script src="../_static/collapsible-lists/js/CollapsibleLists.compressed.js?v=73120307"></script>

‎docs/_cpp_api/classtorch__tensorrt_1_1Device_1_1DeviceType.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
4444
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4545

46-
<script src="../_static/documentation_options.js?v=ede72c6b"></script>
46+
<script src="../_static/documentation_options.js?v=3fea7915"></script>
4747
<script src="../_static/doctools.js?v=888ff710"></script>
4848
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
4949
<script src="../_static/collapsible-lists/js/CollapsibleLists.compressed.js?v=73120307"></script>

‎docs/_cpp_api/classtorch__tensorrt_1_1TensorFormat.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
4444
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4545

46-
<script src="../_static/documentation_options.js?v=ede72c6b"></script>
46+
<script src="../_static/documentation_options.js?v=3fea7915"></script>
4747
<script src="../_static/doctools.js?v=888ff710"></script>
4848
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
4949
<script src="../_static/collapsible-lists/js/CollapsibleLists.compressed.js?v=73120307"></script>

‎docs/_cpp_api/classtorch__tensorrt_1_1executorch__backend_1_1OptimizationProfileGuard.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
4444
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4545

46-
<script src="../_static/documentation_options.js?v=ede72c6b"></script>
46+
<script src="../_static/documentation_options.js?v=3fea7915"></script>
4747
<script src="../_static/doctools.js?v=888ff710"></script>
4848
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
4949
<script src="../_static/collapsible-lists/js/CollapsibleLists.compressed.js?v=73120307"></script>

‎docs/_cpp_api/classtorch__tensorrt_1_1executorch__backend_1_1TRTLogger.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
4444
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4545

46-
<script src="../_static/documentation_options.js?v=ede72c6b"></script>
46+
<script src="../_static/documentation_options.js?v=3fea7915"></script>
4747
<script src="../_static/doctools.js?v=888ff710"></script>
4848
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
4949
<script src="../_static/collapsible-lists/js/CollapsibleLists.compressed.js?v=73120307"></script>

‎docs/_cpp_api/classtorch__tensorrt_1_1executorch__backend_1_1TensorRTBackend.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
4444
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4545

46-
<script src="../_static/documentation_options.js?v=ede72c6b"></script>
46+
<script src="../_static/documentation_options.js?v=3fea7915"></script>
4747
<script src="../_static/doctools.js?v=888ff710"></script>
4848
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
4949
<script src="../_static/collapsible-lists/js/CollapsibleLists.compressed.js?v=73120307"></script>

0 commit comments

Comments
 (0)