Skip to content

Commit e4f60af

Browse files
dulinrileymeta-codesync[bot]
authored andcommitted
Fix publish_release Docker build: use cuda12.6 base for pytorch 2.12.0 (#3921)
Summary: Pull Request resolved: #3921 The `publish_release` workflow was failing because `ghcr.io/pytorch/pytorch:2.12.0-cuda12.8-cudnn9-runtime` does not exist — only the `cuda12.6` variant is published for the 2.12.0 release. Switch the Dockerfile default and the CI `PYTORCH_TAG` build-arg to `2.12.0-cuda12.6-cudnn9-runtime`. Update the resulting Docker image tag suffixes in `publish_release.yml` and `wheels.yml` from `-cuda12.8` to `-cuda12.6` so the tag reflects the actual CUDA runtime in the image. The wheel build path (cu128 index, `pytorch/manylinux*-builder:cuda12.8`) is unchanged. Reviewed By: cpuhrsch Differential Revision: D105369175 fbshipit-source-id: 4fa8e10cfcc26a0cf273509e535c514fe108f787
1 parent cbc16e1 commit e4f60af

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
run: |
105105
VERSION="${{ github.event.inputs.version }}"
106106
PRERELEASE="${{ github.event.inputs.is_prerelease }}"
107-
TAGS="ghcr.io/${{ github.repository }}:${VERSION}-cuda12.8"
107+
TAGS="ghcr.io/${{ github.repository }}:${VERSION}-cuda12.6"
108108
if [[ "$PRERELEASE" == "false" ]]; then
109109
TAGS="$TAGS,ghcr.io/${{ github.repository }}:latest"
110110
fi
@@ -118,7 +118,7 @@ jobs:
118118
push: true # Push the image to the registry
119119
tags: ${{ steps.determine-tags.outputs.tags }}
120120
build-args: |
121-
PYTORCH_TAG=2.12.0-cuda12.8-cudnn9-runtime
121+
PYTORCH_TAG=2.12.0-cuda12.6-cudnn9-runtime
122122
MONARCH_VERSION=${{ github.event.inputs.version }}
123123
124124
create-docs-branch:

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
uses: docker/setup-buildx-action@v3
117117

118118
- name: Get tag for publishing
119-
run: echo "DOCKER_TAG=0.5.0.dev$(date +'%Y%m%d')-cuda12.8" >> $GITHUB_ENV
119+
run: echo "DOCKER_TAG=0.5.0.dev$(date +'%Y%m%d')-cuda12.6" >> $GITHUB_ENV
120120

121121
- name: Build and push Docker image
122122
uses: docker/build-push-action@v6

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Override on build from CI.
2-
ARG PYTORCH_TAG=2.12.0-cuda12.8-cudnn9-runtime
2+
ARG PYTORCH_TAG=2.12.0-cuda12.6-cudnn9-runtime
33

44
# Build from latest pytorch stable image; should be relatively in sync with torchmonarch and pytorch.
55
FROM ghcr.io/pytorch/pytorch:${PYTORCH_TAG}

0 commit comments

Comments
 (0)