Skip to content

Commit

Permalink
Pytest skip mgp-str-base when mode is train.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddilbazTT committed Dec 5, 2024
1 parent ab4ce10 commit a67f573
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run-model-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
fail-fast: false
matrix:
build: [
{runs-on: n150, n300, name: "run1", test_names: "stable_diffusion"},
{runs-on: n150, n300, name: "run2", test_names: "MobileNetV2, clip, flan_t5, mlpmixer, resnet, vilt, albert, codegen, glpn_kitti, mnist, resnet50, t5, whisper, autoencoder_conv, deit, gpt2, mobilenet_ssd, roberta, timm, xglm, autoencoder_linear, detr, gpt_neo, musicgen_small, segformer, torchvision, yolos"},
{runs-on: n300, n150, name: "run3", test_names: "beit, distilbert, hand_landmark, openpose, segment_anything, unet, yolov3, bert, dpr, hardnet, opt, speecht5_tts, unet_brain, yolov5, bloom, falcon, llama, perceiver_io, squeeze_bert, unet_carvana, mgp-str-base"},
{runs-on: n300, n150, name: "run3", test_names: "mgp-str-base"},
]
# build: [
# {runs-on: n150, n300, name: "run1", test_names: "stable_diffusion"},
# {runs-on: n150, n300, name: "run2", test_names: "MobileNetV2, clip, flan_t5, mlpmixer, resnet, vilt, albert, codegen, glpn_kitti, mnist, resnet50, t5, whisper, autoencoder_conv, deit, gpt2, mobilenet_ssd, roberta, timm, xglm, autoencoder_linear, detr, gpt_neo, musicgen_small, segformer, torchvision, yolos"},
# {runs-on: n300, n150, name: "run3", test_names: "beit, distilbert, hand_landmark, openpose, segment_anything, unet, yolov3, bert, dpr, hardnet, opt, speecht5_tts, unet_brain, yolov5, bloom, falcon, llama, perceiver_io, squeeze_bert, unet_carvana, mgp-str-base"},
# ]
runs-on:
- ${{ matrix.build.runs-on }}

Expand Down
3 changes: 2 additions & 1 deletion tests/models/mgp-str-base/test_mgp_str_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ def _load_inputs(self):
return inputs


@pytest.mark.skip("https://github.com/tenstorrent/tt-torch/issues/96")
@pytest.mark.parametrize(
"mode",
["train", "eval"],
)
def test_mgp_str_base(record_property, mode):
if mode == "train":
pytest.skip()
model_name = "alibaba-damo/mgp-str-base"
record_property("model_name", model_name)
record_property("mode", mode)
Expand Down

0 comments on commit a67f573

Please sign in to comment.