Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
9c3c21c5
Unverified
Commit
9c3c21c5
authored
Oct 06, 2025
by
Jiangyun Zhu
Committed by
GitHub
Oct 05, 2025
Browse files
[CI] fix mamba kernel test (#26250)
Signed-off-by:
zjy0516
<
riverclouds.zhu@qq.com
>
parent
512b8aff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
.buildkite/test-pipeline.yaml
.buildkite/test-pipeline.yaml
+1
-0
tests/kernels/mamba/test_causal_conv1d.py
tests/kernels/mamba/test_causal_conv1d.py
+11
-1
No files found.
.buildkite/test-pipeline.yaml
View file @
9c3c21c5
...
@@ -477,6 +477,7 @@ steps:
...
@@ -477,6 +477,7 @@ steps:
source_file_dependencies
:
source_file_dependencies
:
-
csrc/mamba/
-
csrc/mamba/
-
tests/kernels/mamba
-
tests/kernels/mamba
-
vllm/model_executor/layers/mamba/ops
commands
:
commands
:
-
pytest -v -s kernels/mamba
-
pytest -v -s kernels/mamba
...
...
tests/kernels/mamba/test_causal_conv1d.py
View file @
9c3c21c5
...
@@ -165,7 +165,17 @@ def test_causal_conv1d_update(dim, width, seqlen, has_bias, silu_activation, ity
...
@@ -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
bias
=
torch
.
randn
(
dim
,
device
=
device
,
dtype
=
itype
)
if
has_bias
else
None
conv_state_ref
=
conv_state
.
detach
().
clone
()
conv_state_ref
=
conv_state
.
detach
().
clone
()
activation
=
None
if
not
silu_activation
else
"silu"
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
(
out_ref
=
causal_conv1d_update_ref
(
x_ref
,
conv_state_ref
,
weight
,
bias
,
activation
=
activation
x_ref
,
conv_state_ref
,
weight
,
bias
,
activation
=
activation
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment