-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (54 loc) · 1.98 KB
/
models.yml
File metadata and controls
65 lines (54 loc) · 1.98 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
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.12']
transformers: ['4.57.3']
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
run: PYTHONPATH=. UNITTEST_GOING=1 NEVERTEST=1 TESTDTYPE=float16 TESTDEVICE=cpu python _unittests/ut_tasks/try_export.py -f -k test_qwen25_vli_visual