Introduce new upload way with required reproduction files #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate created ONNX model from mlagility or Python | |
on: | |
schedule: | |
- cron: '00 00 * * MON' | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8'] | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout repo | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
activate-environment: mla | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies and mlagility | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install onnx onnxruntime requests py-cpuinfo | |
# Print CPU info for debugging ONNX Runtime inference difference | |
python -m cpuinfo | |
# or python -m pip install mlagility | |
python -m pip install transformers | |
git clone https://github.com/groq/mlagility.git | |
cd mlagility | |
pip install -r models/requirements.txt | |
pip install -e . | |
- name: Validate created ONNX model from Python | |
run: | | |
python workflow_scripts/run_python.py |