Skip to content

Commit 93cff75

Browse files
authored
try updating gpu tests GHA (#3306)
1 parent 0d8b8a1 commit 93cff75

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/gpu-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
group: gpu-tests-${{ github.ref_name }}-${{ !(github.ref_protected) || github.sha }}
1717
cancel-in-progress: true
1818

19-
# Cherry-picked from https://github.com/pytorch/test-infra/blob/main/.github/workflows/linux_job.yml
19+
# Cherry-picked from https://github.com/pytorch/test-infra/blob/main/.github/workflows/linux_job_v2.yml
2020

2121
jobs:
2222
gpu-tests:
@@ -25,7 +25,7 @@ jobs:
2525
pytorch-channel: [pytorch, pytorch-nightly]
2626
fail-fast: false
2727
env:
28-
DOCKER_IMAGE: "pytorch/conda-builder:cuda12.1"
28+
DOCKER_IMAGE: "pytorch/almalinux-builder:cuda12.4"
2929
REPOSITORY: ${{ github.repository }}
3030
PR_NUMBER: ${{ github.event.pull_request.number }}
3131
runs-on: linux.8xlarge.nvidia.gpu
@@ -40,7 +40,7 @@ jobs:
4040
echo "::endgroup::"
4141
4242
- name: Checkout repository (pytorch/test-infra)
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
# Support the use case where we need to checkout someone's fork
4646
repository: pytorch/test-infra
@@ -55,7 +55,7 @@ jobs:
5555
docker-image: ${{ env.DOCKER_IMAGE }}
5656

5757
- name: Checkout repository (${{ github.repository }})
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959
with:
6060
# Support the use case where we need to checkout someone's fork
6161
repository: ${{ github.repository }}
@@ -102,9 +102,9 @@ jobs:
102102
103103
# Install PyTorch
104104
if [ "${{ matrix.pytorch-channel }}" == "pytorch" ]; then
105-
pip install --upgrade torch torchvision --index-url https://download.pytorch.org/whl/cu121
105+
pip install --upgrade torch torchvision --index-url https://download.pytorch.org/whl/cu124
106106
else
107-
pip install --upgrade --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu121
107+
pip install --upgrade --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124
108108
fi
109109
110110
python -c "import torch; print(torch.__version__, ', CUDA is available: ', torch.cuda.is_available()); exit(not torch.cuda.is_available())"
@@ -139,7 +139,7 @@ jobs:
139139
- name: Run examples in container
140140
continue-on-error: false
141141
run: |
142-
SCRIPT=$(cat << EOF
142+
script=$(cat << EOF
143143
144144
set -xe
145145

0 commit comments

Comments
 (0)