Skip to content

Commit 32122f9

Browse files
authored
test: split SSM fusion tests and skip costly variants (#7655)
Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
1 parent 80e5f8a commit 32122f9

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

‎tests/test_utils/recipes/h100/unit-tests.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ products:
252252
scope: [unit-tests]
253253
n_repeat: [1]
254254
time_limit: [1800]
255+
- test_case: [tests/unit_tests/ssm/test_gdn_gated_output_norm_fusion.py]
256+
products:
257+
- environment: [lts, dev]
258+
tag: [latest]
259+
scope: [unit-tests]
260+
n_repeat: [1]
261+
time_limit: [1800]
255262
- test_case: [tests/unit_tests/ssm/**/*.py]
256263
products:
257264
- environment: [lts, dev]

‎tests/unit_tests/ssm/test_gdn_gated_output_norm_fusion.py‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,23 @@ def test_post_fusion_revalidates_each_forward(model_parallel, pre_fusion):
193193

194194

195195
@pytest.mark.parametrize("dtype", [torch.bfloat16, torch.float16])
196-
@pytest.mark.parametrize("batch,heads,dim", [(2, 8, 64), (3, 4, 256)])
197-
@pytest.mark.parametrize("pre_fusion", [False, True])
196+
@pytest.mark.parametrize(
197+
"pre_fusion,batch,heads,dim",
198+
[
199+
(False, 2, 8, 64),
200+
(False, 3, 4, 256),
201+
(True, 2, 8, 64),
202+
pytest.param(
203+
True,
204+
3,
205+
4,
206+
256,
207+
marks=pytest.mark.skip(
208+
reason="Temporarily disabled: costly width-256 pre/post-fusion compilation in SSM CI"
209+
),
210+
),
211+
],
212+
)
198213
@pytest.mark.parametrize("recompute", [False, True])
199214
def test_dense_batch_and_head_layout_parity(
200215
model_parallel, batch, heads, dim, pre_fusion, recompute, dtype

0 commit comments

Comments
 (0)