[Kernel] Add support for Flashinfer Mamba SSU algorithm selection - #50157
Merged
vllm-bot merged 6 commits intoAug 4, 2026
Merged
Conversation
amitz-nv
requested review from
AndreasKaratzas,
ProExpertProg,
WoosukKwon,
hmellor,
houseroad,
mgoin,
robertgshaw2-redhat,
tdoublep,
tlrmchlsmth,
tomeras91,
yewentao256,
youkaichao and
zyongye
as code owners
July 28, 2026 15:47
hmellor
reviewed
Jul 29, 2026
hmellor
reviewed
Jul 29, 2026
amirkl94
reviewed
Jul 29, 2026
| @@ -46,6 +49,12 @@ class MambaConfig: | |||
| generation. 0 uses the Triton default. Higher values improve randomness | |||
| quality at the cost of compute.""" | |||
|
|
|||
| ssu_algorithm: MambaSSUAlgorithm = "auto" | |||
Contributor
There was a problem hiding this comment.
Can we have the default value as None, and if we're using FI as mamba backend, then we can resolve it as "auto"?
amirkl94
reviewed
Jul 29, 2026
Contributor
There was a problem hiding this comment.
Can we add a log_once with the picked algorithm somwhere?
Contributor
Author
There was a problem hiding this comment.
Note that when "auto" is used, vLLM doesn't know what flashinfer eventually chose.
amirkl94
reviewed
Jul 29, 2026
Contributor
There was a problem hiding this comment.
I think all of these tests don't really belong here, maybe in tests/kernels/mamba/test_ssu_dispatch.py ? And some of them look redundant to me.
amitz-nv
force-pushed
the
perf/flashinfer-mamba-ssu-algorithm
branch
2 times, most recently
from
July 29, 2026 14:12
550d969 to
57f1c10
Compare
amirkl94
reviewed
Jul 30, 2026
mgoin
enabled auto-merge (squash)
August 3, 2026 14:52
auto-merge was automatically disabled
August 3, 2026 15:45
Head branch was pushed to by a user without write access
amitz-nv
force-pushed
the
perf/flashinfer-mamba-ssu-algorithm
branch
from
August 3, 2026 15:45
cd3e4db to
88ea1c8
Compare
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: amitz-nv <203509407+amitz-nv@users.noreply.github.com>
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: amitz-nv <203509407+amitz-nv@users.noreply.github.com>
Signed-off-by: amitz-nv <203509407+amitz-nv@users.noreply.github.com>
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: amitz-nv <203509407+amitz-nv@users.noreply.github.com>
Signed-off-by: amitz-nv <203509407+amitz-nv@users.noreply.github.com>
Signed-off-by: amitz-nv <203509407+amitz-nv@users.noreply.github.com>
amitz-nv
force-pushed
the
perf/flashinfer-mamba-ssu-algorithm
branch
from
August 4, 2026 07:49
88ea1c8 to
ee4bc88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Allow choosing the Flashinfer Mamba SSU algorithm.
The new command line argument is
--mamba-ssu-algorithm.On some use-cases of Nemotron 3 Nano NVFP4 (like ISL/OSL=1k/8k), using "horizontal" instead of "auto" (which eventually chooses "vertical") improves throughput.
Test Plan
On Nemotron 3 Nano NVFP4 with & without
--mamba-ssu-algorithm horizontal:Test Result
Accuracy test
vLLM command:
To run with "horizontal", add:
lm_evalcommand:Results:
Without
--mamba-ssu-algorithm horizontal:With
--mamba-ssu-algorithm horizontal:Throughput benchmark
vLLM command without horizontal:
To run with "horizontal", add:
AIPerf command:
Results (on 1xH100):
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.