Skip to content

Commit 85156ef

Browse files
committed
update ci
1 parent ef5b95c commit 85156ef

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

.github/workflows/check-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest, macOS-latest, windows-latest]
1818
python: ['3.11', '3.12']
19-
transformers: ['4.48.3', '4.52.4', '4.55.2', 'main']
19+
transformers: ['4.48.3', '4.52.4', '4.55.3', 'main']
2020
torch: ['2.7', '2.8', 'main']
2121

2222
steps:

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest]
1818
python: ['3.10', '3.11', '3.12', '3.13']
19-
transformers: ['4.48.3', '4.51.3', '4.52.4', '4.53.3', '4.55.2', 'main']
19+
transformers: ['4.48.3', '4.51.3', '4.52.4', '4.53.3', '4.55.3', 'main']
2020
torch: ['2.8', 'main']
2121
exclude:
2222
- python: '3.10'
@@ -28,15 +28,15 @@ jobs:
2828
- python: '3.10'
2929
transformers: '4.53.3'
3030
- python: '3.10'
31-
transformers: '4.55.2'
31+
transformers: '4.55.3'
3232
- python: '3.11'
3333
torch: 'main'
3434
- python: '3.11'
3535
transformers: '4.53.3'
3636
- python: '3.11'
3737
transformers: 'main'
3838
- python: '3.11'
39-
transformers: '4.55.2'
39+
transformers: '4.55.3'
4040
- python: '3.13'
4141
torch: '2.8'
4242
- python: '3.13'

_unittests/ut_torch_models/test_validate_whole_models.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class TestValidateWholeModels(ExtTestCase):
26-
def test_get_inputs_for_task(self):
26+
def test_a_get_inputs_for_task(self):
2727
fcts = supported_tasks()
2828
for task in self.subloop(sorted(fcts)):
2929
try:
@@ -35,19 +35,19 @@ def test_get_inputs_for_task(self):
3535
self.assertIn("dynamic_shapes", data)
3636
copy.deepcopy(data["inputs"])
3737

38-
def test_empty(self):
38+
def test_b_empty(self):
3939
self.assertFalse(empty("float16"))
4040

4141
@hide_stdout()
42-
def test_validate_model(self):
42+
def test_c_validate_model(self):
4343
mid = "arnir0/Tiny-LLM"
4444
summary, data = validate_model(mid, do_run=True, verbose=2)
4545
self.assertIsInstance(summary, dict)
4646
self.assertIsInstance(data, dict)
4747
validate_model(mid, do_run=True, verbose=2, quiet=True)
4848

4949
@hide_stdout()
50-
def test_validate_model_dtype(self):
50+
def test_d_validate_model_dtype(self):
5151
mid = "arnir0/Tiny-LLM"
5252
summary, data = validate_model(
5353
mid, do_run=True, verbose=2, dtype="float32", device="cpu"
@@ -57,7 +57,7 @@ def test_validate_model_dtype(self):
5757
validate_model(mid, do_run=True, verbose=2, quiet=True)
5858

5959
@hide_stdout()
60-
def test_validate_model_export(self):
60+
def test_e_validate_model_export(self):
6161
mid = "arnir0/Tiny-LLM"
6262
summary, data = validate_model(
6363
mid,
@@ -73,7 +73,7 @@ def test_validate_model_export(self):
7373
@requires_torch("2.8.99")
7474
@hide_stdout()
7575
@ignore_warnings(FutureWarning)
76-
def test_validate_model_onnx_dynamo_ir(self):
76+
def test_f_validate_model_onnx_dynamo_ir(self):
7777
mid = "arnir0/Tiny-LLM"
7878
summary, data = validate_model(
7979
mid,
@@ -98,7 +98,7 @@ def test_validate_model_onnx_dynamo_ir(self):
9898
@requires_onnxscript("0.4")
9999
@hide_stdout()
100100
@ignore_warnings(FutureWarning)
101-
def test_validate_model_onnx_dynamo_os_ort(self):
101+
def test_g_validate_model_onnx_dynamo_os_ort(self):
102102
mid = "arnir0/Tiny-LLM"
103103
summary, data = validate_model(
104104
mid,
@@ -120,7 +120,7 @@ def test_validate_model_onnx_dynamo_os_ort(self):
120120
@hide_stdout()
121121
@ignore_warnings(FutureWarning)
122122
@requires_experimental()
123-
def test_validate_model_custom_os_ort(self):
123+
def test_h_validate_model_custom_os_ort(self):
124124
mid = "arnir0/Tiny-LLM"
125125
summary, data = validate_model(
126126
mid,
@@ -142,7 +142,7 @@ def test_validate_model_custom_os_ort(self):
142142
@hide_stdout()
143143
@ignore_warnings(FutureWarning)
144144
@requires_experimental()
145-
def test_validate_model_custom(self):
145+
def test_i_validate_model_custom(self):
146146
mid = "arnir0/Tiny-LLM"
147147
summary, data = validate_model(
148148
mid,
@@ -171,7 +171,7 @@ def test_validate_model_custom(self):
171171
@hide_stdout()
172172
@ignore_warnings(FutureWarning)
173173
@requires_experimental()
174-
def test_validate_model_custom_torch(self):
174+
def test_j_validate_model_custom_torch(self):
175175
mid = "arnir0/Tiny-LLM"
176176
summary, data = validate_model(
177177
mid,
@@ -190,7 +190,7 @@ def test_validate_model_custom_torch(self):
190190
self.assertIn("disc_onnx_ort_run_abs", summary)
191191
self.assertLess(summary["disc_onnx_ort_run_abs"], 1e-4)
192192

193-
def test_filter_inputs(self):
193+
def test_k_filter_inputs(self):
194194
inputs, ds = {"a": 1, "b": 2}, {"a": 20, "b": 30}
195195
ni, nd = filter_inputs(inputs, dynamic_shapes=ds, drop_names=["a"])
196196
self.assertEqual((ni, nd), ({"b": 2}, {"b": 30}))
@@ -215,7 +215,7 @@ def test_filter_inputs(self):
215215
@hide_stdout()
216216
@ignore_warnings(FutureWarning)
217217
@requires_transformers("4.51")
218-
def test_validate_model_modelbuilder(self):
218+
def test_l_validate_model_modelbuilder(self):
219219
mid = "arnir0/Tiny-LLM"
220220
summary, data = validate_model(
221221
mid,
@@ -234,7 +234,7 @@ def test_validate_model_modelbuilder(self):
234234
@hide_stdout()
235235
@ignore_warnings(FutureWarning)
236236
@requires_transformers("4.51")
237-
def test_validate_model_vit_model(self):
237+
def test_m_validate_model_vit_model(self):
238238
mid = "ydshieh/tiny-random-ViTForImageClassification"
239239
summary, data = validate_model(
240240
mid,
@@ -255,11 +255,11 @@ def test_validate_model_vit_model(self):
255255
onnx_filename = data["onnx_filename"]
256256
self.assertExists(onnx_filename)
257257

258-
@requires_torch("2.7")
258+
@requires_torch("2.9")
259259
@hide_stdout()
260260
@ignore_warnings(FutureWarning)
261261
@requires_transformers("4.55")
262-
def test_validate_phi35_mini_instruct(self):
262+
def test_n_validate_phi35_mini_instruct(self):
263263
mid = "microsoft/Phi-3.5-mini-instruct"
264264
summary, data = validate_model(
265265
mid,
@@ -279,11 +279,11 @@ def test_validate_phi35_mini_instruct(self):
279279
op_types = set(n.op_type for n in onx.graph.node)
280280
self.assertIn("If", op_types)
281281

282-
@requires_torch("2.7")
282+
@requires_torch("2.9")
283283
@hide_stdout()
284284
@ignore_warnings(FutureWarning)
285285
@requires_transformers("4.55")
286-
def test_validate_phi35_4k_mini_instruct(self):
286+
def test_o_validate_phi35_4k_mini_instruct(self):
287287
mid = "microsoft/Phi-3-mini-4k-instruct"
288288
summary, data = validate_model(
289289
mid,

_unittests/ut_xrun_doc/test_command_lines_exe.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def dummy_path(self):
1414
os.path.join(os.path.dirname(__file__), "data", "two_nodes.onnx")
1515
)
1616

17-
def test_parser_print(self):
17+
def test_a_parser_print(self):
1818
for fmt in ["raw", "text", "pretty", "printer"]:
1919
with self.subTest(format=fmt):
2020
st = StringIO()
@@ -23,7 +23,7 @@ def test_parser_print(self):
2323
text = st.getvalue()
2424
self.assertIn("Add", text)
2525

26-
def test_parser_stats(self):
26+
def test_b_parser_stats(self):
2727
output = self.get_dump_file("test_parser_stats.xlsx")
2828
st = StringIO()
2929
with redirect_stdout(st):
@@ -32,28 +32,28 @@ def test_parser_stats(self):
3232
self.assertIn("processing", text)
3333
self.assertExists(output)
3434

35-
def test_parser_find(self):
35+
def test_c_parser_find(self):
3636
st = StringIO()
3737
with redirect_stdout(st):
3838
main(["find", "-i", self.dummy_path, "-n", "node_Add_188"])
3939
text = st.getvalue()
4040
self.assertIsInstance(text, str)
4141

42-
def test_parser_find_v2(self):
42+
def test_d_parser_find_v2(self):
4343
st = StringIO()
4444
with redirect_stdout(st):
4545
main(["find", "-i", self.dummy_path, "-n", "node_Add_188", "--v2"])
4646
text = st.getvalue()
4747
self.assertIsInstance(text, str)
4848

49-
def test_parser_config(self):
49+
def test_e_parser_config(self):
5050
st = StringIO()
5151
with redirect_stdout(st):
5252
main(["config", "-m", "arnir0/Tiny-LLM"])
5353
text = st.getvalue()
5454
self.assertIn("LlamaForCausalLM", text)
5555

56-
def test_parser_validate(self):
56+
def test_f_parser_validate(self):
5757
st = StringIO()
5858
with redirect_stdout(st):
5959
main(["validate"])
@@ -68,7 +68,7 @@ def test_parser_validate(self):
6868
self.assertIn("model_clas", text)
6969

7070
@ignore_warnings(UserWarning)
71-
def test_parser_agg(self):
71+
def test_g_parser_agg(self):
7272
path = os.path.abspath(
7373
os.path.join(os.path.dirname(__file__), "..", "ut_helpers", "data")
7474
)

0 commit comments

Comments
 (0)