Skip to content

Commit 47da8cb

Browse files
justinchubyCopilot
andauthored
Use ORT nightly in CI (#287)
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: justinchuby <11205048+justinchuby@users.noreply.github.com>
1 parent 970cd41 commit 47da8cb

4 files changed

Lines changed: 13 additions & 34 deletions

File tree

.github/workflows/gpu_l4_golden_parity.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ jobs:
4343
with:
4444
python-version: "3.12"
4545

46-
- name: Cache pip packages
47-
uses: actions/cache@v5
48-
with:
49-
path: ~/.cache/pip
50-
key: pip-gpu-${{ hashFiles('pyproject.toml', 'requirements/ci/requirements.txt') }}
51-
restore-keys: |
52-
pip-gpu-
53-
5446
- name: Cache HuggingFace models
5547
uses: actions/cache@v5
5648
with:
@@ -60,13 +52,14 @@ jobs:
6052
hf-gpu-
6153
6254
- name: Install PyTorch (CUDA)
63-
run: pip install torch --index-url https://download.pytorch.org/whl/cu124
55+
run: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
6456

6557
- name: Install dependencies
6658
run: |
6759
pip install -r requirements/ci/requirements.txt
68-
pip install onnxruntime-gpu
60+
pip install soundfile librosa ml_dtypes flatbuffers numpy packaging protobuf sympy coloredlogs
6961
pip install -e '.[testing,transformers]'
62+
pip install --pre --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ort-cuda-13-nightly/pypi/simple/ onnxruntime-gpu onnxruntime-genai-cuda
7063
7164
- name: Check for golden test data
7265
id: check_golden

.github/workflows/gpu_l5_generation_e2e.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ jobs:
4343
with:
4444
python-version: "3.12"
4545

46-
- name: Cache pip packages
47-
uses: actions/cache@v5
48-
with:
49-
path: ~/.cache/pip
50-
key: pip-gpu-${{ hashFiles('pyproject.toml', 'requirements/ci/requirements.txt') }}
51-
restore-keys: |
52-
pip-gpu-
53-
5446
- name: Cache HuggingFace models
5547
uses: actions/cache@v5
5648
with:
@@ -60,13 +52,14 @@ jobs:
6052
hf-gpu-
6153
6254
- name: Install PyTorch (CUDA)
63-
run: pip install torch --index-url https://download.pytorch.org/whl/cu124
55+
run: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
6456

6557
- name: Install dependencies
6658
run: |
6759
pip install -r requirements/ci/requirements.txt
68-
pip install onnxruntime-gpu
60+
pip install soundfile librosa ml_dtypes flatbuffers numpy packaging protobuf sympy coloredlogs
6961
pip install -e '.[testing,transformers]'
62+
pip install --pre --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ort-cuda-13-nightly/pypi/simple/ onnxruntime-gpu onnxruntime-genai-cuda
7063
7164
- name: Run L5 generation E2E tests
7265
env:

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,13 @@ jobs:
277277
restore-keys: |
278278
hf-integration-fast-
279279
- name: Install PyTorch CUDA
280-
run: pip install torch --index-url https://download.pytorch.org/whl/cu124
280+
run: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
281281
- name: Install dependencies
282282
run: |
283283
pip install -r requirements/ci/requirements.txt
284-
pip install onnxruntime-gpu
284+
pip install soundfile librosa ml_dtypes flatbuffers numpy packaging protobuf sympy coloredlogs
285285
pip install -e '.[testing]'
286+
pip install --pre --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ort-cuda-13-nightly/pypi/simple/ onnxruntime-gpu onnxruntime-genai-cuda
286287
- name: Run fast integration tests
287288
env:
288289
HF_TOKEN: ${{ secrets.HF_TOKEN }}

.github/workflows/validation_examples_gpu.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@ jobs:
6767
with:
6868
python-version: "3.12"
6969

70-
- name: Cache pip packages
71-
uses: actions/cache@v5
72-
with:
73-
path: ~/.cache/pip
74-
key: pip-examples-gpu-${{ hashFiles('pyproject.toml', 'requirements/ci/requirements.txt') }}
75-
restore-keys: |
76-
pip-examples-gpu-
77-
7870
- name: Cache HuggingFace models
7971
uses: actions/cache@v5
8072
with:
@@ -84,14 +76,14 @@ jobs:
8476
hf-examples-gpu-
8577
8678
- name: Install PyTorch (CUDA)
87-
run: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
79+
run: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
8880

8981
- name: Install dependencies
9082
run: |
9183
pip install -r requirements/ci/requirements.txt
92-
pip install -e '.[testing,transformers,ort-genai]'
93-
pip install onnxruntime-gpu
94-
pip install soundfile librosa ml_dtypes
84+
pip install -e '.[testing,transformers]'
85+
pip install soundfile librosa ml_dtypes flatbuffers numpy packaging protobuf sympy coloredlogs
86+
pip install --pre --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ort-cuda-13-nightly/pypi/simple/ onnxruntime-gpu onnxruntime-genai-cuda
9587
9688
- name: Run ${{ matrix.name }}
9789
env:

0 commit comments

Comments
 (0)