Repository navigation
Open
Description
P0: get SparkQwen and SparkGLM running on Atlas main. The plan is to land #198 (Qwen, 2 GPUs) and #199 (GLM), then upstream what's still missing as focused, default-off, gated PRs. This issue is the single place to resume from; every step links its branch/PR here.
Sequence and status
| # | Step | Branch / PR | Status |
|---|---|---|---|
| 1 | #198 + the #218 fix (mxfp8_proj row-invariant under ROWINV; cached == uncached) |
feat/fp4-local-tp2 @ ec3e2597d (fast-forwarded from 0164cce9c), #198 |
pushed; needs review/merge |
| 2 | Unblock CI on main: cargo deny (RUSTSEC-2026-0381/0382/0386), kernel shadow structure, PR benchmark gate |
one small PR each, off main |
in progress |
| 3 | #199 (GLM native prefill + FP4-Local, @Mango-kid) rebased onto main + #198: 12 conflicted files (fast_weights ×3, moe ×2, api, nvfp4_detect, weight_map, weight_loader, spark-model root, config parsers) |
port/199-on-198, credited PR stacked on #198 |
in progress |
| 4 | Build SparkQwen / SparkGLM images on main + #198 + #199 and run their qualification suites on the two-GB10 pair | — | after 3 |
| 5 | PRs for what's missing (order): MTP drafter series + queued first chunks (gated in #216: perf/fp4l-mtp-absorb @ 392264cb2+credit fix b46d4567d, perf/prefill-queue-first-chunk @ adeb4d1b5); tool-call guard crate; Strict/Spark mode; literal tool-XML; vision admission (row budgets + 503, on top of #180); display carveout; video; #55 loop repair; RDMA/DFlash (needs reconciliation). Skip copy drafts (shipped off). Each PR includes the 500-LoC splits for files it touches |
per PR | after #198 merges |
Context
- Overlap analysis (SparkQwen side): shared base
7ffd183f, 708 files diverged, 573 only ours, 242 only upstream. Upstream changes the products pick up: Nemotron 3.5 VL, Strix/HIP, exact-hit resume, scheduler: re-measure a full window after a regime change before the MTP gate probes (concurrency-sweep bimodal on main) #200, scheduler: let tool-grammar sequences ride the batched MTP verify (agent traffic verified one request at a time) #203, lm_head alias fix, deps. - Measurements behind the Qwen choices: qwen4_exp TP=2 profile: routed-MoE prefill runs NVFP4 experts at E4M3 (canonical NLL 1.0843 vs 1.0511 with exact weights) #214 (prefill numerics: shipped E4M3 default kept), TP=2 Flash-Next: SparkQwen engine ports as opt-ins (W4A4 prefill, MTP drafter absorb, queued first chunks) — tracking + results #216 (ports: drafter +12% decode, +19% at 4 concurrent agents; queued first chunks −20% summed TTFT), prefix cache: restored conversation turns differ from uncached at --max-prefill-tokens 1024 (Flash-Next TP=2, ROWINV); ssm-state-poisoning passes it as 'jittered' #218 (cache exactness bug + fix).
- Pair receipts: reiner
~/code/night1027/(RESULTS.txt, out/j*/). Lead log:~/code/fp4local-tp2/NIGHT-1027.mdon the owner's Mac.
Metadata
Metadata
Assignees
Labels
No labels
Activity
AzeezIsh commentedon Oct 28, 2026
Status (start of the 10-hour queue on reiner + spark2)
port/199-on-198pushed (merge8fc1a964c+ resolution notes06ba5f6d5indocs/ports/199-on-198.md). All 12 conflicts resolved keeping both sides; post-merge compile fixes (Mxfp8Weight.tiled,native_opener, atlas-core test adaptations);cargo checkclean on atlas-core / spark-runtime / spark-model / spark-server. Build (Qwen + GLM-5.3-Flash targets) + host tests: job 900.port/199-on-198;ec3e2597d, which becomes the serving default: decode-floor ×3, sparkDash ×2, cold TTFT, BFCL ST-995, MLPerf agentic at C1 and C4;ci/deny-rustsec-2026-10; diagnosis of the kernel-shadow-structure and PR-benchmark-gate checks.~/code/night1027/RESULTS.txt,out/j27,out/j30-*. I'll post results here as they land.AzeezIsh commentedon Oct 28, 2026
PRs opened:
cargo deny check advisoriesok).check_kernel_shadows.pyOK).a92287617after the deny-warnings fixes; noted on glm: add native prefill and FP4-Local support for dual DGX Spark #199.PR benchmark gate: diagnosis only. It invalidates all bench records whenever a PR changes device code. #198 touches Cargo.lock, so 34 targets' device code counts as changed, and there's no
governance/pr-198.jsonlintent record. It needs fresh gate records, not a code fix.Queue on the pair:
AzeezIsh commentedon Oct 28, 2026
PR structure: linear stack (owner's rule: one change per PR; each PR's base is the PR below it; rebased with git; each PR measured against its parent only; no re-running benchmarks that already have receipts):
stack/qwen-mtp-absorbgit range-diffis cleanstack/qwen-queue-first-chunkBeing built now: PRs 3 and 4 as rebased branches, with
git range-diffagainst the measured branches, compile + host tests, and one CUDA build of the top. The earlierinteg/*branches are retired. Cancelled as unnecessary re-runs: J27 (#198 re-bench), J13b, J31.AzeezIsh commentedon Oct 28, 2026
Stack opened: #221 / #222 (main) · #198 (main) ← #223 (draft) ← #224 (draft, MTP drafter series) ← #225 (draft, queued first chunks).
git range-difffor #224 and #225 against the measured branches is=on every commit, so the #216 receipts apply unchanged. Pending on the pair: 907 / 908 (#223 builds + Qwen regression gate), 911 (CUDA build of the stack top).AzeezIsh commentedon Oct 28, 2026
Correction: the queued-first-chunk PR is #226 (not #225). Stack: #198 ← #223 ← #224 ← #226.
AzeezIsh commentedon Oct 28, 2026
#223 (#199 rebased) passes the Qwen regression gate against #198 (details on #223): outputs, cache, prefix, tools, contamination, ssm gate and canonical NLL are all identical, and decode is unchanged. Both CUDA targets build, and host tests pass. Next in the stack: job 911 (CUDA build of the #226 top). Then GLM qualification for #223.
AzeezIsh commentedon Oct 28, 2026
Stack extended: #226 ← #227 (draft): tool-call guard crate,
--tool-guarddefault off, ported from Enntity. Its targeted gate is reiner job 914 (CUDA build, guard tests, guard off == serial refs, guard on: tool probe). An offline false-positive scan isn't possible because the existing BFCL receipts are score-only and contain no emitted calls. Current stack: #221 / #222 → main; #198 ← #223 ← #224 ← #226 ← #227.AzeezIsh commentedon Oct 28, 2026
Stack status: #221 / #222 → main (CI fixes) · #198 (ready) ← #223 (Qwen-side gate passes) ← #224 ← #226 ← #227 (tool-call guard; gates pass on
c643812be). All gated against their parents and none re-benched. Blocked on the owner: GLM-side qualification of #223 (the pair has onlynvidia/GLM-5.3-Flash-NVFP4, not the FP4-Local GLM checkpoint; reiner has 39 GB free; SparkGLM's suite isn't on the pair); review/merge from the bottom up. Next stacked PRs (#220 step 5): Strict/Spark mode, literal tool-XML handling, vision admission, display carveout, video, #55 loop repair, RDMA/DFlash.AzeezIsh commentedon Oct 28, 2026
GLM qualification of #223 unblocked without deleting anything:
nvidia/GLM-5.3-Flash-FP4-Local@76348ddb(177.5 GB, the revision glm: add native prefill and FP4-Local support for dual DGX Spark #199 validated) is downloading to spark2 (about an hour).sshfsmount (about 220 MB/s).AzeezIsh commentedon Oct 28, 2026
Correction to my earlier note: I had the two nodes' disk numbers swapped. reiner has 310 GB free and spark2 is nearly full; the download filled it. I moved the GLM-5.3-Flash FP4-Local + DFlash2 downloads to reiner (same pinned revisions) and removed the partial copy on spark2, which is back to its prior free space. Rank 1 reads the checkpoint through a read-only reverse sshfs mount from reiner (187 MB/s). J33 is being resubmitted with those paths.
AzeezIsh commentedon Oct 28, 2026
Stack extended: #227 ← #229 (draft):
ATLAS_QWEN4EXP_SERVING_MODE=strict|spark, a serving-contract validation ported from Enntity, default unset. Host tests 2/2 + 2/2. Its one-boot check (J34) is queued after J33. The next PR, literal tool-XML handling, is being ported. GLM checkpoint download on reiner: 38 / 177 GB.AzeezIsh commentedon Oct 28, 2026
Stack extended: #229 ← #230 (draft): literal tool-XML handling for glm5_next + qwen4_exp, ported from Enntity; unit tests 24/24 + 38/38 + 9/9. Its pair check (J35: tool probe, greedy vs refs, BFCL ST-995, since it changes default qwen4_exp tool parsing) is queued. #223's GLM side: #199's 6 checkpoint GPU tests pass; serving checks are running.
AzeezIsh commentedon Oct 29, 2026
Status:
87df79b2f(2906e74db) and mergeable; the gate passes (details on qwen4_exp: serve FP4-Local at TP=EP=2 with the n-gram table resident, native MXFP8 sharding, BF16 routing #198).c419b536d: qwen4_exp: serve FP4-Local at TP=EP=2 with the n-gram table resident, native MXFP8 sharding, BF16 routing #198's MXFP8 host-decode took GLM's FP8 block-scaled shared experts; Qwen is unchanged by construction. GLM serving checks rerun after J35.AzeezIsh commentedon Oct 29, 2026
Stack now: #221 / #222 → main · #198 (mergeable,
2906e74db) ← #223 ← #224 ← #226 ← #227 ← #229 ← #230 ← #231 (QSA index-key state charged in the carveout KV budget) ← #232 (#55 loop repair +guard_stop).c419b536dfix); kv: charge QSA index-key state per block when the KV pool extends into the display carveout (ported from Enntity) #231 (KV-blocks line vs the parent + greedy refs); spark-server: loop repair (#55): short prose history no longer suppresses tool calls; guard_stop on the wire (ported from Enntity) #232 (Job board: Job issue form + live board on atlasinference.dev; wrangler cache + CI identity fix; root cleanup #55 repro on parent and child,guard_stopwith the guard on).rm.rsscanout-heap allocation rewrite changes memory placement for every carveout consumer, so it needs the owner's call.AzeezIsh commentedon Oct 29, 2026
Remaining ports, scoped. Each is one PR, stacked linearly after #232, in this order:
ATLPAIR3/ peer bootstrap we already have)b4358d20,4f1a92f2,0516b109,b718ff25ATLAS_GLM_CMD_RDMA,ATLAS_RDMA_ONESHOT_SM_STAGE(off)46134a75,6f3d0a71,95d20a25,170540e1,0eef40315573f4d5,43a5b9a6,cfa56639,d3953211ATLAS_DFLASH_WARM_CTX(off)7d33dd4c,b060f987,060199eb,83389c7e,9f656251,8f0a89b1,aa494ccb,d85c88d0--vision-max-request-rows/--vision-max-inflight-rowsc63b6feb,fa810568,a3ed7d2a,5fa936e1,d873e3c9,2837e761,ceb763180f783889,7d847737,847c2616,b8333ad0,50696215,f2e885fa,c2b55d850e16041af3f3876bNot planned: copy drafts (the MTP drafter in #224 covers that lane). The
rm.rsscanout-heap allocation rewrite (16315004) waits for the owner's call.55 remaining items
Merge #293: grammar: SparkQwen 0.4.0 literal-dispatch convergence
AzeezIsh commentedon Oct 31, 2026
@data-angel All of SparkQwen 0.4.0 is now on main (
8c2b67218).What merged since my last update:
Measured on reiner + spark2, stack top vs your
9b25f575, 0.4.0's config:union_check16/16,lp_api_probe13/13,api_parity26/26.Still open:
lp_repeatandlong_probeneed a profile with more than 32K context to run on this config.AzeezIsh commentedon Nov 1, 2026
Two updates.
#303 (data-angel) is merged after the new per-PR gate. The gate measures KL logit drift from top-20 distributions, teacher-forced text plus generated chat plus vision, against fresh builds of the base, and runs a bench with interleaved boots. Against main the KL was exactly 0 over 36,765 positions, cached vision repeats included. The bench was neutral. Receipts are on #303.
Long context: main (
3bd5d7b1e) vs the 0.4.0 engine on 0.4.0's 4x262k spark recipe, one boot each. Receipts are in reiner's~/code/night1027/out/longctx-3bd5d7b1e/.lp_repeat, 65,916 tokens x3: the same hash,60ef41b17fa4, on both engines, and reproducible within each.So
lp_repeatandlong_probe, which couldn't run on the 32K config, now match too.Merge #303: vision: restore the prefix cache and per-chunk encode for…
AzeezIsh commentedon Nov 1, 2026
@data-angel I pre-gated your Enntity
fix/csf-upload-decode(2d866fc58, "fast weights: read shards on eight threads, decode CSF scales at upload") against main8c2b67218, both built fresh on reiner + spark2. Receipts are in reiner's~/code/night1027/out/dap-csf-2d866fc58/.Open it as a PR against main and I'll merge it once CI is green.
AzeezIsh commentedon Nov 1, 2026
KL logit drift: main (
3bd5d7b1e, which includes #303) vs SparkQwen 0.4.0's engine on 0.4.0's 8x32k config, one boot per arm per mode. Receipts are in reiner's~/code/night1027/out/klsq-3bd5d7b1e/.The test covers 6 teacher-forced text cases, 4 generated chat cases, and 3 images plus a video, each sent 3 times so repeats can hit the vision cache.
With the long-context check posted above, main now matches 0.4.0 on every probe I have, vision included.
AzeezIsh commentedon Nov 1, 2026
Long video: main
3bd5d7b1evs the 0.4.0 engine on 0.4.0's hour-video recipe (its argv and env deltas, plus main's two contract keys). Receipts are in reiner's~/code/night1027/out/hourvid-3bd5d7b1e/.Input: a synthetic 5-minute 640×360 testsrc2 clip (6.3 MB), which comes to a 230,503-token prompt. I sent it twice per engine, cold then warm.
BFCL ST-995 on main
3bd5d7b1e: 87.54 / 86.85 (run-1793536442022911648), the same as before #294 and #303.AzeezIsh commentedon Nov 1, 2026
Main sentinel. Main moved with others' merges: #159 (one-pass BF16 batch-2 LM head on every target), #142, #304, plus my #306 (TTFT trace hooks). I re-gated main
b45811df7against3bd5d7b1e, both built fresh. Receipts are in reiner's~/code/night1027/out/dap-main-b45811df7/.So main
b45811df7produces the same logits as3bd5d7b1e, and the parity with 0.4.0 measured there still holds.#306 (merged) restores 0.4.0's TTFT-trace hooks for promoted and multi-chunk prefills, which my port of 0f58f7a had dropped.
Merge #308: fast weights: read shards on eight threads, decode CSF sc…
data-angel commentedon Nov 1, 2026
@AzeezIsh SparkGLM is up as one PR against main: #309.
The 13-part series sat on
stack/glm-video, which no longer has a live base, so I merged the whole tree onto88010baeeand got it building and passing there. It carries #199 as ported in #242, what's left of the GLM stack, and our series.Enntity/atlassg-pr/*still shows the series topic by topic.On
a76faa010, against SparkGLM 0.2.0 in Spark and Strict: greedy 8/8, logprobs zero delta over 20,705 tokens, 109/109 identical, and vision 14/14 in Spark. The merge of main since then (#159, #307, #308 and others) has not been on hardware yet. That run is next from us, and the open speed gaps are listed in the PR.The PR also covers the things you may want to decide: #255's warm-context files, which came with the stack, the persistent decode twins on PDL, and whether you'd rather cut it smaller.
Merge #309: glm: SparkGLM 0.2.0 on main (#199, #242 and the SparkGLM …
AzeezIsh commentedon Nov 2, 2026
Overnight merges, each after the KL logit-drift and bench gate on reiner + spark2:
AzeezIsh commentedon Nov 3, 2026
The pair's default serve is now main
0fa3dc73d(#319 verbatim prompt off, #320 no-tools<tool_call>ban, #322), rc16 profile, FP4-Local, TP=EP=2 on reiner + spark2:sparkrun-recipes #26 pins both TP2 recipes, NVFP4 and FP4-Local, to
ghcr.io/atlas-inf/atlas-gb10:sha-0fa3dc7. Both were re-checked through sparkrun on the pair.Overnight: BFCL on the recipes' spark profile, BFCL on the published NVFP4 recipe through sparkrun, and the MLPerf agentic leg on the default serve.
AzeezIsh commentedon Nov 3, 2026
BFCL finding on the two-GB10 recipes (one run each, observed). All runs use main
0fa3dc73dand ST-995, whose normalized floor is 85.32.So moving the recipes to the spark env costs BFCL, and both spark-env runs land below the normalized floor. Two isolation runs are queued:
MXFP8_DECODE,MXFP8_SHARED,PREFILL_W8A8,PREFILL_W4A4);PREFILL_W4A4=0.The recipes will follow whatever those show. @data-angel, this probably applies to SparkQwen's spark mode too.
data-angel commentedon Nov 16, 2026
@AzeezIsh following up on the BFCL finding from 11-03; sorry for the delay. It applies to us more than you guessed. SparkQwen 0.7.0 (11-10) made Spark mode its default, and SparkQwen has no ST-995 receipt in either mode. We qualified Spark mode on greedy equality, and the tool, quality and agentic probes, never on BFCL. Your 85.63 / 84.93 for the recipes' spark env, against 88.14 / 88.96 for rc16, is the only ST-995 data on it that I know of.
Did your two isolation runs finish? They were rc16 plus the four wave-1 switches, and the spark env with the mode unset and
PREFILL_W4A4=0. If they did, the result decides our next step. If not, I'll run ST-995 on our pair, Strict and Spark on the same build and the same day, then one switch at a time. Whichever switch costs the score comes out of Spark mode's defaults. SparkQwen's rule is that quality-affecting optimizations stay off by default, and a result below the 85.32 floor counts.