Repository navigation
[None][feat] Muse Spark Open modeling_v2 TEP target: mid-high-concurrency optimizations for Vera Rubin - #20844
Merged
Tabrizian merged 9 commits intoOct 23, 2026
Conversation
xwang233
requested review from
a team,
Wanli-Jiang,
WeiHaocheng and
litaotju
as code owners
October 22, 2026 23:14
Collaborator
|
@yihwang-nv, could you help to review this PR as trt-llm-torch-attention-devs? Thanks~ Assignment explanation
Affinity and workload are snapshots at selection, not live counters. Existing reservations on this PR are counted once. |
TRTLLM_GEN_DECODE_SEQS_PER_LAUNCH=N (off by default) launches the trtllm-gen generation kernel for unwindowed attention in groups of at most N sequences, so each group's sequences get proportionally more KV splits at large batches. With the variable unset the decode call is the single launch it was before. Signed-off-by: Xiao Wang <[email protected]>
modeling_v2_resolve records the engine's max_batch_size for the target class it returns (resolved_max_batch_size). It is not a routing input; a target may read it at construction to leave out a fast path whose memory cost only pays off at a few concurrent requests. Signed-off-by: Xiao Wang <[email protected]>
…l on sm107 context_sequence_parallel takes its eager-row threshold per SM version (sm103 and sm107 each have their own), so long context steps on sm107 TEP4 use the sequence-parallel forward and the one-launch context prep as on sm103. Signed-off-by: Xiao Wang <[email protected]>
…ion for multi-request steps - wide_swa_block and wide_full_attention serve decode steps of two to four requests (9..32 rows) on sm107 TEP4. - multi_request_split_kv serves five to 128 requests on sm107 as on sm103; its CTAs per KV-head pair follow the device SM count. - multi_request_prep_append folds the K/V append into the decode prep for steps of five or more sequences. - The full-attention prep, split-KV and norm-gate ops take the multi-request row bands these paths need. Signed-off-by: Xiao Wang <[email protected]>
…ter GEMMs - wide_dense_gemms: split-K dense projections for 9..32 rows with sm107 tables. - wide_prologue: a sharded router GEMM for 16..32 rows. - router_gemm: multi-request router GEMM for 33..512 rows; its CTA count and split counts come from the device SM count (one wave), unchanged on sm103. - batch_dense_gemms: the PDL norm-gate chain for 33..512 rows; the QKV TGV tactic rows are keyed by device capability and empty on sm107, where cuBLAS keeps the QKV projection. - fixed low-M GEMM tables for sm107. Signed-off-by: Xiao Wang <[email protected]>
- wide_post_attention_hop: the TP4 post-attention transport for 9..32 rows. - multi_request_post_attention_hop (the wide hop for multi-request steps) arms from one row past the last row the 8-row hop takes, so exactly one hop serves each row count. - wide_moe_allreduce (129..1024 rows), finalize_two_shot (from a per-SM row floor) and projection_publish (33..448 rows, with a certified producer for 212 SMs) are enabled on sm107 TEP4. - Direct and gathered pool routes, projection inbox and unpool boundary take the sm107 TEP4 transports. Signed-off-by: Xiao Wang <[email protected]>
- wide_persistent_experts: the persistent expert kernel for multi-request steps. - half_window_experts: ring-buddy expert windows that hold half of each rank's experts, behind a capacity gate at small max_batch_size. - hot_replicas on sm107 TEP4 for 33..512 rows when max_batch_size is above 8; it yields to half_window_experts when both would arm. - The MoE prologue and its early expert ids take the new row bands. Signed-off-by: Xiao Wang <[email protected]>
…arena and multi-request drafter paths - The drafter's context K/V is committed into a windowed arena; the context-K/V fork and the verify fold run over it. - drafter_fc_inbox, wide_drafter_window_attention (geometry tables per SM count), wide_draft_topk and wide_split_sampler serve multi-request steps on sm107 TEP4. Signed-off-by: Xiao Wang <[email protected]>
…ast paths The (sm107, TP4) composition serves the sm103 TEP4 base paths without the LM-head inbox, the 2..4-request paths, and the multi-request attention, collective, GEMM/expert, drafter and context path sets. Each path owns a row band so exactly one implementation arms per op and row count. Capacity gates read the resolved max_batch_size, and a yield rule keeps hot_replicas and half_window_experts from both arming. (sm103, TP4), (sm103, TP8) and (sm107, TP8) are unchanged. Signed-off-by: Xiao Wang <[email protected]>
Tabrizian
force-pushed
the
mso-hcvr/agentx-tep
branch
from
October 23, 2026 16:06
f1ad0cc to
a84a8ab
Compare
Member
|
/bot run --disable-fail-fast |
Collaborator
|
PR_Github #80203 [ run ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #80203 [ run ] completed with state |
1 task done
1 task done
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.
Description
This PR extends the Muse Spark Open modeling_v2 TEP target to mid-high concurrency on Vera Rubin (sm107, R200) at TEP4. It ports the GB300 mid-high-concurrency paths (#20770) to sm107 and adds the sm107 paths for steps of two to four requests. The changes are 9 commits:
The modeling_v2 target at TEP4 on sm107. These paths are always on inside the target and selected by GPU architecture and tensor-parallel size. (sm103, TP4), (sm103, TP8) and (sm107, TP8) serve the same paths as before. Each path owns a row band, so exactly one implementation arms per op and row count.
max_batch_size;max_batch_size8, which yield to the half-window placement when both would arm.modeling_v2 router.
modeling_v2_resolverecords the engine'smax_batch_sizefor the target it returns (resolved_max_batch_size). It is not a routing input; the target reads it to size or leave out capacity-gated paths.Shared path: opt-in, off by default. With the variable unset, behaviour is unchanged.
TRTLLM_GEN_DECODE_SEQS_PER_LAUNCH=Nlaunches unwindowed decode attention in groups of at most N sequences, so each sequence gets more KV splits at large batches.Measured gains. All on Vera Rubin, TEP4, AgentX traces on the 1M-token corpus, with forced draft acceptance. x = p10 per-user output throughput; y = total throughput per GPU.
Accuracy. GSM8K at TEP4 with natural acceptance, at 16 and 32 concurrent requests, is within run-to-run variation of the control (paired McNemar p > 0.2), and so is the mean acceptance length.
Validation. The tree of this PR was validated as an integration branch on R200. That branch differs from this PR only in comments, strings, formatting, and the op
CELLSlists and target unit tests, which this branch does not carry. On that branch:Test Coverage
accuracy/modeling_v2/test_musespark_open.py(on this branch): GSM8K and mean acceptance length undermodeling_v2="require". As in [None][feat] Muse Spark Open modeling_v2 TEP target: mid-high-concurrency optimizations for GB300 #20770, the modeling_v2 target is covered by the e2e accuracy test rather than unit tests.tests/unittest/_torch/attention/test_flashinfer_trtllm_gen_fmha.py: decode launch grouping;tests/unittest/_torch/modeling_v2/test_modeling_v2_routing.py: the resolver recordsmax_batch_sizeand it never changes the routing decision.PR Checklist
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.🤖 Generated with Claude Code