Skip to content

Commit 217144e

Browse files
author
zynaa
committed
refactor: build cuda12 instead of cuda tag
1 parent 3fce366 commit 217144e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,23 +232,23 @@ jobs:
232232
needs: [x86_64-scipy]
233233
if: ${{ !contains(github.event.pull_request.title, '[FAST_BUILD]') }}
234234

235-
aarch64-pytorch-cuda:
235+
aarch64-pytorch-cuda12:
236236
uses: ./.github/workflows/docker-build-test-upload.yml
237237
with:
238238
parent-image: scipy-notebook
239239
image: pytorch-notebook
240-
variant: cuda
240+
variant: cuda12
241241
platform: aarch64
242242
runs-on: ARM64_SLOW
243243
needs: [aarch64-scipy]
244244
if: github.repository_owner == 'jupyter' && !contains(github.event.pull_request.title, '[FAST_BUILD]')
245245

246-
x86_64-pytorch-cuda:
246+
x86_64-pytorch-cuda12:
247247
uses: ./.github/workflows/docker-build-test-upload.yml
248248
with:
249249
parent-image: scipy-notebook
250250
image: pytorch-notebook
251-
variant: cuda
251+
variant: cuda12
252252
platform: x86_64
253253
runs-on: ubuntu-latest
254254
needs: [x86_64-scipy]
@@ -363,7 +363,7 @@ jobs:
363363
{ image: julia-notebook, variant: default },
364364
{ image: tensorflow-notebook, variant: default },
365365
{ image: pytorch-notebook, variant: default },
366-
{ image: pytorch-notebook, variant: cuda },
366+
{ image: pytorch-notebook, variant: cuda12 },
367367
{ image: pytorch-notebook, variant: cuda11 },
368368
{ image: datascience-notebook, variant: default },
369369
{ image: pyspark-notebook, variant: default },
@@ -425,7 +425,7 @@ jobs:
425425
{ image: julia-notebook, variant: default },
426426
{ image: tensorflow-notebook, variant: default },
427427
{ image: pytorch-notebook, variant: default },
428-
{ image: pytorch-notebook, variant: cuda },
428+
{ image: pytorch-notebook, variant: cuda12 },
429429
{ image: pytorch-notebook, variant: cuda11 },
430430
{ image: datascience-notebook, variant: default },
431431
{ image: pyspark-notebook, variant: default },
@@ -486,7 +486,7 @@ jobs:
486486
{ image: julia-notebook, variant: default },
487487
{ image: tensorflow-notebook, variant: default },
488488
{ image: pytorch-notebook, variant: default },
489-
{ image: pytorch-notebook, variant: cuda },
489+
{ image: pytorch-notebook, variant: cuda12 },
490490
{ image: pytorch-notebook, variant: cuda11 },
491491
{ image: datascience-notebook, variant: default },
492492
{ image: pyspark-notebook, variant: default },

images/pytorch-notebook/cuda/Dockerfile renamed to images/pytorch-notebook/cuda12/Dockerfile

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 \
16+
RUN pip install --no-cache-dir --extra-index-url=https://pypi.nvidia.com --index-url 'https://download.pytorch.org/whl/cu121' \
1717
'torch' \
1818
'torchvision' \
1919
'torchaudio' && \

0 commit comments

Comments
 (0)