Skip to content

[None][feat] Muse Spark Open GB300: BF16 finalize switch, SPF arrival-age bound, block-FP8 context projections, and sm103 TEP8 multi-request decode paths - #21746

Closed
zbpatel wants to merge 7 commits into
NVIDIA:feat/musespark-open-agentxfrom
zbpatel:zpatel/feat/musespark-open-agentx-gb300
Closed

zbpatel wants to merge 7 commits into
NVIDIA:feat/musespark-open-agentxfrom
zbpatel:zpatel/feat/musespark-open-agentx-gb300

Conversation

@zbpatel

@zbpatel zbpatel commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Muse Spark Open (816B-A42B NVFP4) serving changes for GB300: six commits on top of feat/musespark-open-agentx (aaba1de, #21535 over #21754's split into separate sm103 and sm107 TEP targets). They are best reviewed one commit at a time. All of their modeling_v2 changes are in the sm103 (GB300) target; the sm107 target is untouched.

Prefill (context workers, modeling_musespark_open.py; Muse Spark Open only)

  1. [feat] BF16 MoE finalize output. MUSESPARK_OPEN_FINALIZE_BF16_OUT (default off): the unfused expert finalize rounds to BF16 at its store instead of returning FP32 for the cast that follows. The result is bitwise identical to the previous FP32 store plus cast.
  2. [feat] KV cache v2 scheduler: arrival-age bound for shortest-prefill-first. TRTLLM_SCHED_SPF_MAX_AGE_PASSES=N (default 0, off) also promotes a request that reached the context state N or more passes ago, so a long cold prompt can't be starved for minutes by shorter requests. This is shared code, inert unless both SPF and the bound are set.
  3. [feat] Opt-in block-FP8 qkv/o/pool/unpool projections on context workers. MUSESPARK_OPEN_FP8_PROJECTIONS (default off): DeepGEMM block-FP8 Linears with UE8M0 block scales, weights quantized from BF16 at load, and the activation quantization pinned to the CUDA kernel. It is refused on the modeling_v2 (generation) path and in the unsupported configurations listed in the commit message.
    • Numerics: this is a numerics change. Each projection's relative error is about 3.8%.
    • Results: GSM8K strict-match 97.65% against 97.73% without it (not significant over 1,319 questions). The saturated 8k prefill step is 5.1% faster, and each rank gets 5.3 GiB more KV cache.

Decode (the sm103 target's TEP8 composition: two GB300 trays; the TEP4 composition is unchanged)

  1. [feat] Serve the multi-request decode fast paths at TEP8. Seven paths whose kernels already take a TP8 rank's shape join the (103, 8) composition: multi_request_prep_append, multi_request_split_kv, router_gemm, multi_request_post_attention_hop, vocab_parallel_head, wide_split_sampler and drafter_window_compact.
  2. [feat] Two-shot hop and MoE all-reduce, QKV split-K and ring-buddy balancing. This commit makes four changes for decode steps of 2+ requests:
    • The post-attention hop switches to two-shot at 16 rows at TP8.
    • The MoE output all-reduce of 129..1024-row steps uses the MNNVL two-shot.
    • The QKV projection of 9..32-row steps uses flashinfer split-K (wide_dense_gemms, restored in the sm103 target with a TP8 table only).
    • Ring-buddy balancing extends to 32 rows.
    • Results: B3 −10.2%, B4 −2.9%, B32 −6.3% and B64 −9.3% p50 decode step. GSM8K 97.57%.
  3. [feat] Sharded pool / unpool projections for 2..64-request steps. Each rank multiplies only its slice of the replicated pool/unpool weights:
    • At 9..32 rows (wide_projection_gathers), the slices are gathered on 32-row inboxes.
    • At 40..512 rows (projection_publish), they are published from the GEMM over the two trays' fabric.
    • CERTIFIED_PRODUCERS_TP8 holds the TP8 cuBLAS producer census's key, at the census's row counts (CENSUS_ROWS_BY_TP). On another torch, cuBLASLt or device, the built-in projections serve.
    • Results: B2 −11.5%, B3 −9.1%, B4 −3.6% and B16 −3.0% p50 decode step. GSM8K 97.73%.

New environment variables: all default to the previous behavior.

variable commit default
MUSESPARK_OPEN_FINALIZE_BF16_OUT 1 off
TRTLLM_SCHED_SPF_MAX_AGE_PASSES 2 0 (off)
MUSESPARK_OPEN_FP8_PROJECTIONS 3 off

Rebases: this branch was developed on c55183f, then rebased onto #21377, onto #21754, and now onto #21535 (aaba1de).

Validation status:

Test Coverage

  • tests/unittest/_torch/modeling_v2/models/musespark_open/muse_spark_open_816b_a42b_nvfp4__sm_103__tep/test_modeling_v2_levers.py (CPU only) passes at every commit (90 passed). Commits 4–6 update it for the new TEP8 composition:
    • The lever registry lists (103, 8) for the added paths that have lever rules, and the TEP8 region table expects them on.
    • The baseline model lists the added paths (SM103_TEP8_ADDED).
    • The TEP8 region table runs on a windowed arena, which the window compaction needs.
    • The window-compaction test checks the structural exclusion on a copy of the composition without the compaction.
  • The scheduler and Muse Spark Open model unit tests need a built tensorrt_llm and were not run locally; CI runs them. Every new switch is off by default.
  • GPU coverage: GSM8K and decode-step A/B measurements on GB300 (above). No new GPU unit tests are included.

PR Checklist

  • PR description clearly explains what and why.
  • PR follows the TRT-LLM coding guidelines to the best of my knowledge.
  • No API changes.
  • No new dependencies.
  • Documentation updated as needed: module docstrings in modeling.py and the kernels.

Test cases for the new code paths: the CPU lever-table test is updated for the new TEP8 composition; no new GPU unit tests are included (see Test Coverage).

🤖 Generated with Claude Code

@zbpatel
zbpatel force-pushed the zpatel/feat/musespark-open-agentx-gb300 branch from 4ce773b to 28f4224 Compare November 6, 2026 07:19
@zbpatel zbpatel changed the title [None][feat] Muse Spark Open GB300: prefill SP fixes and switches, SPF arrival-age bound, block-FP8 context projections, and sm103 TEP8 multi-request decode paths [None][feat] Muse Spark Open GB300: BF16 finalize switch, SPF arrival-age bound, block-FP8 context projections, and sm103 TEP8 multi-request decode paths Nov 6, 2026
zbpatel and others added 6 commits November 8, 2026 22:57
MUSESPARK_OPEN_FINALIZE_BF16_OUT (default off; a context-worker switch): the
model's own unfused expert finalize rounds to BF16 at its store instead of
returning FP32 for the cast on the next line. The accumulation stays FP32
and the result is bitwise the same tensor, without the FP32 write, read and
extra cast kernel. The attention-DP combine hook keeps FP32.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Zachary Patel <[email protected]>
…efill-first

Shortest-prefill-first (TRTLLM_SCHED_SHORTEST_PREFILL_FIRST=1) promotes a
request once it has waited TRTLLM_SCHED_SPF_MAX_WAIT_PASSES scheduler passes
without any budget. A long cold prompt that shorter requests keep feeding a
trickle of leftover tokens never trips that clock, so under sustained load
its first token can wait for minutes.

TRTLLM_SCHED_SPF_MAX_AGE_PASSES=N (default 0, off) also promotes a request
that reached the context state N or more passes ago, however much budget it
has had since. Its first token then arrives at most N passes plus its own
prefill after it arrived. The default leaves the existing order unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Zachary Patel <[email protected]>
…projections

MUSESPARK_OPEN_FP8_PROJECTIONS (default off; context workers only) serves
the attention qkv and o projections and the MoE pool and unpool projections
of every decoder layer as block-FP8 DeepGEMM Linears. "all" (or "1") names
all four; a "+"-joined subset such as "qkv+pool" names just those.

- The BF16 checkpoint weights are quantized once at load to E4M3 with
  128x128 power-of-two (UE8M0) block scales, the scale
  resmooth_to_fp8_e8m0 derives, so the post-load resmooth is
  value-preserving. Each rank quantizes the full tensor and load_shard
  slices it; every shard boundary must fall on a 128 block, which is
  checked at boot.
- The conversion runs in apply_quant_config_exclude_modules, the one hook
  between the checkpoint exclusion pass and create_weights, so no BF16 copy
  of a converted projection is ever allocated.
- The 1x128 activation quantization of fp8_swap_ab_gemm is pinned to the
  CUDA kernel (new pin_fp8_1x128_quant_tactic), so every rank of a TP group
  and every boot use the same quantization.
- Refused at boot: the modeling_v2 (generation) path, non-SM100-family GPUs,
  non-BF16 activations, MUSESPARK_OPEN_LL_QKV_WEIGHT_LAYOUT=1 with qkv,
  use_cute_dsl_blockscaling_mm, LoRA, and max_num_tokens above 8192 (the
  DeepGEMM warmup walk stops there, so larger steps would JIT mid-serve).
- The sharded small-M projection path keeps the replicated Linear for a
  non-BF16 weight.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Zachary Patel <[email protected]>
…de fast paths

Adds _SM103_TEP8_MULTI_REQUEST_PATHS to the (103, 8) composition:
multi_request_prep_append, multi_request_split_kv, router_gemm,
multi_request_post_attention_hop, vocab_parallel_head, wide_split_sampler
and drafter_window_compact. Their kernels take a TP8 rank's shape (2 KV
heads of 8 query heads each, the replicated router, the gathered sampler
row, or eight ranks over two trays' fabric), and every path they depend on
is already in _TEP8_PATHS, so the composition stays closed. The windowed
drafter arena compaction keeps the context-K/V fork and the verify fold in
the plan over a windowed arena at TEP8, as at TEP4.

Five of these paths have lever rules (levers.TEP4_PATHS and
vocab_parallel_head). Each rule is on wherever the path is served, so under
auto and baseline the table turns them on at TEP8 as well.

test_modeling_v2_levers: the lever registry lists (103, 8) for those five,
and the TEP8 region table expects them on and runs on a windowed arena (the
window compaction needs one). The baseline model lists the added paths
(SM103_TEP8_ADDED). The window-compaction test keeps the structural
exclusion on a copy of the composition without the compaction.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Zachary Patel <[email protected]>
…uce, QKV split-K and ring-buddy balancing for multi-request decode

Four changes to the TEP8 (two GB300 trays) decode composition of the sm103 modeling_v2
target, for decode steps of two or more requests. The TEP4 composition is unchanged.

- post_attn_hop_wide: the group's one-shot/two-shot cut is per rank count
  (TWO_SHOT_ROWS_BY_RANKS = {4: 32, 8: 16}). At eight ranks the two-shot is faster from
  16 rows, so 16..31-row steps move to it and the one-shot slabs shrink from 31 to 15
  rows (4 MiB less fabric memory per rank). Both transports sum in FP32 in rank order and
  round once, so the bits do not depend on the cut. The install line names the cut and
  the rank count.
- wide_moe_allreduce: the MoE output all-reduce of 129..1024-row decode steps runs on the
  MNNVL two-shot at TP8 over exactly two nodes of four GPUs, as it already did at TP4 on
  one node. The 1024-row buffers are 16 MiB at either TP size, so no workspace is
  resized. Not bitwise the NCCL ring: eight BF16 partials are summed in FP32 and rounded
  once, where the ring rounds each hop to BF16.
- wide_dense_gemms: the fast path comes back to the sm103 target with a TP8 table only
  (WIDE_KERNELS_BY_SM_TP, the plan's wide table and its per-row kernel check at
  install). It runs the QKV projection of 9..32-row steps on flashinfer split-K with the
  8-row cell's split_k 4, so every row keeps its one-request bits. It sits in
  _TEP8_PATHS; no TEP4 composition serves it. The DFlash drafter's TP8 split-K table
  gains 16/24/32-row rows. Because those rows were chosen from the shapes,
  drafter_fixed_gemms now checks every row of that table with flashinfer's tactic
  validation at install, and refuses before changing any module.
- replicated_experts: ring-buddy balancing also takes the 17..32-row steps (three and
  four requests) at TP8 (ring_buddy.MAX_ROWS_BY_SM_TP), one ring_buddy_assign program of
  256 slots. Expert selection and expert rows are unchanged; only which rank's partial
  each (token, slot) joins in the finalize all-reduce changes, as on the existing
  1..16-row steps.

Measured on 2x GB300 trays, TEP8, rank-0 p50 decode step against the previous commit
(on an earlier base of this branch): B3 -10.2%, B4 -2.9%, B32 -6.3%, B64 -9.3% (B1/B2
-1.3%, within noise). GSM8K strict-match 97.57% (reference 97.73% +- 0.41); greedy
decoding is deterministic at concurrency 4 and 8.

test_modeling_v2_levers: SM103_TEP8_ADDED gains wide_dense_gemms and wide_moe_allreduce.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Zachary Patel <[email protected]>
…tions for 2..64-request decode steps

At TEP8 the built-in MoE multiplies the whole replicated pool (8192 -> 4096) and unpool
(4096 -> 8192) weights on every rank above 8 rows. This extends the two TEP4 paths that
shard them to the TEP8 composition (two GB300 trays):

- wide_projection_gathers (9..32 rows, two to four requests at K = 7): each rank
  multiplies its 512 / 1024 columns on flashinfer split-K 4 (TP8_WIDE_KERNELS, the
  8-row cells' split_k), and the slices are gathered on 32-row inboxes fused into the
  pre-expert NVFP4 quantization and the post-FFN boundary; each boundary CTA polls two
  peers at eight ranks. On the converted edges, the unpooler's next-QKV L2 prefetch is
  dropped at those rows, where it would gate the early-released QKV.
- projection_publish (40..512 rows, 5 to 64 requests): each rank's slice GEMM writes
  straight into its slot of a multicast transport over the two trays' fabric, and the
  consumers poll the published rows. The row cap is per TP size (MAX_ROWS_BY_TP: 448 at
  TP4, 512 at TP8), and the transports are sized to it (12.6 + 25.2 MB per rank at TP8).
  CERTIFIED_PRODUCERS_TP8 now holds the TP8 census's key. That census ran on GB300 with
  the same torch and cuBLASLt as the TP4 one, and certified both TP8 slice shapes at the
  32 row counts of the served CUDA-graph batch sizes (CENSUS_ROWS_BY_TP). A TP8 step of
  another row count, or another torch, cuBLASLt or device, runs the built-in
  projections. The path needs the experts' moe_max_num_tokens (the server's
  max_num_tokens) to cover its 512-row cap.

Both are off the 1-request path. The consumers compute the built-in kernels' arithmetic on
the gathered rows; the slice GEMMs differ from the replicated GEMM by summation order only.

Measured on 2x GB300 trays, TEP8, rank-0 p50 decode step against the previous commit (on
an earlier base of this branch): B2 -11.5%, B3 -9.1%, B4 -3.6%, B8 -1.8%, B16 -3.0%,
B32/B64 neutral, B1 unchanged. GSM8K strict-match 97.73%; greedy decoding is
deterministic at concurrency 4 and 8.

test_modeling_v2_levers: the lever registry lists (103, 8) for projection_publish, and
the TEP8 region table expects it on. SM103_TEP8_ADDED gains projection_publish and
wide_projection_gathers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Zachary Patel <[email protected]>
@zbpatel
zbpatel force-pushed the zpatel/feat/musespark-open-agentx-gb300 branch from 28f4224 to 4564c89 Compare November 9, 2026 07:09
@zbpatel

zbpatel commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #83487 [ run ] triggered by Bot. Commit: 4564c89 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #83487 [ run ] completed with state SUCCESS. Commit: 4564c89
/LLM/main/L0_MergeRequest_PR pipeline #69011 completed with status: 'SUCCESS'

CI Report

Link to invocation

@zbpatel
zbpatel marked this pull request as ready for review November 9, 2026 20:30
@zbpatel
zbpatel requested a review from mikeiovine November 9, 2026 20:30

@Wanli-Jiang Wanli-Jiang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Maybe a further question: no CI stage reaches TEP8 and these commits were not run on GPU after the rebases, could we rerun the TEP8 GSM8K on this head before merging?

#: The paths TEP8 serves beyond ``C55_SERVED``: the multi-request decode paths of
#: ``modeling._SM103_TEP8_MULTI_REQUEST_PATHS`` and ``wide_dense_gemms``, TEP8's alone. The
#: baseline serves them like the rest of the composition.
SM103_TEP8_ADDED = frozenset(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is cpu_only, but no CPU list names it and GPU stages deselect cpu_only, so CI never checks these TEP8 composition changes. It runs in under 1 s; could we add it to l0_cpu_musespark.yml and l0_cpu.yml?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 160e005: the sm103 lever test is now on both l0_cpu.yml and l0_cpu_musespark.yml.

🤖 Addressed by Claude Code

waited = self._pass - self._waiting_since[req.py_request_id]
if waited >= self.max_wait_passes:
if waited >= self.max_wait_passes or (
self.max_age_passes > 0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The age bound has no test; could we add a case like test_prompt_that_keeps_progressing_does_not_age with TRTLLM_SCHED_SPF_MAX_AGE_PASSES set, and clear it in admission_env? Also, a bare /bot run on this branch skips l0_cpu, the only list running this file, so it needs --extra-stage "CPU-Generic-x86-1".

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 160e005: test_age_bound_promotes_a_prompt_that_keeps_progressing (the case you describe, with TRTLLM_SCHED_SPF_MAX_AGE_PASSES=3) and test_age_bound_promotes_before_the_wait_bound. admission_env and backoff_env now clear the variable. The two shortest-prefill-first classes are also on l0_cpu_musespark.yml, and the next /bot run will add --extra-stage "CPU-Generic-x86-1".

🤖 Addressed by Claude Code

FP8_AMAX_FLOOR = 1e-4


def _quantize_block_fp8_ue8m0(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MUSESPARK_OPEN_FP8_PROJECTIONS has no test. The quantizer (power-of-two scales that keep the later resmooth exact), the env parsing and the boot refusals are pure functions; could we add a small cpu_only test and list it in l0_cpu_musespark.yml?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added test_modeling_musespark_open_fp8_projections.py (cpu_only, on l0_cpu_musespark.yml) in 160e005. It covers: the quantizer (UE8M0 ceiling scales; a CPU restatement of the resmooth keeps q * scale exactly; quantize-then-shard equals shard-then-quantize; input refusals), the env parsing, _check_fp8_projections_supported's boot refusals and _check_fp8_projection_linear's shard-alignment and DeepGEMM checks.

🤖 Addressed by Claude Code

#: seven peers' rows instead of three, the two-shot is the faster from 16 rows. The served
#: workspace takes its group's entry (``two_shot_rows_for``); both transports give the same
#: bits, so the cut moves time only.
TWO_SHOT_ROWS_BY_RANKS = {4: 32, 8: 16}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostAttnHopWide.note still lists eight ranks under "Not certified", while this PR serves multi_request_post_attention_hop at TEP8 and tunes the 8-rank cut here. Is eight ranks certified now? If so, could we update the note?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for the served transport. On GB300 at eight ranks over two trays, a standalone check against PostAttnHop.reference passed at every row count from 16 to 512, and the one-shot and two-shot transports matched bit for bit, including at the 16-row cut. The note now says that (160e005). The larger 513..1024-row transport at eight ranks has not been run, so it stays listed under "Not certified".

🤖 Addressed by Claude Code


#: The stacked path's row cap per ``(SM, tensor-parallel size)`` where it is not
#: ``MAX_ROWS`` (``max_rows_for``). sm103 tep8 also balances the decode steps of three
#: and four requests (17..32 rows at K = 7): 32 rows of ``TOP_K`` slots are the 256 slots

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAX_SLOTS is 512 in ring_buddy_assign.py (64 rows), not 256, so this comment and the "(32)" in install's docstring are off; _install_refusal allows 64 rows. Could we fix both?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 160e005: the comment now says 32 rows use 256 of the 512 MAX_SLOTS (64 rows), and install's docstring says (64).

🤖 Addressed by Claude Code

#: own TP8 table, armed per decode forward (``set_wide_kernels``), and leaves QKV to this one.
#: Chosen from the shapes, not from a per-call sweep; ``install``'s split-K check refuses a cell
#: that would change the bits.
SM103_TP8_WIDE_KERNELS: Mapping[str, Tuple[Tuple[int, str], ...]] = {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These cells need a 9..32-row split-K call to give each row its 8-row bits, but no test runs dense_gemm (gathers.py cites test_modeling_v2_dense_gemm.py, which is not checked in), so a flashinfer change would break that silently. Could we add a one-GPU test on the GB300 MuseSpark stage?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added ops/gemm/test_modeling_v2_dense_gemm.py to l0_gb300_musespark.yml in 160e005. On one SM 10.3 GPU, for the QKV cells and the pooler and unpooler slice cells at 9..32 rows (with and without PDL), every row of a wide split-K call must match the 8-row cell's output bit for bit, and every cell is checked against the float64 reference. It also checks that every wide cell keeps its site's 8-row split_k.

🤖 Addressed by Claude Code

…-bound and FP8-projection changes

Review follow-ups:

- l0_cpu.yml and l0_cpu_musespark.yml run the sm103 TEP target's lever test
  (cpu_only), so CI checks the TEP8 composition tables.
- KV cache v2 scheduler: two tests for TRTLLM_SCHED_SPF_MAX_AGE_PASSES (a
  prompt that keeps getting tokens is promoted by its arrival age; the age
  bound promotes before the wait bound). admission_env and backoff_env clear
  the variable. l0_cpu_musespark.yml runs the shortest-prefill-first classes.
- MUSESPARK_OPEN_FP8_PROJECTIONS: a cpu_only test of the load-time quantizer
  (UE8M0 scales, resmooth keeps every value, quantize-then-shard equals
  shard-then-quantize, refusals), the switch's parsing, and the boot and
  per-Linear refusals; on l0_cpu_musespark.yml (l0_cpu.yml runs it through
  unittest/_torch/modeling).
- A one-GPU test of the tep8 wide dense GEMM cells (QKV, pooler and unpooler
  slices at 9..32 rows): every row gets the bits of the 8-row split-K cell,
  and every cell is held to the float64 reference. On l0_gb300_musespark.yml.
- post_attn_hop_wide: the note now records eight ranks as certified on the
  served transport (16..512 rows); the larger transport at eight ranks is not.
- ring_buddy: MAX_SLOTS is 512 (64 rows); the comment and install docstring
  said 256 (32).

Signed-off-by: Zachary Patel <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tabrizian added a commit that referenced this pull request Nov 13, 2026
…request paths and runtime fixes for the AgentX Pareto

One commit with the tree of user/itabrizian/musespark-gb300 @ b690aa1aff8 (42 commits and
3 merges on this branch's ab93b78), the TensorRT-LLM code behind
ftp/disaggregated-serving-benchmarking!177's GB300 AgentX Pareto points. b690aa1aff8 and its
history stay on user/itabrizian/musespark-gb300-b690.

Decode kernel stack (user/itabrizian/musespark-gb300-decode-kernel-stack @ b3ed1778606):
nbommi's sm103 TEP8 decode kernels in the modeling_v2 target, his switches as dispatch levers.
With MUSESPARK_OPEN_LEVER__ROLE=gen the measured TEP8 gen points (batch 1, 3, 4, 24, 31)
resolve their levers on auto; MUSESPARK_OPEN_LEVER_<NAME> forces one. context_sequence_parallel
is off on auto for TEP4 roles (its copy-engine gather slowed disaggregated KV sends) and on by
its knob, which aggregated servers need.

sm103 TEP8 multi-request decode paths, BF16 MoE finalize output (off by default) and the
shortest-prefill-first arrival-age bound, from #21746.

Runtime changes (user/itabrizian/musespark-gb300-runtime-ports @ 26ffe003825):
- opt-in: shortest-prefill-first age pacing and first-chunk aging, KV cache manager v2 SWA
  endpoint retirement, a torch memory safety margin with cuBLAS handle prewarm;
- on by default: the iteration-stats device-memory reading cached for 1 s, the polled disagg
  gen-init KV receive fence (#19857 from main) with fence-ready receives started right after
  the previous forward, a 3600 s trtllm-serve keep-alive timeout, and router held-placement
  counters when max_inflight_per_server is set.

Squashed commits:
- 1eb0935 [None][feat] MuseSpark GB300: port the decode kernel stack, switches become dispatch levers
- 0db4fd5 musespark gb300: the ported decode stack on by default at TP8
- f6a8a2e musespark gb300: satisfy the repo's ruff-format and pinned-memory hooks
- 5a73305 [None][feat] MuseSpark GB300: drafter tail folds as two default-off levers
- 4f3322a [None][feat] MuseSpark GB300: drafter GEMM cells, SiLU epilogue and attention-block split-K
- cd86bea [None][feat] MuseSpark GB300: let the wide expert placement reach 512 decode rows
- 434826b [None][feat] MuseSpark GB300: arm the one-request SWA block's early loads
- e333e03 [None][fix] MuseSpark GB300: tep8_attn_block_splitk is numeric, not bitwise
- 0b10da0 [None][fix] test: widen the paged-context off-lever set for the ported levers
- e4f43fe [None][feat] MuseSpark GB300: serve four ported levers by default on tep8 decode
- 4670856 [None][feat] MuseSpark GB300: serve the last two ported levers on tep8 decode
- 6224a5fa8f8 [None][feat] Muse Spark Open prefill: BF16 MoE finalize output
- 5bbb51b8785 [None][feat] Muse Spark Open sm103 TEP8: serve the multi-request decode fast paths
- 1b58ad0432a [None][feat] Muse Spark Open sm103 TEP8: two-shot hop and MoE all-reduce, QKV split-K and ring-buddy balancing for multi-request decode
- 581396bd760 [None][feat] Muse Spark Open sm103 TEP8: sharded pool / unpool projections for 2..64-request decode steps
- 7260f4aa61c [None][fix] MuseSpark GB300: drop the ported ring-buddy levers for the target's own
- dd7014553ab [None][feat] MuseSpark GB300: serve the last four ported levers where the composition carries them
- 97b4a9cf43b [None][feat] MuseSpark GB300: the early router shard becomes a lever, and two tables come back
- 2349639f727 [None][feat] MuseSpark GB300: serve the combine gate and staged router GEMM at TEP8
- 7ddd83a363e [None][fix] MuseSpark GB300: keep the ported levers off TP4 defaults
- 285e7742214 [None][fix] MuseSpark GB300: re-register tep8_batch_splitk, which the model could not construct without
- 4c48b11c533 [None][fix] MuseSpark GB300: check OnBatchSplitK rows against their own kernel
- 373076fd510 [None][feat] MuseSpark GB300: restore tep8_wide_balance on the target's ring buddy
- c3fcac0a616 [None][fix] MuseSpark GB300: give ring_buddy the configure() lever_settings calls
- 5c21296b505 [None][feat] MuseSpark GB300: restore tep8_ring_buddy_wide over the target's cap
- 87598d3eb9e [None][fix] PyExecutor: read device memory for iteration stats at most once a second
- fff1a0353b1 [None][feat] KV cache v2 scheduler: arrival-age bound for shortest-prefill-first
- 797881ad0af [None][feat] KV cache v2 scheduler: pace the arrival-age lead of shortest-prefill-first
- f09f7092c40 [None][feat] KV cache v2 scheduler: first-chunk aging for shortest-prefill-first
- 9741459f7e1 [None][feat] PyExecutor: opt-in torch memory safety margin with cuBLAS handle prewarm
- ae209aeca2a [None][feat] KV cache manager v2: opt-in retirement of superseded SWA endpoints
- 3752d88e8e0 [https://nvbugs/6865617][fix] Poll the disagg gen-init KV receive fence instead of blocking the overlap scheduler (#19857)
- c65e7d76983 [None][feat] Disagg gen: start fence-ready KV receives right after the previous forward
- 0d541b0da70 [None][fix] serve: raise the HTTP keep-alive timeout off uvicorn's default
- 26ffe003825 [None][feat] serve router: log held-placement counters periodically
- d7a68f37085 [None][fix] MuseSpark GB300: let the batch-expert levers reach the kernel
- 16ddb1ed656 [None][fix] MuseSpark GB300: wire the batch-expert levers the way weights.py meant to
- 055e587b2c7 [None][feat] MuseSpark GB300: resolve the measured tep8 gen points without a knob
- f85f25fbced [None][fix] MuseSpark GB300: keep the lever table's own formatting
- bdbe2275304 [None][feat] MuseSpark GB300: restore tep8_experts_in_kernel_placement
- 784dc5f0792 [None][fix] MuseSpark GB300: prepare batch builds only for windows they serve
- b3ed1778606 [None][fix] MuseSpark GB300: context_sequence_parallel off by default, on by its knob

Signed-off-by: Iman Tabrizian <[email protected]>
Co-authored-by: Zachary Patel <[email protected]>
Co-authored-by: Nitin Sai Bommi <[email protected]>
Co-authored-by: chenfeiz0326 <[email protected]>
Co-authored-by: trtllm-agent <[email protected]>
@zbpatel

zbpatel commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

@Wanli-Jiang thank you for the helpful feedback on this MR! We have merged in these changes to the target branch on gitlab, so I'm going to close this MR.

@zbpatel zbpatel closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants