Skip to content

Commit 0f94582

Browse files
committed
Fix pytorch install, r1
1 parent ff85043 commit 0f94582

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build-test-reusable.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ jobs:
7878
- name: Checkout repository
7979
uses: actions/checkout@v4
8080

81+
- name: Clone PyTorch
82+
if: inputs.env_manager != 'base'
83+
run: |
84+
git clone --recursive https://github.com/pytorch/pytorch
85+
cd pytorch
86+
git checkout ${{ inputs.pytorch_ref }}
87+
8188
- name: Load conda cache
8289
if: inputs.env_manager != 'base'
8390
id: conda-cache
@@ -86,7 +93,7 @@ jobs:
8693
CACHE_NUMBER: 6
8794
with:
8895
path: $HOME/miniforge3/envs/triton
89-
key: conda-${{ inputs.env_manager }}-py${{ matrix.python }}-${{ hashFiles('scripts/triton.yml', 'python/pyproject.toml', 'python/setup.py') }}-${{ env.CACHE_NUMBER }}
96+
key: conda-${{ inputs.env_manager }}-py${{ matrix.python }}-${{ hashFiles('scripts/triton.yml', 'python/pyproject.toml', 'python/setup.py', 'pytorch/.ci/docker/ci_commit_pins/huggingface.txt') }}-${{ env.CACHE_NUMBER }}
9097

9198
- name: Install Manager Environment
9299
shell: bash --noprofile --norc -eo pipefail {0}
@@ -128,9 +135,6 @@ jobs:
128135
if: inputs.env_manager != 'base'
129136
run: |
130137
pip install torch --index-url https://download.pytorch.org/whl/nightly/xpu
131-
git clone --recursive https://github.com/pytorch/pytorch
132-
cd pytorch
133-
git checkout ${{ inputs.pytorch_ref }}
134138
135139
- name: Install pass_rate dependencies
136140
run: |

0 commit comments

Comments
 (0)