Skip to content

Commit a8d103e

Browse files
committed
Giant/gigantic vits snuck through in a test a broke GitHub test runner, add filter
1 parent ef72ad4 commit a8d103e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
'*efficientnet_l2*', '*resnext101_32x48d', '*in21k', '*152x4_bitm', '*101x3_bitm', '*50x3_bitm',
3535
'*nfnet_f3*', '*nfnet_f4*', '*nfnet_f5*', '*nfnet_f6*', '*nfnet_f7*', '*efficientnetv2_xl*',
3636
'*resnetrs350*', '*resnetrs420*', 'xcit_large_24_p8*', 'vit_huge*', 'vit_gi*']
37+
NON_STD_EXCLUDE_FILTERS = ['vit_huge*', 'vit_gi*']
3738
else:
3839
EXCLUDE_FILTERS = []
40+
NON_STD_EXCLUDE_FILTERS = ['vit_gi*']
3941

4042
TARGET_FWD_SIZE = MAX_FWD_SIZE = 384
4143
TARGET_BWD_SIZE = 128
@@ -184,7 +186,7 @@ def test_model_default_cfgs(model_name, batch_size):
184186

185187

186188
@pytest.mark.timeout(300)
187-
@pytest.mark.parametrize('model_name', list_models(filter=NON_STD_FILTERS))
189+
@pytest.mark.parametrize('model_name', list_models(filter=NON_STD_FILTERS, exclude_filters=NON_STD_EXCLUDE_FILTERS))
188190
@pytest.mark.parametrize('batch_size', [1])
189191
def test_model_default_cfgs_non_std(model_name, batch_size):
190192
"""Run a single forward pass with each model"""

0 commit comments

Comments
 (0)