@@ -17,6 +17,10 @@ concurrency:
1717env :
1818 HF_TOKEN : ${{ secrets.HF_TOKEN }}
1919
20+ permissions :
21+ id-token : write
22+ contents : read
23+
2024jobs :
2125 test-nightly :
2226 strategy :
@@ -33,10 +37,17 @@ jobs:
3337 torch-spec : ' --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu'
3438 gpu-arch-type : " cpu"
3539 gpu-arch-version : " "
36-
37- uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
40+ - name : ROCM Nightly
41+ runs-on : linux.rocm.gpu
42+ torch-spec : ' --pre torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3'
43+ gpu-arch-type : " rocm"
44+ gpu-arch-version : " 6.3"
45+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@rocm_experiment
3846 with :
3947 timeout : 120
48+ no-sudo : ${{ matrix.gpu-arch-type == 'rocm' }}
49+ continue-on-error : ${{ matrix.gpu-arch-type == 'rocm' }}
50+ test-infra-ref : rocm_experiment
4051 runner : ${{ matrix.runs-on }}
4152 gpu-arch-type : ${{ matrix.gpu-arch-type }}
4253 gpu-arch-version : ${{ matrix.gpu-arch-version }}
7182 torch-spec : ' torch==2.5.1 --index-url https://download.pytorch.org/whl/cu121'
7283 gpu-arch-type : " cuda"
7384 gpu-arch-version : " 12.1"
74-
7585 - name : CPU 2.3
7686 runs-on : linux.4xlarge
7787 torch-spec : ' torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu'
99109 conda create -n venv python=3.9 -y
100110 conda activate venv
101111 echo "::group::Install newer objcopy that supports --set-section-alignment"
102- yum install -y devtoolset-10-binutils
103- export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
104112 python -m pip install --upgrade pip
105113 pip install ${{ matrix.torch-spec }}
106114 pip install -r dev-requirements.txt
0 commit comments