Repository navigation
[Core] Update PyTorch to 2.14.0, torchvision to 0.29.0, triton to 3.8.0 (release channel) - #52183
Conversation
|
Pushed a follow-up commit aligning the NVIDIA pins with torch 2.14.0. torch pins these with
Unchanged because they already satisfy 2.14: Both new versions are published on the test channel ( Checked the rest of the tree for other NVIDIA pins that might need the same treatment β there are none. Caveat for reviewers: this was hand-edited, not recompiled β I don't have a working |
|
This pull request has merge conflicts that must be resolved before it can be |
7496ef0 to
d934d15
Compare
77bd157 to
0e797b5
Compare
731afae to
1c91ac7
Compare
β¦backend
Every CPU job in the 2.14.0 build fails in the image build:
Γ No solution found when resolving dependencies:
β°ββΆ Because there is no version of torch{...}==2.14.0+cpu and you require
torch{...}==2.14.0+cpu, we can conclude that your requirements are
unsatisfiable.
uv's --torch-backend only knows the stable channels, so it pins the index to
download.pytorch.org/whl/cpu and ignores the --extra-index-url that points at
the test channel. torch 2.14.0+cpu only exists under whl/test/cpu, so nothing
resolves.
Replace --torch-backend cpu with an explicit --extra-index-url built from a
PYTORCH_CPU_INDEX_BASE_URL build-arg, mirroring how Dockerfile handles
PYTORCH_CUDA_INDEX_BASE_URL. Switching channels is now a one-line change on
both the CPU and CUDA sides. UV_INDEX_STRATEGY=unsafe-best-match is already
set in base-common and is inherited by every stage touched here.
torch 2.14.0+cpu, torchaudio 2.11.0+cpu, torchvision 0.29.0+cpu,
torchcodec 0.14.0+cpu and triton 3.8.0 are all present on whl/test/cpu, so
the pinned set in requirements/test/cpu.txt resolves from this one index.
torchao ships per-torch-version builds, and 0.17.0 was built against 2.13. The previous commit in this stack only moved the CUDA pin to the test channel so it would resolve at all; the version itself stayed on 0.17.0. 0.18.0 is the torch 2.14 pairing and is available on both channels this PR needs: - download.pytorch.org/whl/test/cu130 (CUDA quantization lane) - PyPI (the two ROCm quantization lanes, which install torchao without an --index-url; a cu130 index would be wrong there) Updates all three pin sites, including the two in test-amd.yaml that the earlier index-url change missed.
RELEASE-ONLY. The 2.14.0 RC is republished to the PyTorch test channel under an unchanging version string. torch is installed in the `base-common` stage of `docker/Dockerfile.cpu`, which is upstream of the vLLM source COPY, so its layer cache key depends only on the base image and `requirements/cpu.txt` -- neither of which changes when an RC is respun or when the branch is rebased. The ECR registry cache (`--cache-from type=registry`, keyed on the PR/branch rather than the commit) therefore restores the torch layer on every build. In build 84705 the CPU image build reported 28 CACHED layers and never resolved or downloaded torch at all, while the CUDA build in the same run downloaded torch fresh. Add `--no-cache` so the CPU image always installs torch and triton from the test channel. Revert once 2.14.0 is final and published to PyPI.
RELEASE-ONLY. The CPU test shards do not pull the image published by image_build_cpu.sh -- run-cpu-test.sh builds its own image with a plain `docker build`, using the agent's local BuildKit cache. So the `--no-cache` added to image_build_cpu.sh does not cover them. torch is installed in the `base-common` stage of docker/Dockerfile.cpu, which is upstream of the vLLM source COPY, so its layer key depends only on the base image and `requirements/cpu.txt`. Neither changes when the 2.14.0 RC is respun under the same version string, so the cached layer is restored every time. In build 84719 the `CPU-Multi-Modal Model Tests 1` shard reported steps vllm-project#16, vllm-project#6, wheel and could not have exercised the ideep/oneDNN revert. Add `--no-cache` to the shard build, and set `UV_NO_CACHE=1` in the Dockerfile base stage: `--no-cache` re-executes the layer but does not clear the `RUN --mount=type=cache,target=/root/.cache/uv` mount, so uv would still serve the stale same-named wheel from its own cache. Revert both once 2.14.0 is final and published to PyPI.
2.14.0 went GA on 2026-09-02 and 2.14.1 on 2026-09-30, so the test-channel pins this PR opened with are no longer the right target. - torch 2.14.0 -> 2.14.1, torchvision 0.29.0 -> 0.29.1 (torchaudio 2.11.0 and triton 3.8.0 unchanged; both are current for 2.14.1). - Every index moves from download.pytorch.org/whl/test/* to the release channel. CUDA stays on cu130. - Drops the RELEASE-ONLY cache workarounds that existed only because the RC was republished under an unchanging version string: UV_NO_CACHE in Dockerfile.cpu, --no-cache in image_build_cpu.sh and run-cpu-test.sh, and the test-channel extra-index-url in python_only_compile.sh (2.14.1 is on PyPI). check-ray-compatibility.sh is left alone: it already offers both the stable and test channels and lets uv pick.
torch 2.14.1, torchvision 0.29.1 and triton 3.8.0 are on PyPI and the stable download.pytorch.org channels, so nothing needs /whl/test anymore. - docker/Dockerfile.cpu: go back to `--torch-backend cpu`, which resolves from the stable CPU channel. - check-ray-compatibility.sh: go back to the stable-only index lookup. Both files now match main.
torch 2.14.1 is released, so requirements/cpu.txt, requirements/build/cpu.txt and requirements/build/cuda.txt no longer need their own `--extra-index-url` lines. They now match main apart from the version pins.
The `enforce_eager=False` cases of `test_kv_sharing_fast_prefill` that use the V1 model runner fail on the H200 MIG 35GB runner with torch 2.14.1: `cublasCreate` returns CUBLAS_STATUS_ALLOC_FAILED during the memory-profiling run. They pass with torch 2.13 at the same vLLM commits. Tracked upstream in pytorch/pytorch#199944. Skip only the two failing parametrizations so the eager and V2 cases keep their coverage. Remove the skip once the root cause is fixed.
`tests/test_zentorch_version_pin.py` (vllm-project#52888) requires the first three components of the zentorch pin in setup.py to equal the torch release pinned in requirements/cpu.txt. zentorch is only published for 2.14.0 (2.14.0.0), not 2.14.1, so with CPU torch on 2.14.1 no zentorch pin can satisfy the test and CPU-Kernel Tests Shard 1 fails. Hold the CPU stack at torch 2.14.0 while CUDA stays on 2.14.1: - requirements/cpu.txt, requirements/build/cpu.txt and the requirements/test/cpu.txt lockfile: torch 2.14.1 -> 2.14.0 (+cpu) - setup.py "zen" extra: zentorch 2.13.0.1 -> 2.14.0.0 - docker/Dockerfile.s390x: both build-stage torch installs -> 2.14.0 - docker/Dockerfile.zen: torch pin rewritten into zen.in -> 2.14.0 torch 2.14.0+cpu is on the release CPU index, and zentorch 2.14.0.0 declares an unpinned `torch` dependency. torchvision 0.29.1 (requires torch>=2.14.0) and torchaudio 2.11.0 stay as they are. Note: requirements/test/cpu.txt is compiled from requirements/test/cuda.in (torch==2.14.1) by the pip-compile-cpu hook, so re-running that hook would move the CPU lockfile back to 2.14.1. Revert this commit once zentorch publishes a 2.14.1 build. Test: `pytest tests/test_zentorch_version_pin.py` passes. Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
`test_full_cuda_graph[5-64-Zyphra/Zamba2-1.2B-instruct]` runs the HF model in the same process before starting vLLM with the default gpu_memory_utilization of 0.92. On the H200 MIG 35GB runner it missed the startup check by 0.01 GiB: Free memory on device cuda:0 (29.89/32.5 GiB) on startup is less than desired GPU memory utilization (0.92, 29.9 GiB) Use 0.9, as `test_fp32_cache_state` in the same file already does for the same reason. Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: khluu <khluu000@gmail.com>
torch 2.14.0 and 2.14.1 declare identical CUDA, cuDNN, NCCL and triton dependencies, so only the torch and torchvision pins change. The CPU requirements are already on 2.14.0, so the note about holding them back is dropped. Signed-off-by: Andrey Talman <atalman@fb.com>
6a4b92a to
1332dfb
Compare
β¦.0 (test channel) Update the PyTorch ecosystem to the 2.15.0 release candidate, resolving wheels from the PyTorch test channel (download.pytorch.org/whl/test/...). Same shape as the initial 2.14.0 iteration of vllm-project#52183. - torch: 2.13.0 -> 2.15.0 - torchvision: 0.28.0 -> 0.29.1 - triton: 3.7.1 -> 3.9.0 - torchaudio: 2.11.0 (unchanged; newest published on every channel) CUDA stays on cu130. The CUDA libraries in requirements/test/cuda.txt follow the 13.0 entry of PYTORCH_EXTRA_INSTALL_REQUIREMENTS in pytorch's .github/scripts/generate_binary_build_matrix.py (identical on main and release/2.15), which torch 2.15.0+cu130 pins with '==' in its wheel metadata: nvidia-cudnn-cu13 9.20.0.48 -> 9.26.0.51 nvidia-nccl-cu13 2.29.7 -> 2.30.7 nvidia-nvshmem-cu13 3.4.5 -> 3.7.2 nvidia-cusparselt-cu13 0.8.1 (unchanged) cuda-toolkit 13.0.3 (unchanged) cuda-bindings 13.0.3 (unchanged, satisfies >=13.0.3,<14) Verified on the test channel before pinning: torch 2.15.0 (+cu130, +cpu), torchvision 0.29.1 (+cu130, +cpu), triton 3.9.0 (test/, test/cu130, test/cpu), and the CUDA libraries above. torch 2.15.0's metadata requires triton~=3.9.0. The index URLs (docker/Dockerfile PYTORCH_CUDA_INDEX_BASE_URL, docker/versions.json, requirements/build/{cuda,cpu}.txt, requirements/cpu.txt, Dockerfile.s390x, the CUDA quantization torchao install and python_only_compile.sh) point at the test channel. check-ray-compatibility.sh offers uv both the stable and the test channels. Not changed: torchao stays on 0.17.0 (no torch 2.15 build is published yet; the newest, 0.18.0, pairs with 2.14), requirements/build/tpu.txt (TPU torch is bumped separately), ROCm requirement files, and the zentorch pin. The lockfiles are hand-edited rather than recompiled; a reviewer with a working resolver should regenerate them to pick up any transitive changes. Test Plan: full CI (apply the `ready` label to trigger Buildkite). Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
- docker/Dockerfile.cpu: install requirements/{cpu,build/cpu,test/cpu}.txt with
--extra-index-url ${PYTORCH_CPU_INDEX_BASE_URL}/test/cpu instead of
--torch-backend cpu. uv's --torch-backend only knows the stable channels, so it
cannot resolve an RC.
- RELEASE-ONLY: force a fresh torch on every CPU build (UV_NO_CACHE=1 in
Dockerfile.cpu, --no-cache in image_build_cpu.sh and run-cpu-test.sh). The RC
is republished on the test channel under an unchanging version string, so
cached layers and the uv cache would otherwise keep serving a stale wheel.
Revert once 2.15.0 is final and published to PyPI.
Same changes as the 2.14.0 RC iteration of vllm-project#52183.
Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
β¦.0 (test channel) Update the PyTorch ecosystem to the 2.15.0 release candidate, resolving wheels from the PyTorch test channel (download.pytorch.org/whl/test/...). Same shape as the initial 2.14.0 iteration of vllm-project#52183. - torch: 2.13.0 -> 2.15.0 - torchvision: 0.28.0 -> 0.29.1 - triton: 3.7.1 -> 3.9.0 - torchaudio: 2.11.0 (unchanged; newest published on every channel) CUDA stays on cu130. The CUDA libraries in requirements/test/cuda.txt follow the 13.0 entry of PYTORCH_EXTRA_INSTALL_REQUIREMENTS in pytorch's .github/scripts/generate_binary_build_matrix.py (identical on main and release/2.15), which torch 2.15.0+cu130 pins with '==' in its wheel metadata: nvidia-cudnn-cu13 9.20.0.48 -> 9.26.0.51 nvidia-nccl-cu13 2.29.7 -> 2.30.7 nvidia-nvshmem-cu13 3.4.5 -> 3.7.2 nvidia-cusparselt-cu13 0.8.1 (unchanged) cuda-toolkit 13.0.3 (unchanged) cuda-bindings 13.0.3 (unchanged, satisfies >=13.0.3,<14) Verified on the test channel before pinning: torch 2.15.0 (+cu130, +cpu), torchvision 0.29.1 (+cu130, +cpu), triton 3.9.0 (test/, test/cu130, test/cpu), and the CUDA libraries above. torch 2.15.0's metadata requires triton~=3.9.0. The index URLs (docker/Dockerfile PYTORCH_CUDA_INDEX_BASE_URL, docker/versions.json, requirements/build/{cuda,cpu}.txt, requirements/cpu.txt, Dockerfile.s390x, the CUDA quantization torchao install and python_only_compile.sh) point at the test channel. check-ray-compatibility.sh offers uv both the stable and the test channels. Not changed: torchao stays on 0.17.0 (no torch 2.15 build is published yet; the newest, 0.18.0, pairs with 2.14), requirements/build/tpu.txt (TPU torch is bumped separately), ROCm requirement files, and the zentorch pin. The lockfiles are hand-edited rather than recompiled; a reviewer with a working resolver should regenerate them to pick up any transitive changes. Test Plan: full CI (apply the `ready` label to trigger Buildkite). Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
- docker/Dockerfile.cpu: install requirements/{cpu,build/cpu,test/cpu}.txt with
--extra-index-url ${PYTORCH_CPU_INDEX_BASE_URL}/test/cpu instead of
--torch-backend cpu. uv's --torch-backend only knows the stable channels, so it
cannot resolve an RC.
- RELEASE-ONLY: force a fresh torch on every CPU build (UV_NO_CACHE=1 in
Dockerfile.cpu, --no-cache in image_build_cpu.sh and run-cpu-test.sh). The RC
is republished on the test channel under an unchanging version string, so
cached layers and the uv cache would otherwise keep serving a stale wheel.
Revert once 2.15.0 is final and published to PyPI.
Same changes as the 2.14.0 RC iteration of vllm-project#52183.
Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
β¦.0 (test channel) Update the PyTorch ecosystem to the 2.15.0 release candidate, resolving wheels from the PyTorch test channel (download.pytorch.org/whl/test/...). Same shape as the initial 2.14.0 iteration of vllm-project#52183. - torch: 2.13.0 -> 2.15.0 - torchvision: 0.28.0 -> 0.29.1 - triton: 3.7.1 -> 3.9.0 - torchaudio: 2.11.0 (unchanged; newest published on every channel) CUDA stays on cu130. The CUDA libraries in requirements/test/cuda.txt follow the 13.0 entry of PYTORCH_EXTRA_INSTALL_REQUIREMENTS in pytorch's .github/scripts/generate_binary_build_matrix.py (identical on main and release/2.15), which torch 2.15.0+cu130 pins with '==' in its wheel metadata: nvidia-cudnn-cu13 9.20.0.48 -> 9.26.0.51 nvidia-nccl-cu13 2.29.7 -> 2.30.7 nvidia-nvshmem-cu13 3.4.5 -> 3.7.2 nvidia-cusparselt-cu13 0.8.1 (unchanged) cuda-toolkit 13.0.3 (unchanged) cuda-bindings 13.0.3 (unchanged, satisfies >=13.0.3,<14) Verified on the test channel before pinning: torch 2.15.0 (+cu130, +cpu), torchvision 0.29.1 (+cu130, +cpu), triton 3.9.0 (test/, test/cu130, test/cpu), and the CUDA libraries above. torch 2.15.0's metadata requires triton~=3.9.0. The index URLs (docker/Dockerfile PYTORCH_CUDA_INDEX_BASE_URL, docker/versions.json, requirements/build/{cuda,cpu}.txt, requirements/cpu.txt, Dockerfile.s390x, the CUDA quantization torchao install and python_only_compile.sh) point at the test channel. check-ray-compatibility.sh offers uv both the stable and the test channels. Not changed: torchao stays on 0.17.0 (no torch 2.15 build is published yet; the newest, 0.18.0, pairs with 2.14), requirements/build/tpu.txt (TPU torch is bumped separately), ROCm requirement files, and the zentorch pin. The lockfiles are hand-edited rather than recompiled; a reviewer with a working resolver should regenerate them to pick up any transitive changes. Test Plan: full CI (apply the `ready` label to trigger Buildkite). Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
- docker/Dockerfile.cpu: install requirements/{cpu,build/cpu,test/cpu}.txt with
--extra-index-url ${PYTORCH_CPU_INDEX_BASE_URL}/test/cpu instead of
--torch-backend cpu. uv's --torch-backend only knows the stable channels, so it
cannot resolve an RC.
- RELEASE-ONLY: force a fresh torch on every CPU build (UV_NO_CACHE=1 in
Dockerfile.cpu, --no-cache in image_build_cpu.sh and run-cpu-test.sh). The RC
is republished on the test channel under an unchanging version string, so
cached layers and the uv cache would otherwise keep serving a stale wheel.
Revert once 2.15.0 is final and published to PyPI.
Same changes as the 2.14.0 RC iteration of vllm-project#52183.
Signed-off-by: Andrey Talman <atalman@users.noreply.github.com>
β¦.0 (release channel) (vllm-project#52183) Signed-off-by: Andrey Talman <atalman@users.noreply.github.com> Signed-off-by: Andrey Talman <atalman@fb.com> Co-authored-by: Andrey Talman <atalman@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Andreas Karatzas <AndreasKaratzas@users.noreply.github.com>
Purpose
Update the PyTorch ecosystem to 2.14.0, resolving wheels from the release channel:
torch: β 2.14.0torchvision: β 0.29.0triton: 3.8.0 (unchanged β current for 2.14.0)torchaudio: 2.11.0 (unchanged β newest published on every channel)CUDA stays on cu130.
This PR originally targeted the 2.14.0 release candidate on the test channel. That premise has
expired: 2.14.0 went GA on 2026-09-02 and 2.14.1 on 2026-09-30, both published to the release
index. Continuing to pin an RC from
whl/test/would ship a version that is two releases stale.Verified availability on the release channel before pinning
whl/cu130whl/cputorch==2.14.02.14.0,2.14.0+cu130)torchvision==0.29.00.29.0,0.29.0+cu130)torchaudio==2.11.0triton==3.8.0torchao==0.18.0torch==2.14.0is also on PyPI.ENV UV_NO_CACHE=1docker/Dockerfile.cpu--no-cacheon the image build.buildkite/image_build/image_build_cpu.sh--no-cacheon the test build.buildkite/scripts/hardware_ci/run-cpu-test.sh--extra-index-urltests/standalone_tests/python_only_compile.shDropping the two
--no-cacheflags restores CPU image layer caching, which the comments noted hadbeen disabled at a measured cost (build 84705: 28 cached layers, zero torch downloads).
Deliberately unchanged
.buildkite/scripts/check-ray-compatibility.shalready offers the resolver both the stable andthe test channel and lets
uv --index-strategy unsafe-best-matchpick. It resolves 2.14.1 fromstable today and still works for a future RC, so it needs no edit.
The CPU shard timeouts in
.buildkite/hardware_tests/cpu.yaml(50m β 90m, 90m β 120m) are adifferent workaround: torch 2.14 made CPU model-execution shards up to ~6.6x slower, tracked by
pytorch/pytorch#193951. That issue is now closed
as completed, so by its own comment these are revertable β but the timings in the comment were
measured against the RC and there is no 2.14.1 measurement yet. Left in place deliberately: a
too-generous limit costs nothing, a too-tight one kills a shard mid-run. Worth one measured run
before reverting, as a follow-up.
CI status
Triage of the last full run (build 91655) is in a
comment below: 14 blocking failures, of which 2 are plausible torch regressions β an NVFP4
divergence that matches the already-filed
pytorch/test-infra#8785, and a ROCm
vllm._deepselect_Cextension build failure. The rest are pre-existing onmain, infrastructure,or flake-shaped. That run was against 2.14.0 from the test channel; it will need a re-run on these
pins.