Repository navigation
qwen4_exp: ATLAS_QWEN4EXP_SERVING_MODE=strict|spark serving-contract validation (default unset; ported from Enntity) - #229
Merged
Conversation
This was referenced Oct 28, 2026
Contributor
Author
|
Pair check vs parent (binary 6350e73c, two GB10s, rc16 resident profile):
|
1 of 2 tasks
AzeezIsh
force-pushed
the
stack/tool-call-guard
branch
from
October 29, 2026 04:44
c643812 to
a9770b5
Compare
AzeezIsh
force-pushed
the
stack/strict-mode
branch
from
October 29, 2026 04:44
220db42 to
c6adecd
Compare
AzeezIsh
force-pushed
the
stack/tool-call-guard
branch
from
October 29, 2026 07:12
a9770b5 to
c681361
Compare
AzeezIsh
force-pushed
the
stack/strict-mode
branch
4 times, most recently
from
October 29, 2026 07:29
80d3980 to
2aed61a
Compare
… modes Explicit strict|spark mode for the Qwen FP4-Local TP2/EP2 pair: a closed flag contract (REQUIRED_FLAGS + the per-mode draft-head switch), config topology checks, native-MTP speculation requirement, fast-load + early topology validation in the serve preflight, startup-parity registration, and MTP load/proposer failures promoted to errors while a mode is set. Strict keeps the BF16 draft head (DRAFT_HEAD_NVFP4=0); Spark selects the NVFP4 draft copy (DRAFT_HEAD_NVFP4=1). Unset retains all current behavior. Ported from Enntity/atlas weight_loader/qwen4_exp/mode.rs + qwen_mode_tests.rs (AGPL-3.0-only). Stack adaptations, all noted in the file header: MXFP8_DECODE, PREFILL_W8A8 and MTP_BF16_ATTN have no implementation here and are dropped from the contract; the corrected-RNE quantizer (quantize_bf16_to_nvfp4_weight_rne) is not in this stack, so weight_quantizer() always names the standard converter — Spark's draft copy does not carry Enntity's rounding guarantee.
AzeezIsh
force-pushed
the
stack/tool-call-guard
branch
from
October 29, 2026 07:30
c681361 to
c156541
Compare
AzeezIsh
force-pushed
the
stack/strict-mode
branch
from
October 29, 2026 07:30
2aed61a to
590c18d
Compare
AzeezIsh
marked this pull request as ready for review
October 29, 2026 08:03
This was referenced Oct 29, 2026
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.
Stack: main ← #198 ← #223 ← #224 ← #226 ← #227 ← this.
Summary
weight_loader/qwen4_exp/mode.rs(AGPL-3.0, SparkQwen's engine @d0cead1) with credit.ATLAS_QWEN4EXP_SERVING_MODE=strict|sparkvalidates the serving contract at startup: qwen4_exp at TP2/EP2 without expert-TP; checkpoint LM head; native MTP required with no alternate draft lanes; a pinned set of required flags; and the per-mode drafter flags (DRAFT_HEAD_NVFP4). Startup-parity registered. Unset (default) = no change.factory/build.rs(MTP load/proposer failures become errors under a mode),preflight/independent.rs, and the startup parity table.MXFP8_DECODE,PREFILL_W8A8andMTP_BF16_ATTN, which don't exist upstream yet. They're dropped from the contract here and come back with the PRs that add those features.weight_quantizer()returns the standard converter, because the corrected-RNE kernel isn't upstream either (noted in the file header).Test plan (vs parent #227)
qwen4_exp::mode2/2,qwen_modespreflight 2/2 (reiner)ATLAS_QWEN4EXP_SERVING_MODE=strict: reaches serving, MTP loaded, parity row set; greedy C1 == parent's serial refs (queued after the GLM qualification J33)Tracking: #220.
Generated with Devin