-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (59 loc) · 2.33 KB
/
models.yml
File metadata and controls
70 lines (59 loc) · 2.33 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: MODELS
on:
push:
pull_request:
types:
- closed
branches:
- main
jobs:
run:
name: to-${{ matrix.torch }}-tr-${{ matrix.transformers }}-ci ${{ matrix.os }}-${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.13']
transformers: ['4.57.6']
torch: ['main']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install pytorch ${{ matrix.torch }}
run: |
if [[ "${{ matrix.torch }}" == "main" ]]; then
python -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
else
echo "install torch==${{ matrix.torch }} torchvision torchaudio"
pip install torch==${{ matrix.torch }} torchvision torchaudio
fi
- name: Install transformers ${{ matrix.transformers }}
run: |
if [[ "${{ matrix.transformers }}" == "main" ]]; then
echo "install transformers from github"
git clone https://github.com/huggingface/transformers.git
cd transformers
pip install -e .
cd ..
else
echo "install transformers==${{ matrix.transformers }}"
pip install transformers==${{ matrix.transformers }}
fi
- name: Install requirements
run: python -m pip install -r requirements.txt
- name: Install requirements dev
run: python -m pip install -r requirements-dev.txt
- name: Uninstall onnx-diagnostic
run: python -m pip uninstall -y onnx-diagnostic
- name: pip freeze
run: python -m pip freeze
- name: qwen2.5_vl_instruct - visual
run: |
PYTHONPATH=. python -m onnx_diagnostic.ci_models.export_qwen25_vl -m Qwen/Qwen2.5-VL-7B-Instruct --device cpu --dtype float16 --exporter custom --no-pretrained --no-second-input --atol 0.05
- name: qwen2.5_vl_instruct - embedding
run: |
PYTHONPATH=. python -m onnx_diagnostic.ci_models.export_qwen25_vl -m Qwen/Qwen2.5-VL-7B-Instruct --device cpu --dtype float32 --exporter custom --no-pretrained --no-second-input --atol 0.05 --part embedding
rm dump_models -rf