Skip to content

Commit 9c3c21c

Browse files
authored
[CI] fix mamba kernel test (#26250)
Signed-off-by: zjy0516 <[email protected]>
1 parent 512b8af commit 9c3c21c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.buildkite/test-pipeline.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ steps:
477477
source_file_dependencies:
478478
- csrc/mamba/
479479
- tests/kernels/mamba
480+
- vllm/model_executor/layers/mamba/ops
480481
commands:
481482
- pytest -v -s kernels/mamba
482483

tests/kernels/mamba/test_causal_conv1d.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,17 @@ def test_causal_conv1d_update(dim, width, seqlen, has_bias, silu_activation, ity
165165
bias = torch.randn(dim, device=device, dtype=itype) if has_bias else None
166166
conv_state_ref = conv_state.detach().clone()
167167
activation = None if not silu_activation else "silu"
168-
out = causal_conv1d_update(x, conv_state, weight, bias, activation=activation)
168+
169+
conv_state_indices = torch.arange(batch, dtype=torch.int32, device=device)
170+
171+
out = causal_conv1d_update(
172+
x,
173+
conv_state,
174+
weight,
175+
bias,
176+
activation=activation,
177+
conv_state_indices=conv_state_indices,
178+
)
169179
out_ref = causal_conv1d_update_ref(
170180
x_ref, conv_state_ref, weight, bias, activation=activation
171181
)

0 commit comments

Comments
 (0)