Skip to content

Commit a387e8c

Browse files
committed
disable some tests
1 parent 8e07a7a commit a387e8c

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

_unittests/ut_tasks/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def test_falcon_mamba_dev(self):
297297
model(**inputs)
298298
model(**data["inputs2"])
299299
self.assertIn((data["size"], data["n_weights"]), [(274958336, 68739584)])
300-
if not has_transformers("4.57.99"):
300+
if not has_transformers("5.0.99"):
301301
raise unittest.SkipTest("The model has control flow.")
302302
with torch_export_patches(patch_transformers=True, verbose=10, stop_if_static=1):
303303
torch.export.export(

_unittests/ut_tasks/test_tasks_image_text_to_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_image_text_to_text_idefics(self):
2929
)
3030

3131
@hide_stdout()
32-
@requires_transformers("4.57.99")
32+
@requires_transformers("5.0.99")
3333
@requires_torch("2.7.99")
3434
def test_image_text_to_text_tiny_gemma3(self):
3535
"""
@@ -79,7 +79,7 @@ def test_image_text_to_text_gemma3_4b_it(self):
7979
)
8080

8181
@hide_stdout()
82-
@requires_transformers("4.57.99")
82+
@requires_transformers("5.0.99")
8383
@requires_torch("2.7.99")
8484
def test_image_text_to_text_zai_glm(self):
8585
"""

onnx_diagnostic/tasks/image_text_to_text.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,13 @@ def _check_():
186186
f"total_sequence_length={total_sequence_length} != 860 "
187187
f"for model {model.__class__.__name__}"
188188
)
189-
assert (
190-
head_dim == 256
191-
), f"head_dim={head_dim} != 256 for model {model.__class__.__name__}"
189+
assert head_dim in (
190+
256,
191+
32,
192+
), f"head_dim={head_dim} not in (32, 256) for model {model.__class__.__name__}"
192193
assert n_images == 1, f"n_images={n_images} != 1 for model {model.__class__.__name__}"
193-
assert num_key_value_heads == 4, (
194-
f"num_key_value_heads={num_key_value_heads} != 256 "
194+
assert num_key_value_heads in (1, 4), (
195+
f"num_key_value_heads={num_key_value_heads} not in (1, 4) "
195196
f"for this model {model.__class__.__name__}"
196197
)
197198

0 commit comments

Comments
 (0)