Skip to content

Add Llama example (#38) #114

Add Llama example (#38)

Add Llama example (#38) #114

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
BUILD_DIR: build
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ninja-build
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: CMake - configure
run: cmake -G Ninja -B ${BUILD_DIR} -DCMAKE_BUILD_TYPE=Release
- name: CMake - build
run: cmake --build ${BUILD_DIR}
- name: Install Python package
run: |
ONNXRUNTIME_EP_IREE_BUILD_DIR=${{ github.workspace }}/${BUILD_DIR} \
pip install -e python/
- name: Run tests
run: pytest test/ -v
- name: Run ExternDispatch tests
run: |
pytest test/test_extern_dispatch.py \
--ep-lib ${{ github.workspace }}/${BUILD_DIR}/libonnxruntime_ep_iree.so \
-v