Skip to content

Commit 9b233d4

Browse files
authored
Skip model test for vit_h_14 (#7218)
1 parent 7c9878a commit 9b233d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,10 @@ def test_classification_model(model_fn, dev):
682682
model_name = model_fn.__name__
683683
if SKIP_BIG_MODEL and is_skippable(model_name, dev):
684684
pytest.skip("Skipped to reduce memory usage. Set env var SKIP_BIG_MODEL=0 to enable test for this model")
685+
if model_name == "vit_h_14" and dev == "cuda":
686+
# TODO: investigate why this fail on CI. It doesn't fail on AWS cluster with CUDA 11.6
687+
# (can't test with later versions ATM)
688+
pytest.xfail("https://github.com/pytorch/vision/issues/7143")
685689
kwargs = {**defaults, **_model_params.get(model_name, {})}
686690
num_classes = kwargs.get("num_classes")
687691
input_shape = kwargs.pop("input_shape")

0 commit comments

Comments
 (0)