Skip to content

Commit e721b6b

Browse files
committed
Option to install upstream PyTorch from nightly wheels
1 parent 750b769 commit e721b6b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ on:
5252
description: Runner label for version
5353
type: string
5454
default: runner-0.0.19
55+
pytorch_nightly_wheels:
56+
description: Use PyTorch nightly wheels
57+
type: boolean
58+
default: true
5559

5660
permissions: read-all
5761

@@ -92,11 +96,17 @@ jobs:
9296
python-version: ${{ inputs.python_version }}
9397

9498
- name: Setup PyTorch
99+
if: ${{ !inputs.pytorch_nightly_wheels }}
95100
uses: ./.github/actions/setup-pytorch
96101
with:
97102
repository: pytorch/pytorch
98103
ref: ${{ inputs.pytorch_ref }}
99104

105+
- name: Setup PyTorch
106+
if: ${{ inputs.pytorch_nightly_wheels }}
107+
run: |
108+
pip install torch --index-url https://download.pytorch.org/whl/nightly/xpu
109+
100110
- name: Install pass_rate dependencies
101111
run: |
102112
pip install defusedxml

0 commit comments

Comments
 (0)