Skip to content

Support for sdxl pipeline (testing) #101

Support for sdxl pipeline (testing)

Support for sdxl pipeline (testing) #101

Workflow file for this run

# Copyright 2024 Advanced Micro Devices
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: IREE Test Suite
on:
# TODO(scotttodd): run on schedule (nightly), and/or on pushes to `main`
pull_request:
paths:
- "iree_tests/**"
workflow_dispatch:
concurrency:
# A PR number if a pull request and otherwise the commit hash. This cancels
# queued and in-progress runs for the same PR (presubmit) or commit
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
linux_x86_64:
strategy:
matrix:
os: [nodai-amdgpu-w7900-x86-64]
name: Linux (x86_64)
runs-on: ${{matrix.os}}
env:
VENV_DIR: ${{ github.workspace }}/.venv
steps:
- name: "Checking out repository"
uses: actions/checkout@v4
with:
submodules: false
lfs: true
- name: "Setting up Python"
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: "Setup Python venv"
run: python3 -m venv ${VENV_DIR}
# TODO(scotttodd): swap this with workflow artifact downloads
# TODO(scotttodd): make this configurable with workflow inputs
# TODO(scotttodd): pin to a version? in this repo we could just test latest
- name: "Installing IREE nightly release Python packages"
run: |
source ${VENV_DIR}/bin/activate
python3 -m pip install \
--find-links https://iree.dev/pip-release-links.html \
--upgrade \
iree-compiler \
iree-runtime
- name: "Installing other Python requirements"
run: |
source ${VENV_DIR}/bin/activate
python3 -m pip install -r iree_tests/requirements.txt
# - name: "Running simple tests"
# run: |
# source ${VENV_DIR}/bin/activate
# pytest iree_tests/simple --durations=0
# - name: "Running the generated ONNX test suite"
# run: |
# source ${VENV_DIR}/bin/activate
# pytest iree_tests/onnx/node/generated -n auto -rpfE --timeout=30 --retries 2 --retry-delay 5 --durations=10
# TODO(scotttodd): add a local cache for these large files to a persistent runner
- name: "Downloading remote files for real weight model tests"
run: |
source ${VENV_DIR}/bin/activate
python3 iree_tests/download_remote_files.py --root-dir pytorch/models/sdxl-scheduled-unet-3-tank
- name: "Running real weight model tests"
env:
IREE_TEST_CONFIG_FILES: iree_tests/configs/config_sdxl_cpu_llvm_task.json
run: |
source ${VENV_DIR}/bin/activate
pytest iree_tests/pytorch/models -s -n auto -k real_weights -rpfE --timeout=1200 --retries 2 --retry-delay 5 --durations=0
- name: "Running SDXL pipeline benchmark"
env:
IREE_TEST_CONFIG_FILES: iree_tests/configs/config_sdxl_cpu_llvm_task.json
run: |
source ${VENV_DIR}/bin/activate
pytest iree_tests/benchmarks -s -rpfE --timeout=6000 --durations=0