Skip to content

Commit 498193c

Browse files
authored
Switch workflows to use new requirements-iree-*.txt files. (#813)
Progress on #760. We could make the scheduled jobs test both pinned and unpinned versions like on #767. Cleanup included here: * Dropped the "Installing the PyTorch CPU wheels saves multiple minutes and a lot of bandwidth on runner setup." comments since they are repetitive. Could add them back if people find them useful. * Stopped installing from the root `requirements.txt` in some workflows, instead opting to just install from the more specific `sharktank/requirements-tests.txt` I did not test the changes to scheduled workflows. Could do that on request, or just revert if we see issues.
1 parent 2ee3ec7 commit 498193c

5 files changed

+34
-51
lines changed

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

+5-11
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,12 @@ jobs:
5555
python -m pip install --no-compile --upgrade pip
5656
5757
# Note: We install in three steps in order to satisfy requirements
58-
# from non default locations first. Installing the PyTorch CPU
59-
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
58+
# from non default locations first.
6059
pip install --no-compile -r pytorch-cpu-requirements.txt
61-
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 \
65-
iree-base-compiler \
66-
iree-base-runtime \
67-
iree-turbine
68-
69-
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
60+
pip install -r requirements-iree-unpinned.txt
61+
pip install --no-compile \
62+
-r sharktank/requirements-tests.txt \
63+
-e sharktank/
7064
7165
pip freeze
7266

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

+11-10
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,19 @@ jobs:
6161
run: |
6262
source ${VENV_DIR}/bin/activate
6363
python -m pip install --no-compile --upgrade pip
64+
6465
# Note: We install in three steps in order to satisfy requirements
65-
# from non default locations first. Installing the PyTorch CPU
66-
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
66+
# from non default locations first.
6767
pip install --no-compile -r pytorch-cpu-requirements.txt
68-
pip install -f https://iree.dev/pip-release-links.html --pre iree-turbine
69-
pip install --no-compile -r requirements.txt -e sharktank/ shortfin/
70-
71-
# Pin to known-working versions.
72-
pip install -f https://iree.dev/pip-release-links.html \
73-
iree-base-compiler==3.1.0rc20241220 \
74-
iree-base-runtime==3.1.0rc20241220 \
75-
"numpy<2.0"
68+
69+
# Use newest possible releases to be able to track commits that may
70+
# cause errors or performance changes.
71+
pip install -r requirements-iree-unpinned.txt
72+
73+
pip install --no-compile \
74+
-r sharktank/requirements-tests.txt \
75+
-r shortfin/requirements-tests.txt \
76+
-e sharktank/ shortfin/
7677
7778
# Install SGLang
7879
pip install "git+https://github.com/nod-ai/sglang.git#subdirectory=python"

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

+6-8
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,17 @@ jobs:
5252
python -m pip install --no-compile --upgrade pip
5353
5454
# Note: We install in three steps in order to satisfy requirements
55-
# from non default locations first. Installing the PyTorch CPU
56-
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
55+
# from non default locations first.
5756
pip install --no-compile -r pytorch-cpu-requirements.txt
5857
5958
# Use newest possible releases to be able to track commits that may
6059
# cause errors.
61-
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
62-
iree-base-compiler \
63-
iree-base-runtime \
64-
iree-turbine \
65-
"numpy<2.0"
60+
pip install -r requirements-iree-unpinned.txt
6661
67-
pip install --no-compile -r requirements.txt -e sharktank/ shortfin/
62+
pip install --no-compile \
63+
-r sharktank/requirements-tests.txt \
64+
-r shortfin/requirements-tests.txt \
65+
-e sharktank/ shortfin/
6866
6967
# Install SGLang and sentence_transformers
7068
pip install "git+https://github.com/nod-ai/sglang.git#subdirectory=python"

.github/workflows/ci-tuner.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ jobs:
4646
- name: Install tuner dependencies
4747
run: |
4848
pip install -r tuner/requirements-tuner.txt
49-
python -m pip install \
50-
--find-links https://iree.dev/pip-release-links.html \
51-
--upgrade --pre \
52-
iree-base-compiler iree-base-runtime
49+
pip install -r requirements-iree-unpinned.txt
5350
5451
- name: Run tuner tests
5552
run: pytest tuner/

.github/workflows/ci_eval.yaml

+11-18
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,13 @@ jobs:
5353
python -m pip install --no-compile --upgrade pip
5454
5555
# Note: We install in three steps in order to satisfy requirements
56-
# from non default locations first. Installing the PyTorch CPU
57-
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
56+
# from non default locations first.
5857
pip install --no-compile -r pytorch-cpu-requirements.txt
58+
pip install -r requirements-iree-unpinned.txt
59+
pip install --no-compile \
60+
-r sharktank/requirements-tests.txt \
61+
-e sharktank/
5962
60-
# Install nightly IREE packages.
61-
# We could also pin to a known working or stable version.
62-
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
63-
iree-base-compiler \
64-
iree-base-runtime \
65-
iree-turbine
66-
67-
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
6863
pip freeze
6964
7065
- name: Run perplexity test with IREE
@@ -112,16 +107,14 @@ jobs:
112107
python -m pip install --no-compile --upgrade pip
113108
114109
# Note: We install in three steps in order to satisfy requirements
115-
# from non default locations first. Installing the PyTorch CPU
116-
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
110+
# from non default locations first.
117111
pip install --no-compile -r pytorch-cpu-requirements.txt
112+
pip install -r requirements-iree-unpinned.txt
113+
pip install --no-compile \
114+
-r sharktank/requirements-tests.txt \
115+
-e sharktank/
118116
119-
# Install nightly iree-turbine.
120-
# We could also pin to a known working or stable version.
121-
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
122-
iree-turbine
123-
124-
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
117+
pip freeze
125118
126119
- name: Run perplexity test with Torch
127120
run: |

0 commit comments

Comments
 (0)