From 9c3c21c519fc0dc7b7b49c86058749c9af202ad9 Mon Sep 17 00:00:00 2001 From: Jiangyun Zhu Date: Mon, 6 Oct 2025 02:26:59 +0800 Subject: [PATCH] [CI] fix mamba kernel test (#26250) Signed-off-by: zjy0516 --- .buildkite/test-pipeline.yaml | 1 + tests/kernels/mamba/test_causal_conv1d.py | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.buildkite/test-pipeline.yaml b/.buildkite/test-pipeline.yaml index 9c200a5771..771756a42f 100644 --- a/.buildkite/test-pipeline.yaml +++ b/.buildkite/test-pipeline.yaml @@ -477,6 +477,7 @@ steps: source_file_dependencies: - csrc/mamba/ - tests/kernels/mamba + - vllm/model_executor/layers/mamba/ops commands: - pytest -v -s kernels/mamba diff --git a/tests/kernels/mamba/test_causal_conv1d.py b/tests/kernels/mamba/test_causal_conv1d.py index f5bac4f1ac..fea6b94481 100644 --- a/tests/kernels/mamba/test_causal_conv1d.py +++ b/tests/kernels/mamba/test_causal_conv1d.py @@ -165,7 +165,17 @@ def test_causal_conv1d_update(dim, width, seqlen, has_bias, silu_activation, ity bias = torch.randn(dim, device=device, dtype=itype) if has_bias else None conv_state_ref = conv_state.detach().clone() activation = None if not silu_activation else "silu" - out = causal_conv1d_update(x, conv_state, weight, bias, activation=activation) + + conv_state_indices = torch.arange(batch, dtype=torch.int32, device=device) + + out = causal_conv1d_update( + x, + conv_state, + weight, + bias, + activation=activation, + conv_state_indices=conv_state_indices, + ) out_ref = causal_conv1d_update_ref( x_ref, conv_state_ref, weight, bias, activation=activation )