Skip to content

Commit 2477e56

Browse files
committed
fix
1 parent 57a50ba commit 2477e56

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,13 @@ jobs:
9494
- name: run tests bypassed
9595
run: PYTHONPATH=. python _unittests/ut_torch_models/test_tiny_llms_bypassed.py
9696

97+
- name: test zero_shot_image_classification
98+
run: PYTHONPATH=. python _unittests/ut_tasks/test_tasks_zero_shot_image_classification.py
99+
97100
- name: run tests
98101
run: |
99102
pip install pytest
100-
PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests --ignore _unittests/ut_reference/test_backend_extended_reference_evaluator.py --ignore _unittests/ut_reference/test_backend_onnxruntime_evaluator.py --ignore _unittests/ut_torch_models/test_tiny_llms_bypassed.py
103+
PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests --ignore _unittests/ut_reference/test_backend_extended_reference_evaluator.py --ignore _unittests/ut_reference/test_backend_onnxruntime_evaluator.py --ignore _unittests/ut_torch_models/test_tiny_llms_bypassed.py --ignore _unittests/ut_tasks/test_tasks_zero_shot_image_classification.py
101104
102105
- name: run backend tests python
103106
run: PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests/ut_reference/test_backend_extended_reference_evaluator.py

_unittests/ut_tasks/test_tasks_image_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_image_classification(self):
1616
model, inputs, ds = data["model"], data["inputs"], data["dynamic_shapes"]
1717
model(**inputs)
1818
model(**data["inputs2"])
19-
if not has_transformers("4.50.999"):
19+
if not has_transformers("4.51.999"):
2020
raise unittest.SkipTest("Requires transformers>=4.52")
2121
with bypass_export_some_errors(patch_transformers=True, verbose=10):
2222
torch.export.export(

_unittests/ut_tasks/test_tasks_zero_shot_image_classification.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ def test_zero_shot_image_classification(self):
1616
model, inputs, ds = data["model"], data["inputs"], data["dynamic_shapes"]
1717
model(**inputs)
1818
model(**data["inputs2"])
19-
if not has_transformers("4.51"):
20-
raise unittest.SkipTest("_patch_make_causal_mask patch fails when an issue arises")
2119
with bypass_export_some_errors(patch_transformers=True, verbose=10):
2220
torch.export.export(
2321
model, (), kwargs=inputs, dynamic_shapes=use_dyn_not_str(ds), strict=False

0 commit comments

Comments
 (0)