Skip to content

Commit

Permalink
Add [pinned, unpinnned] matrix to ci_val.yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Jan 7, 2025
1 parent 59e1ff6 commit f9465eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 31 deletions.
37 changes: 12 additions & 25 deletions .github/workflows/ci_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ jobs:
test_perplexity_iree:
if: ${{ github.repository_owner == 'nod-ai' || github.event_name != 'schedule' }}
timeout-minutes: 1000
name: "IREE Perplexity"
name: "IREE Perplexity :: ${{ matrix.version }} :: ${{ matrix.requirements }}"
strategy:
matrix:
version: [3.11]
requirements: [pinned, unpinned]
runs-on: [llama-mi300x-3]
fail-fast: false
runs-on: ${{matrix.runs-on}}
Expand All @@ -51,20 +52,12 @@ jobs:
run: |
source ${VENV_DIR}/bin/activate
python -m pip install --no-compile --upgrade pip
# Note: We install in three steps in order to satisfy requirements
# from non default locations first. Installing the PyTorch CPU
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
pip install --no-compile -r pytorch-cpu-requirements.txt
# Install nightly IREE packages.
# We could also pin to a known working or stable version.
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
iree-base-compiler \
iree-base-runtime \
iree-turbine
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
pip install -r requirements-iree-${{ matrix.requirements }}.txt
pip install --no-compile \
-r sharktank/requirements.txt \
-r sharktank/requirements-tests.txt \
-e sharktank/
pip freeze
- name: Run perplexity test with IREE
Expand Down Expand Up @@ -110,18 +103,12 @@ jobs:
run: |
source ${VENV_DIR}/bin/activate
python -m pip install --no-compile --upgrade pip
# Note: We install in three steps in order to satisfy requirements
# from non default locations first. Installing the PyTorch CPU
# wheels saves multiple minutes and a lot of bandwidth on runner setup.
pip install --no-compile -r pytorch-cpu-requirements.txt
# Install nightly iree-turbine.
# We could also pin to a known working or stable version.
pip install -f https://iree.dev/pip-release-links.html --pre --upgrade \
iree-turbine
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/
pip install -r requirements-iree-unpinned.txt
pip install --no-compile \
-r sharktank/requirements.txt \
-r sharktank/requirements-tests.txt \
-e sharktank/
- name: Run perplexity test with Torch
run: |
Expand Down
4 changes: 1 addition & 3 deletions requirements-iree-pinned.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
--find-links https://iree.dev/pip-release-links.html
iree-base-compiler==3.1.0rc20241204
iree-base-runtime==3.1.0rc20241204

# TODO(#760): include iree-turbine in this requirements file too?
# iree-turbine==3.1.0rc20241205
iree-turbine==3.1.0rc20241205
4 changes: 1 addition & 3 deletions requirements-iree-unpinned.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
--find-links https://iree.dev/pip-release-links.html
iree-base-compiler
iree-base-runtime

# TODO(#760): include iree-turbine in this requirements file too?
# iree-turbine
iree-turbine

0 comments on commit f9465eb

Please sign in to comment.