Skip to content

qwen3.8-27b: note how nvidia/Qwen3.8-27B-NVFP4-QAD loads - #402

Merged
AzeezIsh merged 2 commits into
mainfrom
docs/qwen3.8-27b-qad
Nov 22, 2026
Merged

AzeezIsh merged 2 commits into
mainfrom
docs/qwen3.8-27b-qad

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

This PR changes comments only, in kernels/gb10/qwen3.8-27b/MODEL.toml. It records how NVIDIA's QAD checkpoint nvidia/Qwen3.8-27B-NVFP4-QAD (rev cd46ab5) loads on this target. SparkQwen made that checkpoint its 27B default in Enntity/sparkqwen#47. cc @data-angel

No engine change is needed. The QAD id resolves to qwen3.8-27b through match_names and serves correctly on main 269b533.

The note records a shard-header diff against nvidia/Qwen3.8-27B-NVFP4:

  • Partial MTP head: 4 of 15 mtp.* tensors are missing, so --speculative serves serially. A graft from stock makes MTP exact, but DFlash2 is faster through C2 (see the comment below).

  • GDN: NVFP4 in 38 of 48 layers. The other 10 layers (0-2, 4, 5, 57, 58, 60-62) are FP8 and stay native FP8 by default.

  • Attention: FP8 per-tensor. Keeping it as stored with ATLAS_DENSE_NATIVE_FP8_ATTN=1 measured better:

    stock checkpoint QAD, attention re-rounded QAD, attention as stored
    bfcl-subset 88.74 88.14 89.25
    engine NLL 0.852 0.835 0.829
  • Other differences: input_scale is shaped [1], and config.json carries a kv_cache_scheme that Atlas does not read.

Verification: sparky GB10, jobs 150b / 152 / 153.

🤖 Generated with Claude Code

The QAD checkpoint (SparkQwen's 27B default since Enntity/sparkqwen#47)
resolves to this target and loads with no engine change. Record what a
shard-header diff against nvidia/Qwen3.8-27B-NVFP4 found: no MTP head
(--speculative falls back to serial decode, so serve it with DFlash2),
NVFP4 GDN in 38 of 48 layers with FP8 kept native in the other ten, FP8
attention re-rounded unless ATLAS_DENSE_NATIVE_FP8_ATTN=1, and the
ignored kv_cache_scheme.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
11 of 15 mtp.* tensors ship, byte-identical to the stock checkpoint's; mtp.fc,
mtp.norm and pre_fc_norm_{embedding,hidden} are missing. A graft of those 4
rebuilds the head and MTP runs exact. DFlash2 is still faster through C2 and
on agentic turns (sparky jobs 154/155).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

Correction plus an MTP-vs-DFlash2 measurement (sparky GB10, main 269b533 native build, this recipe's env; jobs 154/155). cc @data-angel

The QAD checkpoint's MTP head is partial, not absent:

  • model-00064 ships 11 of the 15 mtp.* tensors, byte-identical to nvidia/Qwen3.8-27B-NVFP4@482ca0f.
  • The export drops mtp.fc, mtp.norm, mtp.pre_fc_norm_embedding and mtp.pre_fc_norm_hidden.
  • Atlas gates on mtp.fc.weight, so --speculative alone serves serially.

Grafting those 4 tensors back from the stock checkpoint (104.9 MB, plus a merged index) rebuilds the stock head exactly. The base model is untouched: serial output on the graft directory equals the QAD serial run 8/8, with and without a shared prefix.

DFlash2 (recipe) MTP graft (--num-drafts 3 --mtp-quantization bf16)
greedy == serial C1/C8/C1p/C8p 8/8 ×4 8/8 ×4
decode-floor tok/s (accept) 56.1 (5.11) 31.6 (2.88)
C1 decode prose / code / json 29.5 / 49.7 / 45.3 25.6 / 31.3 / 31.4
aggregate C1 / C2 / C4 / C8 30.6 / 48.8 / 72.1 / 89.4 25.1 / 45.9 / 73.3 / 100.9
agentic-webserver 10/10, 5.66–5.96 s/turn 10/10, 10.26 s/turn
KV blocks at 64 seqs / 262K 28,041 47,835
  • Verdict: DFlash2 wins single-stream, through C2 and on agentic turns. The two tie at C4, and MTP leads only at C8 aggregate.
  • Recipe change: none. It stays on DFlash2, and its serve flags are unchanged, so the sparkrun vet still holds.
  • Text fixes: the recipe description and README now describe the partial head and include this table (sparkrun-recipes 964c476). The MODEL.toml note in atlas#402 is corrected the same way (b8f5361).
  • Rerun: the first MTP agentic run returned an empty JSON after 73 s. The rerun (job 155) is the number above.

@AzeezIsh
AzeezIsh merged commit 7e06837 into main Nov 22, 2026
23 of 26 checks passed
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