Skip to content

Commit 0dd81e2

Browse files
authored
Build pytorch cuda13 image instead of cuda11 (#2391)
1 parent 39c21fe commit 0dd81e2

File tree

6 files changed

+26
-15
lines changed

6 files changed

+26
-15
lines changed

.github/workflows/docker-tag-merge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
with:
4646
name: ${{ inputs.image }}-aarch64-${{ inputs.variant }}-tags
4747
path: /tmp/jupyter/tags/
48-
if: ${{ !contains(inputs.variant, 'cuda11') }}
4948

5049
- name: Download x86_64 tags file 🏷
5150
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0

.github/workflows/docker-tag-push.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848

4949
- name: Download image tar and apply tags 🏷
5050
uses: ./.github/actions/apply-single-tags
51-
if: ${{ !(contains(inputs.variant, 'cuda11') && matrix.platform == 'aarch64') }}
5251
with:
5352
image: ${{ inputs.image }}
5453
variant: ${{ inputs.variant }}
@@ -67,7 +66,7 @@ jobs:
6766
id: login
6867

6968
- name: Push single platform images to Registry 📤
70-
if: env.PUSH_TO_REGISTRY == 'true' && !(contains(inputs.variant, 'cuda11') && matrix.platform == 'aarch64')
69+
if: env.PUSH_TO_REGISTRY == 'true'
7170
run: |
7271
docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }} || \
7372
docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }}

.github/workflows/docker.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,36 +266,48 @@ jobs:
266266
needs: x86_64-scipy
267267
if: ${{ !contains(github.event.pull_request.title, '[FAST_BUILD]') }}
268268

269-
x86_64-pytorch-cuda11:
269+
aarch64-pytorch-cuda12:
270+
uses: ./.github/workflows/docker-build-test-upload.yml
271+
with:
272+
parent-image: scipy-notebook
273+
image: pytorch-notebook
274+
variant: cuda12
275+
platform: aarch64
276+
runs-on: ubuntu-24.04-arm
277+
timeout-minutes: 25
278+
needs: aarch64-scipy
279+
if: ${{ !contains(github.event.pull_request.title, '[FAST_BUILD]') }}
280+
281+
x86_64-pytorch-cuda12:
270282
uses: ./.github/workflows/docker-build-test-upload.yml
271283
with:
272284
parent-image: scipy-notebook
273285
image: pytorch-notebook
274-
variant: cuda11
286+
variant: cuda12
275287
platform: x86_64
276288
runs-on: ubuntu-24.04
277289
timeout-minutes: 25
278290
needs: x86_64-scipy
279291
if: ${{ !contains(github.event.pull_request.title, '[FAST_BUILD]') }}
280292

281-
aarch64-pytorch-cuda12:
293+
aarch64-pytorch-cuda13:
282294
uses: ./.github/workflows/docker-build-test-upload.yml
283295
with:
284296
parent-image: scipy-notebook
285297
image: pytorch-notebook
286-
variant: cuda12
298+
variant: cuda13
287299
platform: aarch64
288300
runs-on: ubuntu-24.04-arm
289301
timeout-minutes: 25
290302
needs: aarch64-scipy
291303
if: ${{ !contains(github.event.pull_request.title, '[FAST_BUILD]') }}
292304

293-
x86_64-pytorch-cuda12:
305+
x86_64-pytorch-cuda13:
294306
uses: ./.github/workflows/docker-build-test-upload.yml
295307
with:
296308
parent-image: scipy-notebook
297309
image: pytorch-notebook
298-
variant: cuda12
310+
variant: cuda13
299311
platform: x86_64
300312
runs-on: ubuntu-24.04
301313
timeout-minutes: 25
@@ -407,10 +419,10 @@ jobs:
407419
include:
408420
- image: tensorflow-notebook
409421
variant: cuda
410-
- image: pytorch-notebook
411-
variant: cuda11
412422
- image: pytorch-notebook
413423
variant: cuda12
424+
- image: pytorch-notebook
425+
variant: cuda13
414426
needs:
415427
[
416428
contributed-recipes,
@@ -425,6 +437,7 @@ jobs:
425437
aarch64-tensorflow-cuda,
426438
aarch64-pytorch,
427439
aarch64-pytorch-cuda12,
440+
aarch64-pytorch-cuda13,
428441
aarch64-datascience,
429442
aarch64-pyspark,
430443
aarch64-all-spark,
@@ -438,8 +451,8 @@ jobs:
438451
x86_64-tensorflow,
439452
x86_64-tensorflow-cuda,
440453
x86_64-pytorch,
441-
x86_64-pytorch-cuda11,
442454
x86_64-pytorch-cuda12,
455+
x86_64-pytorch-cuda13,
443456
x86_64-datascience,
444457
x86_64-pyspark,
445458
x86_64-all-spark,

docs/images/inherit.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/using/selecting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ The following diagram depicts the build dependency tree of the core images. (i.e
253253
Any given image inherits the complete content of all ancestor images pointing to it.
254254

255255
[![Image inheritance
256-
diagram](../images/inherit.svg)](http://interactive.blockdiag.com/?compression=deflate&src=eJyFj0FqwzAQRfc5hfAqpYiS7kpoT9BdugyEsTxuplZmjDRqcEvvXinQggzGK8Gb97_4rRc3dATv5ntjTIc9JK-nXlgjfaF5Nk_7zCUQsoKScEajBA1Aut_kU5PaxJqOvH19O5gr6TnfidUE9AgR7xpjX0yXf8Fgo4Ibou0lcXdrK-VLt5Jrc4NlUWxFhiJXoBgXYrqAr6Q5K150NE6VVZPiNIocJfRerv_8yPcudWA-IRCwNgvJcVIJ7jyP7XYPt-fxLx8XCvJkyBTZ4eqUsGp8JE-wMnac4ghhqKw5Kx54b-fmzy_M3cYh)
256+
diagram](../images/inherit.svg)](http://interactive.blockdiag.com/?compression=deflate&src=eJyFj8FKxDAQhu_7FKEnRYKsnmTRJ9ibe1yQaTp1x2ZnSjJxqeK7mywopFB6Cnzz_X_4Wy9u6AjezffGmA57SF7femGN9IXm2TztMpdAyApKwhmNEjQA6W6TT01qE2s68s3-8GoupKd8J1YT0CNEvG2MfTFd_gWDjQpuiLaXxN21rZQv3UquzQ2WRbEVGYpcgWKciekMvpLmrHjR0ThVVk2K0yhylNB7ufzzI9-51IH5hEDA2iwkx0kluNM8tn24vz6Pf_m4UJAnQ6bIDlenhFXjI3mClbHjFEcIQ2XNWfHAezs3f34BzoTGIw)
257257

258258
### Builds
259259

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1313

1414
# Install PyTorch with pip (https://pytorch.org/get-started/locally/)
1515
# hadolint ignore=DL3013
16-
RUN pip install --no-cache-dir --extra-index-url=https://pypi.nvidia.com --index-url 'https://download.pytorch.org/whl/cu118' \
16+
RUN pip install --no-cache-dir --extra-index-url=https://pypi.nvidia.com --index-url 'https://download.pytorch.org/whl/cu130' \
1717
'torch' \
1818
'torchaudio' \
1919
'torchvision' && \

0 commit comments

Comments
 (0)