-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Batch-invariance generation with vLLM fused-MoE backend at improved performance #6521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wdykas
merged 26 commits into
NVIDIA:main
from
utkarsh530:batch-invariant-inference-ep8tp1
Aug 22, 2026
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
04bf0c3
Batch-invariant mode: 64-multiple floor for CUDA-graph token buckets
b6479a7
Batch-invariant MoE: support gated SwiGLU activations
993cdec
Batch-invariant mode: support the vLLM Triton fused-MoE backend
3b62e8d
Batch-invariant mode: add 'te_native' GEMM backend (workspace starvat…
6b9e1d6
Batch-invariant mode: make the GEMM backend selectable via config
da6ad41
Batch-invariant te_native backend: keep native TE RMSNorm
c4166a5
Batch-invariant vLLM MoE backend: pin only the K-reduction recipe
3e85a90
Tests: batch-invariant vLLM fused-MoE backend
1ed83b9
Docstrings: document te_native backend and _moe_sum options
d5ece84
Apply tools/autoformat.sh (black/isort/ruff)
ad1c023
Address review: clearer rounding expression in _batch_invariant_token…
cc58495
Address review: make te_native the default batch-invariant backend
41f8dd3
Address review: make _moe_sum apply_weights/acc_fp64 truly orthogonal
e5bc58b
Address review: pad buckets to alignment instead of invalidating them
93e933c
Address review: restore te_native workspace state on disable
ed496e8
Address review: scope acc_fp64 to SwiGLU; type the backend field
ed183b7
Address review: derive weighted-swiglu grid size from SM count
da0407b
Address review: validate batch_invariant_backend in __post_init__
371772d
Address review: finish align-up wording; tie rounder to TOKEN_ROUNDER
e69fe65
Address review: scope skip_rmsnorm to normalization patches only
2cdc4b6
Address review: skip BI kernel tests without CUDA/Triton
bf46b6e
Address review: drop getattr default for batch_invariant_backend
e3aa438
Address review: _moe_sum docstring — fp32 or fp64 accumulation
9051751
Address review: single module-level TOKEN_ROUNDER constant
8a25689
Apply tools/autoformat.sh (isort import order in BI test)
a5aa088
Add batch_invariant_backend to Mamba MoE golden config
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.