Skip to content

[AMD][MI35X] Qwen3.8-Flash-Next FP4 SGLang AgentX MTP: monokernel update and opt-in QSA, MXFP4 MoE, HC prefill and GDN verify kernels on the 20261117 image / [AMD][MI35X] Qwen3.8-Flash-Next FP4 SGLang AgentX MTP:在 20261117 镜像上更新 monokernel 并启用 QSA、MXFP4 MoE、HC 预填充与 GDN verify 可选内核 - #2

Draft
eppaneamd wants to merge 7 commits into
base/chang-qwen38-refactorfrom
amd/qwen3.8next-mi355x-sglang-optin-kernels-20261117

Conversation

@eppaneamd

@eppaneamd eppaneamd commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Status (2026-11-20): not run in InferenceX yet. The validation below comes from our own serving windows on this image; an InferenceX run of this head replaces it.

Summary

Adds 17 patches to the MI355X Qwen3.8-Flash-Next FP4 SGLang AgentX recipe (qwen3.8next-fp4-mi355x-sglang-agentic-mtp) of SemiAnalysisAI/InferenceX#4832, "the base PR" below:

Patches What they add Points
09, 10 From chang's monokernel branch, chang/qwen3.8-flash-fp4-mi355x-update-monokernel, which the base PR lacks: the packed GDN input projection (09) and the updated monokernel (10) 09: c12-c80; 10: c1, c2
11-16, 21-24, 26-29 gfx950 kernels, each opt-in except 27: QSA attention (11-13, 16, 21), the MXFP4 MoE (14, 22, 23), the hyper-connection prefill (15, 26), GDN verify and prefill (24, 28, 29), and the decode FP8 quant of the GDN and attention output projections (27) 11-26: c12-c80; 27-29: all
30 The checkpoint served as a text model all, with language-model-only

Every added patch but 10 (from a branch) has an open upstream PR, listed under Upstream pieces. 28 and 29 keep their kernels in SGLang's tree, as our windows ran them; their draft PRs move 28's kernels and 29's conv kernel into AITER.

  • Base: the base PR's head a6a72472 (this fork's base/chang-qwen38-refactor): the lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261117 image with the image's own AITER. The base PR has no e2e run on this image; its last, 42802324736, ran its earlier head 13f2b0e3 on the …-20261102 image.
  • Not for merge: the recipe applies engine patches, which the PR review checklist allows only with an inferencex-e2e/docs/waiver/<PR>.md waiver. None is filed, and the patches are in no lmsysorg image. The branch is for an unofficial run.
  • Earlier revision: eppaneamd/InferenceX#1, "the earlier PR" below, carries patches 11-16, 21 and 24 on the …-20261102 image; its head with main merged ran unofficially as 44408546542. What this branch adds to it is under Changes.

Changes

Against the earlier PR, whose eight patches this branch ports to this image:

New against the earlier PR Patch or setting Points
MXFP4 MoE stage 2 writes FP8 route rows, summed in FP32 22, 23 c12-c80
Hyper-connection sites above 48 rows on Triton kernels, replacing 15 (an earlier revision of the same PR) 26 c12-c80
Decode FP8 quant of the GDN and attention output projections, taken from the launch before them 27 all
GDN chunked prefill as parallel prep kernels and a serial state kernel 28 all
GDN prefill conv, input-projection quant, gated norm and gating kernels 29 all
The checkpoint served as a text model 30, language-model-only all
Decode CUDA graphs at every batch size up to the admission: 1-48 at c24; 1-64, then every 8 to 128, at c48 and c80 cuda-graph-bs-decode c24-c80
strip-thinking-cache and mamba-max-states-per-path 2, which c80 already sets server arguments c48
The Mamba state checkpointed at every prefill chunk and decode tracking boundary, not only at branch points and request ends (the default 2) hybrid-cache-checkpoints-level 3 c1, c2
  • 26 takes over 15's switch, so c12-c80 set nine variables (the earlier PR: eight). Patches 09 and 10 come from the earlier PR's base, chang's monokernel branch. c1 runs at TP1 only, as in the base PR (the earlier PR also has TP2 and TP4).
  • Patches 09 and 10 apply after the base PR's 01-07, then 11-16, 21 and 24, then 22, 23 and 26-30, in that order (qwen3.8next-rocm10-patches.sh). Numbers 08, 17-20 and 25 are not on this branch.
  • Each of 11-26, 28 and 29 is off unless its variable is set (12 and 22 add AITER code that only 13 and 23 call); 27 has no variable; 30 acts with language-model-only. Each file's header names its upstream source, head commit and how the patch differs from it.
  • c12-c80 set the nine variables of 11-26 (under Upstream pieces); c1 and c2 set none, and there the monokernel takes the decode, verify and draft steps that 11, 14, 21 and 24 change. Every point sets 28 and 29's SGLANG_AMD_GDN_PREFILL and SGLANG_AMD_GDN_PREFILL_FUSED, and language-model-only: true, with which the server skips the vision tower's weights.
  • c1 and c2 set, as chang's monokernel branch does, SGLANG_AMD_MONO_QWEN38_DRAFT_HEAD_FP8=0 (the MTP draft's lm_head at its shipped precision, not patch 10's FP8 copy) and SGLANG_QWEN35_PACKED_IN_PROJ=0 (patch 09 off).
  • Apart from patch 23's FP8 route rows in the target's MoE stage 2 (summed in FP32; the draft's MoE keeps the default), no patch lowers the dtype of a weight or an activation.
  • default-chat-template-kwargs: '{"enable_thinking": false}' is removed, as in main's entry: the server applies the chat template's default, the thinking mode of the acceptance length the harness injects.
  • Unchanged from the base PR: the image, the AITER and FlyDSL versions, patches 01-07, the six points, the two GSM8K eval groups and every other argument and variable.

Validation

The two windows of a pair ran together on one node; per-pair values are in the details.

  • B = this head without patch 30.
  • A = the earlier PR's patches on this image, this PR's previous head: patches 01-07, 09-16, 21 and 24; at c12-c80 their eight variables, at c1 and c2 the draft head at shipped precision.
  • So B against A is what this branch adds to the earlier PR, without patch 30.
Point B against A, thinking off (the base recipe's setting) B against A, thinking on (this branch's setting) Patch 30 against the same settings without it
c80 +3.01 / +5.60 % +2.11 / +6.74 % +1.08 / +2.25 %
c48 +1.54 / +7.06 % (three pairs) +1.72 / +5.99 % −0.38 / +1.64 %
c24 +0.55 / +3.32 % +0.50 / +3.71 % −0.15 / +2.24 %
c12 −0.34 / +1.52 % −0.06 / +1.39 % −0.43 / −0.23 %
c2 −0.31 / +22.61 % (four pairs) +2.20 / +19.88 % +0.10 / +3.41 %
c1 +2.07 / +11.69 % +3.12 / +18.86 % +2.67 / −2.56 %
  • Cells: total tokens/s per GPU (T) / P90 E2E-normalized interactivity (N), as in the details, both GPU orders pooled unless marked. Patch 30's pairs leave 28 and 29's variables unset in both arms.
  • Within their noise:
    • thinking off at c12 (its second GPU order read T −1.36 %, just beyond that order's noise);
    • thinking on at c12 (its B windows also set decode graph sizes 1-24, which this branch leaves at the image's);
    • patch 30 at c48 (its first GPU order read N +2.54 %, just beyond that order's noise), c12 and c1.
  • Within it when pooled but beyond it in each GPU order: thinking off at c80 (the orders ran on two nodes, A at N 31.60 and 29.00) and patch 30 at c2.
  • At c2, N moves between windows with the same settings (−10.1 to +7.8 % in four repeats): the client replays the same traces in the same order, but each lane starts its next trace when the previous one ends, so which requests run at the same time differs. Over the four thinking-off pairs A read N 145.7 to 163.1 and B 181.6 to 198.1.
  • The earlier PR's patches on this image against the base PR with patches 09 and 10 (A without the eight variables): N +24.3 to +40.8 % and T +4.9 to +21.7 % at c12-c80 in seven pairs. In an eighth (c80, GPUs swapped) the patched server slowed partway through the window (N −70.1 %, cause not found); its repeat on the same GPU read N +31.9 %.
  • Accuracy, GSM8K, 1,319 questions (floor 0.90; acceptance length against the golden 2.32, a report-only check):
    • c2 with all of this head's settings: strict and flexible 0.9689, acceptance length 2.729; against c2 at level 3 without patches 28-30 (0.9704), 7 questions worse and 5 better, McNemar p 0.77.
    • c80 with all of this head's settings: 0.9719 and 0.9719, acceptance length 2.482; against c80 without patches 28-30 (0.9697), 8 worse and 11 better, p 0.65.
Validation details

T = total tokens/s per GPU, N = P90 E2E-normalized interactivity.

This head without patch 30 (B) against the earlier PR's patches on this image (A), thinking off:

Pair A: T / N B: T / N B against A: T / N
c80 275,150 / 31.60 282,105 / 33.65 +2.53 / +6.48 %
c80, GPUs swapped 265,897 / 29.00 275,242 / 30.35 +3.51 / +4.64 %
c48, A stalled 81 s (not pooled) 197,591 / 58.62 201,047 / 64.34 +1.75 / +9.76 %
c48, repeat 197,979 / 59.41 201,366 / 64.00 +1.71 / +7.71 %
c48, repeat, another node 198,224 / 60.41 200,910 / 63.77 +1.36 / +5.57 %
c48, GPUs swapped, another node 198,194 / 59.36 201,249 / 64.07 +1.54 / +7.93 %
c24 133,356 / 94.09 134,445 / 97.27 +0.82 / +3.37 %
c24, GPUs swapped 133,782 / 95.62 134,150 / 98.75 +0.28 / +3.28 %
c12 69,787 / 129.93 70,269 / 132.64 +0.69 / +2.09 %
c12, GPUs swapped 70,928 / 131.08 69,966 / 132.34 −1.36 / +0.96 %
c2 21,473 / 158.92 21,167 / 196.97 −1.42 / +23.94 %
c2, GPUs swapped 21,302 / 162.06 21,466 / 181.55 +0.77 / +12.02 %
c2, repeat 21,266 / 163.08 21,146 / 198.07 −0.56 / +21.45 %
c2, GPUs swapped, repeat 21,387 / 145.73 21,387 / 195.64 0.00 / +34.24 %
c1 18,282 / 133.77 18,791 / 151.31 +2.78 / +13.11 %
c1, GPUs swapped 18,311 / 138.33 18,560 / 152.59 +1.36 / +10.31 %

The same, thinking on:

Pair A: T / N B: T / N B against A: T / N
c80 274,225 / 31.41 280,169 / 33.86 +2.17 / +7.82 %
c80, GPUs swapped 275,125 / 31.68 280,748 / 33.48 +2.04 / +5.67 %
c48 195,535 / 59.35 199,237 / 62.43 +1.89 / +5.20 %
c48, GPUs swapped 195,958 / 59.29 198,992 / 63.31 +1.55 / +6.79 %
c24 132,316 / 92.27 133,001 / 96.11 +0.52 / +4.16 %
c24, GPUs swapped 132,382 / 93.33 133,013 / 96.37 +0.48 / +3.25 %
c12 69,893 / 128.98 69,690 / 129.52 −0.29 / +0.42 %
c12, GPUs swapped 69,486 / 126.40 69,604 / 129.41 +0.17 / +2.38 %
c2 20,700 / 157.98 21,181 / 193.27 +2.33 / +22.34 %
c2, GPUs swapped 20,768 / 166.66 21,197 / 195.92 +2.07 / +17.56 %
c1 18,303 / 129.72 18,676 / 149.45 +2.04 / +15.20 %
c1, GPUs swapped 18,221 / 125.86 18,989 / 154.33 +4.21 / +22.62 %

Patch 30 (B) against the same settings without it (A), thinking off, 28 and 29's variables unset in both:

Pair A: T / N B: T / N B against A: T / N
c80 271,875 / 31.82 276,759 / 32.35 +1.80 / +1.67 %
c80, GPUs swapped 275,945 / 32.07 276,997 / 32.98 +0.38 / +2.83 %
c48 200,857 / 62.14 199,557 / 63.72 −0.65 / +2.54 %
c48, GPUs swapped 200,951 / 63.72 200,711 / 64.20 −0.12 / +0.76 %
c24 133,030 / 93.43 132,832 / 96.82 −0.15 / +3.63 %
c24, GPUs swapped 132,368 / 93.91 132,172 / 94.72 −0.15 / +0.86 %
c12 67,384 / 121.55 67,141 / 121.12 −0.36 / −0.35 %
c12, GPUs swapped 68,993 / 127.97 68,653 / 127.83 −0.49 / −0.11 %
c2 21,288 / 187.32 21,227 / 194.60 −0.28 / +3.88 %
c2, GPUs swapped 21,417 / 181.87 21,519 / 187.19 +0.47 / +2.93 %
c1 18,555 / 148.11 19,490 / 139.16 +5.04 / −6.04 %
c1, GPUs swapped 18,625 / 149.63 18,682 / 150.94 +0.30 / +0.88 %

c1 and c2, hybrid-cache-checkpoints-level 3 (B) against 2 (A), with SGLANG_AMD_MONO_QWEN38_DRAFT_HEAD_FP8=0 in both:

Pair A: T / N B: T / N B against A: T / N
c2, patches 01-07, 09, 10; A on the lower GPU 21,065 / 160.39 21,146 / 188.26 +0.38 / +17.38 %
c2, patches 01-07, 09, 10; B on the lower GPU 21,430 / 159.06 22,484 / 173.99 +4.92 / +9.39 %
c1, patches 01-07, 09-16, 21-24, 26, 27 18,353 / 121.56 18,615 / 148.55 +1.43 / +22.20 %

The earlier PR's patches on this image (B) against the base PR with patches 09 and 10 (A):

Pair A: T / N B: T / N B against A: T / N
c12 66,126 / 104.92 70,208 / 130.45 +6.17 / +24.33 %
c24 118,608 / 60.80 128,062 / 79.57 +7.97 / +30.88 %
c24, GPUs swapped 127,330 / 72.66 133,602 / 94.57 +4.93 / +30.16 %
c48 165,889 / 35.72 186,867 / 50.29 +12.65 / +40.81 %
c80 212,265 / 21.62 258,378 / 28.98 +21.72 / +34.05 %
c80, repeat 232,367 / 23.48 274,999 / 31.65 +18.35 / +34.76 %
c80, GPUs swapped 231,556 / 23.83 105,077 / 7.12 −54.62 / −70.14 %
c80, GPUs swapped, repeat 231,585 / 24.01 274,606 / 31.67 +18.58 / +31.92 %
  • One MI355X per server and 3600 s per window. The two windows of a pair started together on one node, except patch 30's c80 pairs (4.5 and 17 min apart). Absolute values differ between nodes (thinking-off c80 A: N 31.60 and 29.00; the earlier PR's patches against the base PR, c24 A: 60.80 and 72.66), so compare within a pair.
  • Client: InferenceX's AgentX benchmark (infx.bench agentic) at main fabf7ba3 (agentx-harness 1.0.14; this branch pins 1.0.13, as the base PR does), the 256k-capped trace corpus and an injected acceptance length of 2.32.
  • Images: …-20261117 with each arm's patches applied when the image was built.
    • The B images' patched source trees (SGLang's python/sglang, AITER's aiter/ops and aiter/fused_moe.py, the monokernel package) equal, file for file, what this branch's setup script makes of the stock image's, without and with patch 30 (git apply in the script's order, compared without a GPU).
    • Patch 30's c48 pairs (both arms) and the c80 eval with all settings ran the image without patch 30, with patch 30's two changed files mounted read-only over the image's: the same files as in the image with it.
  • The B windows' server arguments and variables equal what InferenceX's binder and srtctl at fabf7ba3 render from this branch's recipe without language-model-only, except default-chat-template-kwargs in the thinking-off windows and c12's decode graph sizes in the thinking-on windows.
  • Paths: every server with this head's settings logged patch 28's split route and calls and patch 29's four paths (conv, gating, the shared in_proj quant, the norm with the out_proj quant), and no fallback; at c12-c80 each logged one [fused_moe] stage2_fp8: line (patches 22 and 23). With the earlier PR's patches the servers logged amd qsa grouped verify: on, amd qsa flydsl prefill 1: warmed and AMD_ACTIVE s2_mxfp4_pad128, and none logged stays on Triton.
  • Level 3: in the second c2 pair the prefix-cache hit rate is 0.941 against 0.893 and the prompt tokens computed 4.84 M against 8.32 M; in the c1 pair the hit rate is 0.938 against 0.885.
  • The earlier PR's patches' eval: GSM8K at c80 with the eight variables, strict 0.9697, flexible 0.9697; acceptance length 2.471.

Upstream pieces

Every PR open on 2026-11-20.

Patch Change Upstream Variable
09 GDN in_proj_qkvz and in_proj_ba of up to 64 rows: one FP8 quant and one GEMM sglang#50024 on by default; SGLANG_QWEN35_PACKED_IN_PROJ=0 turns it off
10 Qwen3.8-Flash-Next monokernel: QSA index chain, stage placement, TP 1, 2 and 4 launches amd-asalykov/sgl-amd-mono branch asalykov/qfn-mono-tp (no PR) --enable-amd-monokernel; SGLANG_AMD_MONO_QWEN38_DRAFT_HEAD_FP8
11 QSA verify: the four draft rows of a request share each read of a selected compressed-key block sglang#48625 (draft), carrying #46631 SGLANG_AMD_QSA_GROUPED_VERIFY
12 FlyDSL QSA sparse prefill kernels, written into the image's AITER checkout aiter#7556 none (13 calls them)
13 QSA sparse prefill (extend) on patch 12's kernels, compiled by the backend warm-up at start-up sglang#51179 (draft) SGLANG_AMD_QSA_FLYDSL_PREFILL
14 TP1 MXFP4 MoE intermediate aligned to 128 instead of 256 columns, so AITER's tuned FlyDSL rows apply sglang#49852 (draft) SGLANG_AMD_MXFP4_PAD128
15 An earlier revision of patch 26's PR; 26 brings its two files to the PR head sglang#50863 (draft) none on this head (26's variable)
16 QSA indexer prefill: request-relative blocks selected by the exact topk_v2 on unscaled scores; one-stage scoring on gfx95 sglang#50871 + #51263 (drafts) SGLANG_AMD_QSA_PREFILL_TOPK_V2
21 QSA decode, verify and draft extend: blocks selected by the exact topk_v2; draft-extend rows share block reads as in 11 sglang#50871 + #51242 (drafts) SGLANG_AMD_QSA_DECODE_TOPK_V2
SGLANG_AMD_QSA_GROUPED_DRAFT_EXTEND
22 fused_moe(stage2_fp8=True): that call's FlyDSL reduce stage 2 writes FP8 route rows summed in FP32; an MXFP4 scatter stage 2 after an MXMOE stage 1 runs as the reduce of the same tile aiter#8174 (draft) none (23 passes it)
23 Quark MXFP4 MoE passes stage2_fp8=True in every MoE layer except a speculative draft's; the server refuses to start without 22 sglang#51198 (draft) SGLANG_AITER_MOE_STAGE2_FP8
24 GDN ReplaySSM target verify: a q/k prep kernel from 11 requests and a layer-loop commit from 32 sglang#51180 (draft) SGLANG_AMD_GDN_VERIFY
26 Gated hyper-connection sites above 48 rows: Triton kernels on the raw residual, the down projection split-K up to 512 rows and a batched GEMM above sglang#50863 (draft) SGLANG_USE_HIP_HC_PREFILL_TRITON
27 A Quark per-channel FP8 out_proj or o_proj at 1-256 BF16 tokens takes its (FP8, scale) input from the launch before it: the GDN gated RMSNorm or the attention output gate sglang#51023 (draft) none
28 GDN chunked prefill of a batch of 1,024 tokens or more: prep kernels in parallel over the chunks, then a serial state kernel aiter#8329 (draft, an AITER port) SGLANG_AMD_GDN_PREFILL
29 GDN prefill: causal conv, one FP8 quant for both input projections, gated norm with the out_proj quant, gating aiter#8328 + sglang#51658 (drafts) SGLANG_AMD_GDN_PREFILL_FUSED
30 --language-model-only accepts Qwen4ExpForConditionalGeneration; MRoPE takes text (1-D) positions on its Triton kernel through a stride-0 view sglang#51663 (draft) language-model-only: true (server argument)
How each patch differs from its upstream source
  • 09: the PR's own source changes (tests dropped), cut against the …-20261102 image's SGLang; it applies unchanged on this image.
  • 10: the branch's qwen38_flash_next package as the source-only diff from this image's sgl-amd-mono a04ceab, which already has the branch's two shared modules (tests, the README and other models left out). The setup script fails if Python does not import the patched package.
  • 11: opt-in, and one log line per verify size.
  • 12: the PR's files at e6a31510c9; the head 1c8725c7f3 has the same kernel files. The PR's later commits add main's selection-width query (ROCm/aiter#8083), which patch 13 does not call, and change two argument checks of the prefill entry point: a softmax_scale that does not convert to a float is rejected, and the output-overlap check skips the padding between strided K/V rows. The setup script fails if Python imports AITER from anywhere other than the image's editable checkout, which 12 and 22 patch.
  • 13: the same scheme on this image's SGLang; the PR rebuilds it on main behind SGLANG_ROCM_QSA_FLYDSL_PREFILL.
  • 14: the PR's first commit, 624fa95a85, behind the variable.
  • 15: an earlier revision of the PR's kernels; 26 brings its two files to the PR head, so 15's SGLANG_AMD_HC_PREFILL is no longer read.
  • 16: neither PR has a switch on gfx95. The exact selection replaces fast_topk, which can miss blocks in an overfull threshold bin; in batch-invariant mode the selection keeps fast_topk, where sglang#50871 runs topk_v2 in its deterministic mode. It relies on the image's default SGLANG_TOPK_V2_MODE=1.
  • 21: sglang#50871's selection (commit 0e30623971), reworked; neither PR has a switch. The grouped draft extend acts with patch 11's variable.
  • 22: the PR's hunks re-anchored onto the image's AITER 581579ab, which lacks main commits the PR builds on. Two hunks have no counterpart there and are left out: the deterministic=True refusal (this fused_moe takes no deterministic argument) and main's AITER_MXFP4_INTERMEDIATE term in fused_moe_2stages' route-weight condition.
  • 23: unchanged; it applies with offsets on patch 14, which edits the same scheme file. On this image the only stage 2 that 22 and 23 change at c12-c80 is the tuned scatter of the 640-column TP1 MoE at 16,384 tokens; the atomic stage 2s at 1-8,192 tokens stay as they are.
  • 24: the PR has no switch on gfx950. On this image the split and layer-loop kernels take the replay cursors' row strides and follow the image kernels' causal masking (a non-finite rejected draft cannot reach an earlier position), and the commit loads only the committed history. The PLE n-gram commit's dead lengths != 0 compare is skipped under the variable; the PR builds that mask only when read. The GDN layers' compare is already lazy on this image (sgl-project/sglang#48414, merged).
  • 26: the PR targets main, which lacks patch 01 (sglang#48648). Here the Triton path is tried before patch 01's fused decode-sized mix, and the fused mix leaves the Triton path's rows alone: with the variable set the fused mix serves 1-48 rows and the Triton path the rest, and a combine tells the two paths' residuals apart by the row count. Unset, patch 01's fused mix serves 1-128 rows.
  • 27: unchanged; it applies with offsets on patch 24, which edits qwen4_exp.py.
  • 28: the kernels and their route are in SGLang's tree (gdn_split_prefill*.py, called from gdn_aiter_prefill.py), as our windows ran them; the draft moves the kernels into AITER's gdn_fused_prefill behind AITER_GDN_SPLIT_PREFILL.
  • 29: the conv kernel is in SGLang's tree; aiter#8328 puts it in AITER behind AITER_CONV1D_PREFILL_VEC, and sglang#51658 carries the quant and gating fusions on patch 27's PR.
  • 30: unchanged; its changed lines equal the PR's two commits at e3ccb7faad.
Draft-model precision

The MTP layer ships MXFP4 experts, FP8 E4M3 attention and indexer projections, and BF16 hyper-connections, router and norms, and uses the target's BF16 lm_head. The patches that also run on it keep those dtypes:

  • 13: its prefill, with BF16 Q, K and V, as the Triton path.
  • 14: its MoE, padded like the target's: the same MXFP4 bytes, 640 columns instead of 768.
  • 16 and 21: its QSA blocks in draft extend, selected from the same fp32 scores of BF16 queries and keys.
  • 26: its gated hyper-connection sites above 48 rows (prefill, and verify and draft extend from 13 requests), as Triton kernels that accumulate in FP32 and write BF16.
  • 27: where its FP8 attention o_proj qualifies (Quark per-channel weights, per-token activations, 1-256 tokens), the input's FP8 codes and scales come from the output-gate launch, bit for bit the linear's own quant.
  • 30: its rotary embedding of text positions, on the MRoPE Triton kernel instead of forward_native; both cast the cos/sin cache to the query's dtype.

Patches 11 and 24 run on target verify only, and patch 23 leaves the draft's MoE on the default stage 2. Patches 28 and 29 run in the target's GDN layers only; the draft layer is full attention. At c1 and c2 the monokernel runs the draft with SGLANG_AMD_MONO_QWEN38_DRAFT_HEAD_FP8=0, its BF16 lm_head.

Unchanged settings, and this branch against the base PR

Unchanged:

  • Image: lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261117@sha256:09b8237296024285e6286ffb54d75c3af6d59342bbbb3558dea56bed86798814.
  • AITER: the image's 581579ab with FlyDSL 0.4.2 (patches 12 and 22 write into its editable checkout).
  • Patches 01-07.
  • The six points: TP1 c1, c2, c12 and c24 from GPU KV; TP1 c48 and c80 with HiCache DRAM offload.
  • The two GSM8K eval groups (c2 and c80), and every other argument and variable.
The base PR (a6a72472) This branch
SGLang patches 01-07 01-07, 09, 11, 13-16, 21, 23, 24, 26-30
AITER patches – 12, 22
Monokernel the image's sgl-amd-mono a04ceab patch 10 (afbb25a)
Decode CUDA graph sizes (c12-c80) not set every size to the admission at c24; every size to 64, then every 8 to 128 at c48 and c80; c12 not set
SGLANG_AMD_GDN_PREFILL, SGLANG_AMD_GDN_PREFILL_FUSED – every point
language-model-only – every point
strip-thinking-cache, mamba-max-states-per-path 2 c80 c48 and c80
hybrid-cache-checkpoints-level (c1, c2) the image's default 2 3
Thinking kwargs enable_thinking: false removed
AI model disclosure
  • Model/version: claude-opus-5-5 (Claude Code).
  • Role:
    • assembled this branch on the base PR's head from prepared files: patch 09 from chang's monokernel branch, patch 10 rebased onto this image's sgl-amd-mono, patches 11-27 ported to this image, 28 and 29 cut from the image our windows ran, and 30 from sglang#51663;
    • checked that the 24 patches apply in the setup script's order on the stock image's sources and that the result equals, file for file, the images the validation windows served;
    • checked the server arguments and variables that InferenceX's binder and srtctl render from this branch's recipe against those windows', and ran the changelog and matrix checks;
    • wrote this description.
  • Patch 10's rebase, the port of patches 11-27 to this image and the validation windows were prepared in earlier Claude Code sessions whose exact model could not be verified here.
PR checklist and change type

Type of Change

  • Bug fix
  • New feature
  • Configuration change
  • Documentation update
  • Other (please describe)

Checklist

  • I have completed the AI model disclosure and kept it current
  • I have tested my changes locally
  • I have updated documentation if necessary
  • If python -m infx.matrix.changed --base origin/main lists affected config keys, I have appended one new entry covering them to the physical end of inferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entries
  • If this PR appends an inferencex-e2e/perf-changelog.yaml entry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs): full-sweep-fail-fast (recommended), full-sweep-enabled, or non-canary-full-sweep-enabled. Optional modifiers all-evals, evals-only, and agentx-fast require a primary label; the last two block reuse while applied.
  • Before merging via reuse, a maintainer with write access to the repository has commented /use <run_id> (or the legacy /reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.
中文

状态(2026-11-20): 尚未在 InferenceX 中运行。下文的验证来自我们在该镜像上自行运行的服务窗口;本 head 的 InferenceX 运行完成后将以其取代。

概要

本 PR 在 SemiAnalysisAI/InferenceX#4832(下称“基线 PR”)的 MI355X Qwen3.8-Flash-Next FP4 SGLang AgentX 配方(qwen3.8next-fp4-mi355x-sglang-agentic-mtp)之上加入 17 个补丁:

补丁 内容 测试点
09、10 取自 chang 的 monokernel 分支 chang/qwen3.8-flash-fp4-mi355x-update-monokernel(基线 PR 没有):打包的 GDN 输入投影(09)与更新后的 monokernel(10) 09:c12-c80;10:c1、c2
11-16、21-24、26-29 gfx950 内核(除 27 外均为可选):QSA attention(11-13、16、21)、MXFP4 MoE(14、22、23)、hyper-connection prefill(15、26)、GDN verify 与 prefill(24、28、29),以及 GDN 与 attention 输出投影的 decode FP8 量化(27) 11-26:c12-c80;27-29:全部
30 以纯文本模型运行该 checkpoint 全部,配合 language-model-only

除 10(取自一个分支)外,每个新增补丁都有尚未合并的上游 PR,见“上游组件”。28 与 29 的内核位于 SGLang 源码树中,与我们的窗口所运行的相同;它们的 draft PR 把 28 的内核与 29 的卷积内核移入 AITER。

  • 基线: 基线 PR 的 head a6a72472(本 fork 中为 base/chang-qwen38-refactor):镜像 lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261117,使用镜像自带的 AITER。基线 PR 在该镜像上还没有 e2e run;其最近一次 e2e run 42802324736 基于较早的 head 13f2b0e3(镜像 …-20261102)。
  • 不用于合并: 配方会给推理引擎打补丁,而 PR review checklist 只允许附带 inferencex-e2e/docs/waiver/<PR>.md 豁免说明的补丁。本分支没有提交豁免说明,这些补丁也不在任何 lmsysorg 镜像中。本分支用于一次非官方运行。
  • 较早版本: eppaneamd/InferenceX#1(下称“早先 PR”)包含 …-20261102 镜像上的补丁 11-16、21 与 24;其 head 合入 main 后的非官方运行为 44408546542。本分支相对它新增的内容见“改动”。

改动

相对早先 PR(本分支把其八个补丁移植到本镜像):

相对早先 PR 新增 补丁或设置 测试点
MXFP4 MoE stage 2 写出以 FP32 求和的 FP8 路由行 22、23 c12-c80
超过 48 行的 hyper-connection 位置使用 Triton 内核,取代 15(同一 PR 的较早版本) 26 c12-c80
GDN 与 attention 输出投影的 decode FP8 量化取自其前一个 launch 27 全部
GDN chunked prefill 拆为并行的 prep 内核与串行的状态内核 28 全部
GDN prefill 的卷积、输入投影量化、gated norm 与 gating 内核 29 全部
以纯文本模型运行该 checkpoint 30、language-model-only 全部
decode CUDA graph 覆盖到准入上限的每个 batch size:c24 为 1-48;c48 与 c80 为 1-64,此后每 8 个直到 128 cuda-graph-bs-decode c24-c80
strip-thinking-cache 与 mamba-max-states-per-path 2(c80 已设置) 服务器参数 c48
在每个 prefill chunk 与 decode tracking 边界处保存 Mamba 状态,而不只是在分支点与请求结束处(默认的 level 2) hybrid-cache-checkpoints-level 3 c1、c2
  • 26 接管 15 的开关,因此 c12-c80 设置九个变量(早先 PR 为八个)。补丁 09 与 10 来自早先 PR 的基线,即 chang 的 monokernel 分支。c1 与基线 PR 一样只在 TP1 上运行(早先 PR 还有 TP2 与 TP4)。
  • 补丁 09 与 10 在基线 PR 的 01-07 之后应用,然后依次为 11-16、21 与 24,再为 22、23 与 26-30(qwen3.8next-rocm10-patches.sh)。编号 08、17-20 与 25 不在本分支中。
  • 11-26、28 与 29 中的每个补丁在未设置对应变量时不生效(12 与 22 加入的 AITER 代码只由 13 与 23 调用);27 没有变量;30 在 language-model-only 下生效。每个补丁文件的头部注明其上游来源、head commit 以及与之的差异。
  • c12-c80 设置 11-26 的九个变量(见“上游组件”);c1 与 c2 均不设置,在这两个测试点由 monokernel 执行 11、14、21 与 24 所改动的 decode、verify 与 draft 步骤。每个测试点都设置 28 与 29 的 SGLANG_AMD_GDN_PREFILL 与 SGLANG_AMD_GDN_PREFILL_FUSED,以及 language-model-only: true,使服务器跳过视觉塔的权重。
  • c1 与 c2 与 chang 的 monokernel 分支一样设置 SGLANG_AMD_MONO_QWEN38_DRAFT_HEAD_FP8=0(MTP draft 的 lm_head 以发布时的精度运行,而不是补丁 10 的 FP8 副本)与 SGLANG_QWEN35_PACKED_IN_PROJ=0(关闭补丁 09)。
  • 除补丁 23 在目标模型 MoE stage 2 中使用 FP8 路由行(以 FP32 求和;draft 的 MoE 保持默认)外,没有补丁降低任何权重或激活的数据类型。
  • 删除 default-chat-template-kwargs: '{"enable_thinking": false}',与 main 上的条目一致:服务器采用 chat template 的默认设置,即 harness 注入的 acceptance length 所对应的 thinking 模式。
  • 相对基线 PR 不变的部分:镜像、AITER 与 FlyDSL 的版本、补丁 01-07、六个测试点、两个 GSM8K 评估组,以及其他所有参数与变量(明细见上方“Unchanged settings, and this branch against the base PR”)。

验证

每一对的两个窗口在同一节点上一起运行;逐对数据见上方“Validation details”。

  • B = 本 head 不含补丁 30。
  • A = 本镜像上的早先 PR 补丁,即本 PR 的上一个 head:补丁 01-07、09-16、21 与 24;c12-c80 设置其八个变量,c1 与 c2 让 draft head 以发布时的精度运行。
  • 因此 B 对比 A 即本分支相对早先 PR 新增的部分(不含补丁 30)。
测试点 B 对比 A,thinking 关闭(基线配方的设置) B 对比 A,thinking 开启(本分支的设置) 补丁 30 对比不含它的相同设置
c80 +3.01 / +5.60 % +2.11 / +6.74 % +1.08 / +2.25 %
c48 +1.54 / +7.06 %(三对) +1.72 / +5.99 % −0.38 / +1.64 %
c24 +0.55 / +3.32 % +0.50 / +3.71 % −0.15 / +2.24 %
c12 −0.34 / +1.52 % −0.06 / +1.39 % −0.43 / −0.23 %
c2 −0.31 / +22.61 %(四对) +2.20 / +19.88 % +0.10 / +3.41 %
c1 +2.07 / +11.69 % +3.12 / +18.86 % +2.67 / −2.56 %
  • 单元格:每 GPU 的总 token 吞吐量(T)/ P90 E2E-normalized interactivity(N),与明细表相同,除注明外为两种 GPU 顺序合并。补丁 30 的窗口对两侧都不设置 28 与 29 的变量。
  • 在噪声范围内:
    • thinking 关闭时的 c12(其第二种 GPU 顺序 T 为 −1.36 %,略超出该顺序的噪声);
    • thinking 开启时的 c12(其 B 窗口还设置了 1-24 的 decode graph 尺寸,而本分支在 c12 保持镜像的尺寸);
    • 补丁 30 的 c48(其第一种 GPU 顺序 N 为 +2.54 %,略超出该顺序的噪声)、c12 与 c1。
  • 合并后在噪声范围内、但每种 GPU 顺序单独都超出噪声的:thinking 关闭时的 c80(两种顺序在两个节点上运行,A 的 N 为 31.60 与 29.00)与补丁 30 的 c2。
  • 在 c2,相同设置的窗口之间 N 也会变化(四次重复为 −10.1 % 至 +7.8 %):客户端按相同顺序重放相同的 trace,但每个 lane 在上一个 trace 结束后才开始下一个,因此同时运行的请求不同。thinking 关闭的四对中 A 的 N 为 145.7 至 163.1,B 为 181.6 至 198.1。
  • 本镜像上的早先 PR 补丁对比基线 PR 加补丁 09 与 10(A 不设置这八个变量):c12-c80 的七对窗口中 N +24.3 % 至 +40.8 %,T +4.9 % 至 +21.7 %。第八对(c80,交换 GPU)中打补丁的服务器在窗口中途变慢(N −70.1 %,原因未查明);在同一 GPU 上的重复运行为 N +31.9 %。
  • 精度,GSM8K(1,319 题,下限 0.90;acceptance length 对比 golden 2.32,该检查仅作报告):
    • 使用本 head 全部设置的 c2:strict 与 flexible 均为 0.9689,acceptance length 2.729;与 level 3 但不含补丁 28-30 的 c2(0.9704)相比:7 题变差、5 题变好,McNemar p 0.77。
    • 使用本 head 全部设置的 c80:0.9719 与 0.9719,acceptance length 2.482;与不含补丁 28-30 的 c80(0.9697)相比:8 题变差、11 题变好,p 0.65。

逐对数据、运行条件、日志中的路径与 checkpoint level 的对比见上方“Validation details”。

上游组件

各补丁的改动、上游来源(相关 PR 在 2026-11-20 均未合并)与变量见上方表格。与上游来源的差异:

  • 09:该 PR 自身的源码改动(不含测试),基于 …-20261102 镜像的 SGLang 生成,可在本镜像上原样应用。
  • 10:该分支的 qwen38_flash_next 包,以相对本镜像 sgl-amd-mono a04ceab 的纯源码差异给出;a04ceab 已包含该分支的两个共享模块(不含测试、README 与其他模型)。若 Python 导入的不是打过补丁的包,setup 脚本失败。
  • 11:可选开启,并且每种 verify 尺寸输出一行日志。
  • 12:该 PR 在 e6a31510c9 的文件;head 1c8725c7f3 的内核文件相同。该 PR 之后的提交加入了 main 的 selection-width 查询(ROCm/aiter#8083,补丁 13 不调用),并修改了 prefill 入口的两项参数检查:无法转换为 float 的 softmax_scale 会被拒绝;输出重叠检查跳过跨步 K/V 行之间的填充。若 Python 从 12 与 22 所修改的镜像可编辑 AITER 源码目录以外的位置导入 AITER,setup 脚本失败。
  • 13:同一方案在本镜像 SGLang 上的实现;该 PR 在 main 上重建该方案,开关为 SGLANG_ROCM_QSA_FLYDSL_PREFILL。
  • 14:该 PR 的第一个 commit(624fa95a85),由变量控制。
  • 15:该 PR 内核的较早版本;26 把其两个文件更新到该 PR 的 head,因此 15 的 SGLANG_AMD_HC_PREFILL 不再被读取。
  • 16:两个 PR 在 gfx95 上都没有开关。精确选择取代 fast_topk,后者在过满的阈值分桶中可能漏选 block;batch-invariant 模式下选择仍用 fast_topk,而 sglang#50871 在该模式下以确定性模式运行 topk_v2。它依赖镜像默认的 SGLANG_TOPK_V2_MODE=1。
  • 21:sglang#50871 的选择(commit 0e30623971),已重做;两个 PR 都没有开关。grouped draft extend 需与补丁 11 的变量一起生效。
  • 22:该 PR 的 hunk 重新定位到镜像的 AITER 581579ab 上,后者缺少该 PR 所基于的若干 main commit。有两个 hunk 在那里没有对应位置,因此未包含:deterministic=True 的拒绝(该 fused_moe 没有 deterministic 参数),以及 main 在 fused_moe_2stages 路由权重条件中的 AITER_MXFP4_INTERMEDIATE 项。
  • 23:未改动;它在补丁 14(修改同一 scheme 文件)之上以偏移量应用。在本镜像上,22 与 23 在 c12-c80 唯一改变的 stage 2 是 TP1 下 640 列 MoE 在 16,384 个 token 时经过调优的 scatter;1-8,192 个 token 时的 atomic stage 2 保持不变。
  • 24:该 PR 在 gfx950 上没有开关。在本镜像上,拆分与 layer-loop 内核使用 replay 游标的行步长,并沿用镜像内核的因果掩码(被拒绝的 draft 中的非有限值不会传到更早的位置),commit 只读取已提交的历史。PLE n-gram commit 中无效的 lengths != 0 比较在变量开启时被跳过;该 PR 只在读取时才构建该掩码。GDN 层的该比较在本镜像上已是惰性的(sgl-project/sglang#48414,已合并)。
  • 26:该 PR 基于 main,而 main 缺少补丁 01(sglang#48648)。这里先尝试 Triton 路径,再尝试补丁 01 的 decode 尺寸融合 mix,且融合 mix 不处理 Triton 路径的行:设置变量时,融合 mix 处理 1-48 行,Triton 路径处理其余行,combine 按行数区分两条路径的残差。未设置时,补丁 01 的融合 mix 处理 1-128 行。
  • 27:未改动;它在补丁 24(修改 qwen4_exp.py)之上以偏移量应用。
  • 28:内核及其路由位于 SGLang 源码树中(gdn_split_prefill*.py,由 gdn_aiter_prefill.py 调用),与我们的窗口所运行的相同;该 draft 把这些内核移入 AITER 的 gdn_fused_prefill,开关为 AITER_GDN_SPLIT_PREFILL。
  • 29:卷积内核位于 SGLang 源码树中;aiter#8328 把它放入 AITER,开关为 AITER_CONV1D_PREFILL_VEC;sglang#51658 在补丁 27 的 PR 之上承载量化与 gating 融合。
  • 30:未改动;改动行与该 PR 在 e3ccb7faad 的两个 commit 相同。

Draft 精度

MTP 层发布时为 MXFP4 专家、FP8 E4M3 的 attention 与 indexer 投影、BF16 的 hyper-connection、router 与 norm,并使用目标模型的 BF16 lm_head。也作用于该层的补丁保持这些数据类型:

  • 13:作用于其 prefill,Q、K、V 为 BF16,与 Triton 路径相同。
  • 14:与目标模型相同地对其 MoE 做 padding:MXFP4 字节不变,640 列而非 768 列。
  • 16 与 21:在其 draft extend 中用同样的 fp32 分数(BF16 的 query 与 key)选择 QSA block。
  • 26:作用于其超过 48 行的 gated hyper-connection 位置(prefill,以及 13 个请求起的 verify 与 draft extend),Triton 内核以 FP32 累加并写出 BF16。
  • 27:当其 FP8 attention o_proj 满足条件(Quark per-channel 权重、per-token 激活、1-256 个 token)时,输入的 FP8 码值与 scale 来自 output gate 的 launch,与该线性层自身的量化逐位相同。
  • 30:其对文本位置的旋转位置编码改走 MRoPE 的 Triton 内核,而不是 forward_native;两者都把 cos/sin cache 转换为 query 的数据类型。

补丁 11 与 24 只作用于目标模型的 verify,补丁 23 让 draft 的 MoE 保持默认的 stage 2。补丁 28 与 29 只作用于目标模型的 GDN 层;draft 层为 full attention。在 c1 与 c2,monokernel 以 SGLANG_AMD_MONO_QWEN38_DRAFT_HEAD_FP8=0(BF16 lm_head)运行 draft。

AI 模型使用说明

  • 模型/版本:claude-opus-5-5(Claude Code)。
  • 工作内容:基于预先准备的文件在基线 PR 的 head 上组装本分支(补丁 09 取自 chang 的 monokernel 分支,补丁 10 已 rebase 到本镜像的 sgl-amd-mono,补丁 11-27 已移植到本镜像,补丁 28 与 29 取自我们的窗口所用的镜像,补丁 30 取自 sglang#51663);检查 24 个补丁能按 setup 脚本的顺序应用到原版镜像的源码上,且结果与验证窗口所用的镜像逐文件一致;检查 InferenceX 的 binder 与 srtctl 从本分支配方渲染出的服务器参数与变量与这些窗口一致,并运行 changelog 与 matrix 检查;撰写本说明。
  • 补丁 10 的 rebase、补丁 11-27 向本镜像的移植以及验证窗口由更早的 Claude Code 会话准备,其具体模型无法在此确认。

改动类型:配置变更。

🤖 Generated with Claude Code

eppaneamd and others added 7 commits November 19, 2026 21:26
…patch 10) on the 20261117 image

- 09 packs the GDN in_proj_qkvz / in_proj_ba of up to 64 rows into one FP8 quant and one
  GEMM (sgl-project/sglang#50024), the file of chang/qwen3.8-flash-fp4-mi355x-update-monokernel
  (3a24884), which applies unchanged on the image's SGLang c67db7c762
- 10 updates the image's Qwen3.8-Flash-Next monokernel to amd-asalykov/sgl-amd-mono
  asalykov/qfn-mono-tp (afbb25a), the source-only diff from the image's sgl-amd-mono a04ceab

The setup script applies both after patch 07 and checks that the patched monokernel is the
one Python imports; c1 and c2 set SGLANG_QWEN35_PACKED_IN_PROJ=0. The search space is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rony Leppänen <rony.leppanen@amd.com>
…draft head at its shipped precision

Patches 11-16, 21 and 24 add opt-in kernels, each off unless the recipe sets its SGLANG_AMD_*
variable; c12, c24, c48 and c80 set all eight:
- 11 grouped QSA verify scoring (sgl-project/sglang#48625, carries #46631)
- 12-13 FlyDSL QSA sparse prefill (ROCm/aiter#7556 kernels in the image's AITER checkout,
  sgl-project/sglang#51179 wiring)
- 14 MXFP4 MoE intermediate kept 128-aligned at TP 1 (sgl-project/sglang#49852)
- 15 Triton HC prefill path (sgl-project/sglang#50863)
- 16 QSA indexer prefill blocks selected by the exact topk_v2, one pipeline stage on gfx95
  (sgl-project/sglang#50871, #51263)
- 21 QSA decode, verify and draft-extend blocks selected by the exact topk_v2, draft-extend
  rows scored grouped as in verify (sgl-project/sglang#50871, #51242)
- 24 GDN ReplaySSM verify and commit kernels (sgl-project/sglang#51180)

c1 and c2 set SGLANG_AMD_MONO_QWEN38_DRAFT_HEAD_FP8=0, and the recipe drops
default-chat-template-kwargs so the server serves the chat template's default thinking mode.
The setup script uses set -eo pipefail (AGENTS.md Bash: no nounset).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rony Leppänen <rony.leppanen@amd.com>
…ithin the admission

Patches 22, 23, 26 and 27; c12, c24, c48 and c80 set their two variables:
- 22-23 FP8 stage-2 route output for the target's MXFP4 MoE (ROCm/aiter#8174 in the image's
  AITER checkout, sgl-project/sglang#51198 wiring), SGLANG_AITER_MOE_STAGE2_FP8
- 26 brings patch 15 to the head of sgl-project/sglang#50863; SGLANG_USE_HIP_HC_PREFILL_TRITON
  replaces SGLANG_AMD_HC_PREFILL, which 26 no longer reads
- 27 decode FP8 quant fused into the GDN gated norm and the attention output gate
  (sgl-project/sglang#51023), no variable

cuda-graph-bs-decode at c12-c80: every size to the admission at c12 and c24, every size to 64
and every 8 to 128 at c48 and c80. c48 also sets strip-thinking-cache and
mamba-max-states-per-path 2, as c80 does. Patch 12's header names ROCm/aiter#7556's head
1c8725c7f3 and how the patch differs from it. c1 and c2 are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rony Leppänen <rony.leppanen@amd.com>
…and c2

c1 and c2 set hybrid-cache-checkpoints-level 3 instead of the image's default level 2 (branch
points and request ends, one state per path), so the prefix cache recomputes fewer prompt
tokens. c12, c24, c48 and c80 keep the default level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rony Leppänen <rony.leppanen@amd.com>
c12 no longer lists every decode batch size to its admission of 24 (cuda-graph-bs-decode) and
captures the image's default sizes, as before patches 22-27. c24, c48 and c80 keep their lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rony Leppänen <rony.leppanen@amd.com>
…ches 28, 29)

Patches 28 and 29, in the forms the validation windows ran (their kernels in SGLang's tree);
every point sets both variables:
- 28 runs the fused FlyDSL GDN chunked prefill for a batch of 1,024 tokens or more as prep
  kernels in parallel over the chunks plus a serial state kernel, bit for bit the fused
  kernel's outputs and tracked states; SGLANG_AMD_GDN_PREFILL (ROCm/aiter#8329 ports the
  kernels into AITER)
- 29 runs the GDN prefill's causal conv, one FP8 quant for in_proj_qkvz and in_proj_ba, the
  gated norm with the out_proj quant, and the gating on new kernels;
  SGLANG_AMD_GDN_PREFILL_FUSED (ROCm/aiter#8328, sgl-project/sglang#51658)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rony Leppänen <rony.leppanen@amd.com>
…ge-model-only)

Patch 30 is sgl-project/sglang#51663 (both commits): Qwen4ExpForConditionalGeneration joins the
architectures --language-model-only accepts, and MRoPE sends text positions to its Triton
kernel through a stride-0 view instead of forward_native. Every point sets
language-model-only, so the server skips the vision tower's weights.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rony Leppänen <rony.leppanen@amd.com>
maeehart added a commit to SemiAnalysisAI/InferenceX that referenced this pull request Nov 24, 2026
The entry came from eppaneamd#2 with a placeholder link. This
branch is carried by #5133.
maeehart added a commit to SemiAnalysisAI/InferenceX that referenced this pull request Nov 24, 2026
The tree of this commit is eppaneamd#2 (80f4669, Rony Leppanen's
updated package) rebased onto the current head of #4832 (3f7ca2d), with the
changelog entry linked to #5133. The previous content (ba2e5a9) stays in the
history as the first parent instead of being force-pushed away.
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.

1 participant