You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* pytorch: add PyTorch 2.12.1 DLC images (CUDA + CPU, EC2 + SageMaker)
Add the 2.12 minor version alongside 2.11:
- docker/pytorch/2.12/: Dockerfiles + pyproject/uv.lock for cuda and cpu
- 4 image configs (ec2/sagemaker x cuda/cpu)
- 4 caller workflows (PR cuda/cpu, autorelease ec2/sagemaker)
- register both autorelease workflows in release-schedule.yml
Version pins: torch 2.12.1, torchvision 0.27.1. torchaudio stays at
2.11.0 (its final release — no 2.12 exists upstream); it has no torch
pin and resolves cleanly against torch 2.12.1. CUDA index unchanged
(cu130); remaining GPU pins mirror 2.11.
Autorelease crons use free Mon/Wed slots (22:00 ec2, 23:00 sagemaker).
* pytorch: consolidate per-version Dockerfiles into one shared file per device
The CUDA and CPU Dockerfiles were byte-identical across PyTorch minor
versions except for ARG defaults (TORCH_VERSION, FRAMEWORK_SHORT_VERSION)
that CI always overrides. Every version-specific input is already located
via context-root-relative COPY of docker/pytorch/${FRAMEWORK_SHORT_VERSION}/...,
and FRAMEWORK_SHORT_VERSION is derived at build time by the pytorch_runtime
pre_build hook — so the Dockerfile path no longer needs to encode the version.
- Move 2.12 Dockerfiles to docker/pytorch/Dockerfile.{cuda,cpu}; delete the
2.11 copies (byte-identical aside from ARG defaults)
- Repoint all 8 image configs' build.dockerfile at the shared files
- Repoint the 2.11 + 2.12 PR path filters at the shared files
- Per-version pin dirs (2.x/{cuda,cpu}/{pyproject.toml,uv.lock}) unchanged —
they remain the per-version source of truth
Verified: a build with context=. and -f the shared Dockerfile, differing
only by --build-arg FRAMEWORK_SHORT_VERSION, resolves the correct version's
pyproject (2.11 -> torch 2.11.0, 2.12 -> torch 2.12.1). A change to the shared
Dockerfile now triggers PR builds for every live version.
0 commit comments