-
Notifications
You must be signed in to change notification settings - Fork 1.4k
42 lines (37 loc) · 1.21 KB
/
validate_model.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
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