Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sharktank] Update shark-ai CIs with latest install #609

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e6eaa7d
update install to nightly releases
archana-ramalingam Nov 26, 2024
4604c2b
Test CI
archana-ramalingam Nov 26, 2024
7fdeaa1
Revert Test CI changes
archana-ramalingam Nov 26, 2024
1e5e4b9
Update sharktank shortfin installation for CIs
archana-ramalingam Nov 26, 2024
6b57dc9
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Nov 26, 2024
5e479f3
Test iree nightly
archana-ramalingam Nov 26, 2024
d045b30
Merge branch 'update-perplexity-ci-install' of https://github.com/nod…
archana-ramalingam Nov 26, 2024
e69fd1c
Update stable/nightly install
archana-ramalingam Nov 27, 2024
c7eca71
Test CI
archana-ramalingam Nov 27, 2024
86eec50
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Nov 27, 2024
3f1fe11
Update stable/nightly install
archana-ramalingam Nov 27, 2024
7e2c050
Merge branch 'update-perplexity-ci-install' of https://github.com/nod…
archana-ramalingam Nov 27, 2024
692a197
Revert "Update stable/nightly install"
archana-ramalingam Nov 28, 2024
e0b20f0
Merge main
archana-ramalingam Nov 28, 2024
810af5d
Update IREE to pinned versions
archana-ramalingam Nov 28, 2024
666a625
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Nov 28, 2024
8e3936e
Remove shortfin for sharktank tests
archana-ramalingam Nov 28, 2024
edf2ac6
Revert changes to test nightly
archana-ramalingam Nov 28, 2024
ed300a6
Merge branch 'update-perplexity-ci-install' of https://github.com/nod…
archana-ramalingam Nov 28, 2024
aa6e38f
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Nov 28, 2024
3ca0701
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Dec 2, 2024
8b9d7c8
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Dec 3, 2024
a50141e
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Dec 5, 2024
d1e9afb
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Dec 5, 2024
a184987
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Dec 16, 2024
c89c9d1
Merge branch 'main' into update-perplexity-ci-install
archana-ramalingam Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 4 additions & 25 deletions .github/workflows/ci_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,8 @@ jobs:
- name: Install sharktank deps
run: |
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
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/

# Install latest iree-tubrine.
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"

# Try with the latest IREE nightly releases, not what iree-turbine pins.
# We could also pin to a known working or stable version.
# This should eventually stabilize. Do the best we can for now.
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
iree-base-compiler \
iree-base-runtime
pip install shark-ai[apps]
python -m pip install sharktank -f https://github.com/nod-ai/SHARK-Platform/releases/expanded_assets/dev-wheels

- name: Run perplexity test with IREE
run: pytest -n 8 -v -s sharktank/tests/evaluate/perplexity_iree_test.py --run-nightly-llama-tests --bs=100 --iree-device='hip://7' --iree-hip-target=gfx942 --iree-hal-target-backends=rocm --llama3-8b-f16-model-path=/data/llama3.1/8b/llama8b_f16.irpa --llama3-8b-tokenizer-path=/data/llama3.1/8b/tokenizer_config.json --html=out/llm/llama/perplexity/iree_perplexity/index.html
Expand Down Expand Up @@ -121,15 +107,8 @@ jobs:
- name: Install sharktank deps
run: |
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
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/

# Install latest iree-tubrine.
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"
pip install shark-ai[apps]
python -m pip install sharktank -f https://github.com/nod-ai/SHARK-Platform/releases/expanded_assets/dev-wheels
archana-ramalingam marked this conversation as resolved.
Show resolved Hide resolved

- name: Run perplexity test with Torch
run: pytest -n 8 -v -s sharktank/tests/evaluate/perplexity_torch_test.py --longrun --llama3-8b-f16-model-path=/data/llama3.1/8b/llama8b_f16.irpa --llama3-8b-tokenizer-path=/data/llama3.1/8b/tokenizer_config.json --html=out/llm/llama/perplexity/torch_perplexity/index.html
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/ci_eval_short.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,8 @@ jobs:
- name: Install sharktank deps
run: |
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
pip install --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/

# Install latest iree-tubrine.
pip install --no-compile -f https://iree.dev/pip-release-links.html --src deps \
-e "git+https://github.com/iree-org/iree-turbine.git#egg=iree-turbine"

# Try with the latest IREE nightly releases, not what iree-turbine pins.
# We could also pin to a known working or stable version.
# This should eventually stabilize. Do the best we can for now.
pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \
iree-base-compiler \
iree-base-runtime
pip install shark-ai[apps]
python -m pip install sharktank -f https://github.com/nod-ai/SHARK-Platform/releases/expanded_assets/dev-wheels

- name: Run perplexity test with vmfb
run: pytest -n 8 -v -s sharktank/tests/evaluate/perplexity_iree_test.py --bs=5 --iree-device='hip://6' --iree-hip-target=gfx942 --iree-hal-target-backends=rocm --llama3-8b-f16-model-path=/data/llama3.1/8b/llama8b_f16.irpa --llama3-8b-tokenizer-path=/data/llama3.1/8b/tokenizer_config.json
Loading