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

[test] Change punet int8 model version #569

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions .github/workflows/ci-sharktank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,31 @@ concurrency:
cancel-in-progress: true

jobs:
test_punet:
name: "Integration Tests - punet"
runs-on: nodai-amdgpu-mi250-x86-64
env:
VENV_DIR: ${{ github.workspace }}/.venv
steps:
- name: "Checkout Code"
uses: actions/checkout@v3

- name: "Setup Python venv"
run: python3.11 -m venv ${VENV_DIR}

- name: Install pip deps
run: |
source ${VENV_DIR}/bin/activate
python -m pip install --no-compile --upgrade pip
pip install --no-compile -r pytorch-rocm-requirements.txt
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 --no-compile -r requirements.txt -r sharktank/requirements-tests.txt -e sharktank/ shortfin/
- name: Run punet tests
run: |
source ${VENV_DIR}/bin/activate
pytest -v sharktank/ -m model_punet

test:
name: "Unit Tests and Type Checking"
strategy:
Expand Down
7 changes: 4 additions & 3 deletions sharktank/integration/models/punet/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ def sdxl_fp16_dataset(sdxl_fp16_base_files, temp_dir):
def sdxl_int8_base_files():
from huggingface_hub import hf_hub_download

REPO_ID = "amd-shark/sdxl-quant-models"
REVISION = "942e771bf0c2657a8b33380103d04747a75dfa4a"
REPO_ID = "amd-shark/sdxl-quant-int8"
SUBFOLDER = "mi300_all_sym_8_step14_fp32"
REVISION = "efda8afb35fd72c1769e02370b320b1011622958"

def download(filename):
return hf_hub_download(
repo_id=REPO_ID, subfolder="unet/int8", filename=filename, revision=REVISION
repo_id=REPO_ID, subfolder=SUBFOLDER, filename=filename, revision=REVISION
)

return {
Expand Down
Loading