Skip to content

Commit 173f6a4

Browse files
authored
Drops torch 2.8 on CI, more unit tests for patches (#323)
* update ci * freeze * patch * better with cache * shorten names * few changes
1 parent 300184e commit 173f6a4

File tree

11 files changed

+264
-123
lines changed

11 files changed

+264
-123
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
matrix:
1818
os: [ubuntu-latest]
1919
python: ['3.10', '3.11', '3.12', '3.13']
20-
transformers: ['4.48.3', '4.51.3', '4.52.4', '4.55.4', '4.56.2', '4.57.1', 'main']
21-
torch: ['2.8', '2.9', 'main']
20+
transformers: ['4.48.3', '4.51.3', '4.52.4', '4.55.4', '4.56.2', '4.57.3', 'main']
21+
torch: ['2.9', 'main']
2222
exclude:
2323
- python: '3.10' # 3.10
2424
torch: 'main'
@@ -33,22 +33,18 @@ jobs:
3333
- python: '3.10'
3434
transformers: '4.56.2'
3535
- python: '3.10'
36-
transformers: '4.57.1'
36+
transformers: '4.57.3'
3737
- python: '3.11' # 3.11
3838
torch: 'main'
39-
- python: '3.11'
40-
torch: '2.8'
4139
- python: '3.11'
4240
transformers: 'main'
4341
- python: '3.11'
4442
transformers: '4.55.4'
4543
- python: '3.11'
4644
transformers: '4.56.2'
4745
- python: '3.11'
48-
transformers: '4.57.1'
49-
- python: '3.13' # 3.13
50-
torch: '2.8'
51-
- python: '3.13'
46+
transformers: '4.57.3'
47+
- python: '3.13' # 3.11
5248
torch: '2.9'
5349
- python: '3.13'
5450
transformers: '4.48.3'
@@ -111,6 +107,7 @@ jobs:
111107
fi
112108
113109
- name: Cache pip
110+
if: ${{ matrix.torch != 'main' && matrix.transformers != 'main' }}
114111
uses: actions/cache@v4
115112
with:
116113
path: ~/.cache/pip

.github/workflows/documentation.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ jobs:
5050
python -m pip uninstall -y onnx
5151
python -m pip install onnx-weekly
5252
53-
- name: Cache pip
54-
uses: actions/cache@v4
55-
with:
56-
path: ~/.cache/pip
57-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
58-
restore-keys: |
59-
${{ runner.os }}-pip-
60-
${{ runner.os }}-
61-
6253
- name: pip freeze
6354
run: python -m pip freeze
6455

.github/workflows/models.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: MODELS
2+
3+
on:
4+
push:
5+
pull_request:
6+
types:
7+
- closed
8+
branches:
9+
- main
10+
11+
jobs:
12+
run:
13+
name: to-${{ matrix.torch }}-tr-${{ matrix.transformers }}-ci ${{ matrix.os }}-${{ matrix.python }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest]
19+
python: ['3.12']
20+
transformers: ['4.57.3']
21+
torch: ['main']
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python }}
28+
29+
- name: Install pytorch ${{ matrix.torch }}
30+
run: |
31+
if [[ "${{ matrix.torch }}" == "main" ]]; then
32+
python -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
33+
else
34+
echo "install torch==${{ matrix.torch }} torchvision torchaudio"
35+
pip install torch==${{ matrix.torch }} torchvision torchaudio
36+
fi
37+
38+
- name: Install transformers ${{ matrix.transformers }}
39+
run: |
40+
if [[ "${{ matrix.transformers }}" == "main" ]]; then
41+
echo "install transformers from github"
42+
git clone https://github.com/huggingface/transformers.git
43+
cd transformers
44+
pip install -e .
45+
cd ..
46+
else
47+
echo "install transformers==${{ matrix.transformers }}"
48+
pip install transformers==${{ matrix.transformers }}
49+
fi
50+
51+
- name: Install requirements
52+
run: python -m pip install -r requirements.txt
53+
54+
- name: Install requirements dev
55+
run: python -m pip install -r requirements-dev.txt
56+
57+
- name: Uninstall onnx-diagnostic
58+
run: python -m pip uninstall -y onnx-diagnostic
59+
60+
- name: pip freeze
61+
run: python -m pip freeze
62+
63+
- name: qwen2.5_vl_instruct
64+
run: PYTHONPATH=. UNITTEST_GOING=1 NEVERTEST=1 QWEN25ATTENTION=BIGMASK TESTDTYPE=float16 TESTDEVICE=cpu python _unittests/ut_tasks/try_export.py -f -k test_qwen_2_5_vli_visual
65+

CHANGELOGS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Logs
44
0.8.3
55
+++++
66

7+
* :pr:`323`: drops torch 2.8 on CI
78
* :pr:`322`: support rerunning onnx kernels with torch intermediate results in side-by-side
89
* :pr:`314`: fix modelbuilder download needed after this change https://github.com/microsoft/onnxruntime-genai/pull/1862
910
* :pr:`311`: use custom and local function to use PackedMultiHeadAttention from onnxruntime

_doc/cmds/sbs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Example
2727
.. code-block::
2828
2929
python -m onnx_diagnostic sbs \
30-
-i qwen_2_5_vl_instruct_visual.inputs.pt \
31-
--ep test_imagetext2text_qwen_2_5_vl_instruct_visual.cuda.float16.custom.graph.ep.pt2 \
32-
-m test_imagetext2text_qwen_2_5_vl_instruct_visual.cuda.float16.custom.onnx \
30+
-i qwen25_vli_visual.inputs.pt \
31+
--ep test_qwen25_vli_visual.cuda.float16.custom.graph.ep.pt2 \
32+
-m test_qwen25_vli_visual.cuda.float16.custom.onnx \
3333
-o results.dynamo.float16.xlsx \
3434
-v 1 --atol=0.1 --rtol=1 \
3535
--replay-names conv3d,rsqrt,to_4,mul_48,linear,linear_2,linear_84,linear_89,mul_172,linear_156,linear_159 \

0 commit comments

Comments
 (0)