Skip to content

Commit

Permalink
Skip model test for vit_h_14 (#7218)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Feb 10, 2023
1 parent 7c9878a commit 9b233d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ def test_classification_model(model_fn, dev):
model_name = model_fn.__name__
if SKIP_BIG_MODEL and is_skippable(model_name, dev):
pytest.skip("Skipped to reduce memory usage. Set env var SKIP_BIG_MODEL=0 to enable test for this model")
if model_name == "vit_h_14" and dev == "cuda":
# TODO: investigate why this fail on CI. It doesn't fail on AWS cluster with CUDA 11.6
# (can't test with later versions ATM)
pytest.xfail("https://github.com/pytorch/vision/issues/7143")
kwargs = {**defaults, **_model_params.get(model_name, {})}
num_classes = kwargs.get("num_classes")
input_shape = kwargs.pop("input_shape")
Expand Down

0 comments on commit 9b233d4

Please sign in to comment.