Skip to content

Commit 054dee8

Browse files
authored
Switch workflows to use new nightly iree-turbine packages. (#657)
This simplification will help with #584. Nightly releases of iree-turbine are now being built thanks to iree-org/iree-turbine#314 and published at the same index as the other IREE packages thanks to iree-org/iree#19391.
1 parent 2d0eff8 commit 054dee8

File tree

9 files changed

+59
-86
lines changed

9 files changed

+59
-86
lines changed

.github/workflows/ci-llama-large-tests.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,12 @@ jobs:
5959
pip install --no-compile -r pytorch-cpu-requirements.txt
6060
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
6161
62-
# Install latest iree-turbine.
63-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
64-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
65-
66-
# Test with nightly releases, not what iree-turbine uses.
67-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
62+
# Install nightly IREE packages.
63+
# We could also pin to a known working or stable version.
64+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
6865
iree-base-compiler \
69-
iree-base-runtime
66+
iree-base-runtime \
67+
iree-turbine
7068
7169
pip freeze
7270

.github/workflows/ci-llama-quick-tests.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,12 @@ jobs:
5959
pip install --no-compile -r pytorch-cpu-requirements.txt
6060
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
6161
62-
# Install latest iree-turbine.
63-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
64-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
65-
66-
# Test with nightly releases, not what iree-turbine uses.
67-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
62+
# Install nightly IREE packages.
63+
# We could also pin to a known working or stable version.
64+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
6865
iree-base-compiler \
69-
iree-base-runtime
66+
iree-base-runtime \
67+
iree-turbine
7068
7169
pip freeze
7270

.github/workflows/ci-sglang-benchmark.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,11 @@ jobs:
6565
# from non default locations first. Installing the PyTorch CPU
6666
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
6767
pip install --no-compile -r pytorch-cpu-requirements.txt
68-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
69-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
68+
pip install -f https://iree.dev/pip-release-links.html --pre iree-turbine
7069
pip install --no-compile -r requirements.txt -e sharktank/ shortfin/
7170
72-
# Try with the latest nightly releases, not what iree-turbine pins.
73-
# We could also pin to a known working or stable version.
74-
# This should eventually stabilize. Do the best we can for now.
75-
pip install -f https://iree.dev/pip-release-links.html --upgrade \
71+
# Pin to known-working versions.
72+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
7673
iree-base-compiler==3.1.0rc20241204 \
7774
iree-base-runtime==3.1.0rc20241204 \
7875
"numpy<2.0"

.github/workflows/ci-sglang-integration-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,14 @@ jobs:
5454
# from non default locations first. Installing the PyTorch CPU
5555
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
5656
pip install --no-compile -r pytorch-cpu-requirements.txt
57-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
58-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
5957
pip install --no-compile -r requirements.txt -e sharktank/ shortfin/
6058
6159
# Use newest possible releases to be able to track commits that may
6260
# cause errors.
63-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
61+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
6462
iree-base-compiler \
6563
iree-base-runtime \
64+
iree-turbine \
6665
"numpy<2.0"
6766
6867
# Install SGLang and sentence_transformers

.github/workflows/ci-shark-ai.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,12 @@ jobs:
5555
pip install --no-compile -r pytorch-cpu-requirements.txt
5656
pip install --no-compile -r requirements.txt -e sharktank/ shortfin/
5757
58-
# Install latest iree-tubrine.
59-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
60-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
61-
62-
# Try with the latest IREE nightly releases, not what iree-turbine pins.
58+
# Install nightly IREE packages.
6359
# We could also pin to a known working or stable version.
64-
# This should eventually stabilize. Do the best we can for now.
65-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
60+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
6661
iree-base-compiler \
67-
iree-base-runtime
62+
iree-base-runtime \
63+
iree-turbine
6864
6965
pip freeze
7066

.github/workflows/ci-sharktank.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ jobs:
6060
pip install --no-compile -r pytorch-cpu-requirements.txt
6161
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
6262
63-
# Update to the latest iree packages.
64-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
65-
iree-base-compiler iree-base-runtime --src deps \
66-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
63+
# Install nightly IREE packages.
64+
# We could also pin to a known working or stable version.
65+
pip install -f https://iree.dev/pip-release-links.html --pre \
66+
iree-base-compiler \
67+
iree-base-runtime \
68+
iree-turbine
6769
6870
- name: Run sharktank tests
6971
if: ${{ !cancelled() }}
@@ -83,7 +85,7 @@ jobs:
8385
run:
8486
shell: bash
8587
env:
86-
PIP_CACHE_DIR: "${{ github.workspace }}/.pip-cache"
88+
VENV_DIR: ${{ github.workspace }}/.venv
8789
HF_HOME: "/data/huggingface"
8890
steps:
8991
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -94,37 +96,31 @@ jobs:
9496
with:
9597
python-version: ${{matrix.version}}
9698

97-
- name: Cache Pip Packages
98-
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
99-
id: cache-pip
100-
with:
101-
path: ${{ env.PIP_CACHE_DIR }}
102-
key: pip-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('*requirements*.txt','sharktank/requirements*.txt') }}
99+
- name: Create Python venv
100+
run: python -m venv ${VENV_DIR}
103101

104102
- name: Install sharktank deps
105103
run: |
104+
source ${VENV_DIR}/bin/activate
106105
python -m pip install --no-compile --upgrade pip
107106
# Note: We install in three steps in order to satisfy requirements
108107
# from non default locations first. Installing the PyTorch CPU
109108
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
110109
pip install --no-compile -r pytorch-cpu-requirements.txt
111110
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
112111
113-
# Install latest iree-tubrine.
114-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
115-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
116-
117-
# Try with the latest IREE nightly releases, not what iree-turbine pins.
112+
# Install nightly IREE packages.
118113
# We could also pin to a known working or stable version.
119-
# This should eventually stabilize. Do the best we can for now.
120-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
114+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
121115
iree-base-compiler \
122-
iree-base-runtime
116+
iree-base-runtime \
117+
iree-turbine
123118
124119
- name: Run tests
125120
# TODO: unify with-t5-data and with-clip-data flags into a single flag
126121
# and make it possible to run only tests that require data.
127122
run: |
123+
source ${VENV_DIR}/bin/activate
128124
pytest \
129125
--with-clip-data \
130126
--with-t5-data \
@@ -162,10 +158,13 @@ jobs:
162158
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
163159
pip install --no-compile -r pytorch-cpu-requirements.txt
164160
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
165-
# Update to the latest iree packages.
166-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
167-
iree-base-compiler iree-base-runtime --src deps \
168-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
161+
162+
# Install nightly IREE packages.
163+
# We could also pin to a known working or stable version.
164+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
165+
iree-base-compiler \
166+
iree-base-runtime \
167+
iree-turbine
169168
- name: Run punet tests
170169
run: |
171170
pytest -v sharktank/ -m punet_quick \

.github/workflows/ci_eval.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ jobs:
5757
pip install --no-compile -r pytorch-cpu-requirements.txt
5858
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
5959
60-
# Install latest iree-tubrine.
61-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
62-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
63-
64-
# Try with the latest IREE nightly releases, not what iree-turbine pins.
60+
# Install nightly IREE packages.
6561
# We could also pin to a known working or stable version.
66-
# This should eventually stabilize. Do the best we can for now.
67-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
62+
pip install -f https://iree.dev/pip-release-links.html --pre \
6863
iree-base-compiler \
69-
iree-base-runtime
64+
iree-base-runtime \
65+
iree-turbine
7066
7167
pip freeze
7268
@@ -119,9 +115,10 @@ jobs:
119115
pip install --no-compile -r pytorch-cpu-requirements.txt
120116
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
121117
122-
# Install latest iree-tubrine.
123-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
124-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
118+
# Install nightly iree-turbine.
119+
# We could also pin to a known working or stable version.
120+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
121+
iree-turbine
125122
126123
- name: Run perplexity test with Torch
127124
run: |

.github/workflows/ci_eval_short.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,12 @@ jobs:
5656
pip install --no-compile -r pytorch-cpu-requirements.txt
5757
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
5858
59-
# Install latest iree-tubrine.
60-
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
61-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
62-
63-
# Try with the latest IREE nightly releases, not what iree-turbine pins.
59+
# Install nightly IREE packages.
6460
# We could also pin to a known working or stable version.
65-
# This should eventually stabilize. Do the best we can for now.
66-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
61+
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
6762
iree-base-compiler \
68-
iree-base-runtime
63+
iree-base-runtime \
64+
iree-turbine
6965
7066
pip freeze
7167

docs/nightly_releases.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,19 @@ deactivate
8686

8787
## Installing newer versions of dependencies
8888

89-
To install the `iree-turbine` package from the latest source:
90-
91-
```bash
92-
pip install --src deps \
93-
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
94-
```
95-
96-
To install the `iree-base-compiler` and `iree-base-runtime` packages from
97-
nightly releases:
89+
To install all IREE packages from nightly releases:
9890

9991
```bash
10092
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
101-
iree-base-compiler iree-base-runtime
93+
iree-base-compiler \
94+
iree-base-runtime \
95+
iree-turbine
10296
```
10397

104-
To install all three packages together:
98+
To install an editable `iree-turbine` package from the latest source:
10599

106100
```bash
107-
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
108-
iree-base-compiler iree-base-runtime --src deps \
101+
pip install --src deps \
109102
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
110103
```
111104

0 commit comments

Comments
 (0)