Repository navigation
Closed
Labels
jobA piece of work anyone can pick up. Shows on atlasinference.dev/#jobs
Description
Status (updated 2026-09-29 10:14Z)
State: #127 is merged (via #132, b03dc7363). This job's done bar, the post-merge sweep, has passed (reiner 640, main b03dc7363, C1/4/8/16, ISL 512 / OSL 320, interleaved x2):
| arm | C1 | C4 | C8 | C16 | verify16 step |
|---|---|---|---|---|---|
| main (deferred commit off) | 25.8 / 25.7 | 51.3 / 50.8 | 69.8 / 61.8 | 76.5 / 78.0 | 368 ms |
main + ATLAS_GDN_DEFERRED_COMMIT=1 |
26.5 / 26.5 | 55.2 / 49.8 | 76.0 / 66.9 | 87.3 / 93.3 | 267 ms |
- Correctness: greedy output identical with the deferred commit off and on (5/5 probes). Backbone parity: 0 of 40,960 mismatched. 0 errors.
- ST-995 with it on: 88.34 / 88.85, identical to the lever-off run (
640leg 2). The deferred path engaged 63,683 times, with 0 errors. - Next: spark-model: ship the GDN deferred commit on by default (#58) #139 turns it on by default. Its gate is reiner
642: boot identity on 4 models, the agentic probe, C=2/4/8 cross-contamination, and unit tests. This job closes when spark-model: ship the GDN deferred commit on by default (#58) #139 merges.
Kind
Feature for a model we already support
Model
nvidia/Qwen3.8-27B-NVFP4 + incoai/Qwen3.8-27B-DFlash2
What's the job?
Finish DFlash2 concurrency on main. #52 made batched verify/propose work: aggregate went from 24 to 42 tok/s at C16 on a GB10 (γ=8, Option B). Its known follow-ups are what's left:
- a
gdn_decode_wy8kernel, so the batched WY fast path covers k=8 (today it falls back per-sequence, correctly) - owner-in-key CUDA-graph replay for batched verify (currently vetoed, so it runs eager)
- report the multi-lane propose validation (
ATLAS_DFLASH_PROPOSE_LANES=4)
Done looks like: a C1/C4/C8/C16 sweep on GB10 that beats #52's table, with ST-995 unchanged.
Impact radius
Shared code, other models could change
What else could it touch?
the scheduler's batched verify path, GDN decode kernels, and the CUDA graph cache key
Who's waiting or willing to test?
@AzeezIsh (GB10)
Metadata
Metadata
Assignees
Labels
jobA piece of work anyone can pick up. Shows on atlasinference.dev/#jobs
Activity
site: jobs render plain text; snapshot carries the first three jobs
maplepaladin73 commentedon Sep 23, 2026
Atlas #58 bench — HOLD
Date: 2026-09-23 18:50 EDT. Host: spark (GB10).
Verdict
HOLD. Merged
maindoes not reproduce the #52 table, and it does not beat it. #58 is not done.Issue #58 asks for a C1/C4/C8/C16 sweep that beats #52's aggregate tok/s (25.2 / 33.6 / 40.2 / 42.1 at γ=8, Option B, batch 16) with ST-995 unchanged. This run is a measurement of
mainat4f2e396(PR #55 merge, which already contains #52). The three #58 follow-ups were not implemented: nogdn_decode_wy8, no owner-in-key CUDA-graph replay, noATLAS_DFLASH_PROPOSE_LANES=4run.What was served
/home/spark/atlas-inf-main/target/release/spark, built 18:04 EDT from that checkout.spark serve nvidia/Qwen3.8-27B-NVFP4 --kernel-target qwen3.8-27b --port 8889 --bind 0.0.0.0 --max-seq-len 8192 --kv-cache-dtype bf16 --gpu-memory-utilization 0.70 --max-batch-size 16 --disable-thinking --dflash --draft-model incoai/Qwen3.8-27B-DFlash2 --dflash-gamma 8 --dflash-window-size 4096max_batch=16,num_drafts=7. Thinking forced off.Method
Repo script
bench/bench_concurrency.py. Aggregate Tput istotal_output_tokens / batch_wall_time. One warmup per cell. ISL 128 became a 155-token counting prompt (the script's own prompt builder). OSL 128. Client and server both on the Spark, so the client RTT is local.#52 did not publish ISL or OSL. This is their script at the shortest ISL, not a claim that the cells are byte-identical to jobs 198/206/208.
Numbers
576441191, their table)main4f2e396, ISL 128, seq 8192Server decode tok/s (sTPS p50) on the 8192 run fell as concurrency rose: 18.5, 4.6, 2.4. Aggregate stayed flat near 17. That is the pre-fix shape in #52 (their row 198 sat at ~24 across the sweep), not the post-fix climb.
C8 on the 8192 serve did finish. C16 was in flight when the host had 1.3 GiB free. The sweep was killed there. It was not allowed to finish.
Failed attempt
First sweep used
--max-seq-len 32768and the same batch 16 / util 0.70 / γ=8. C8 returned 0 tokens. The server then logged:cuMemAlloc_v2 failed: status 2, requested 1677721600 bytes (device reports 926.6 MB free / 121.7 GB total)The process died. Host memory returned to 119 GiB free only after the process was gone. Evidence:
/home/spark/atlas-inf-58-bench.txt,/home/spark/atlas-inf-58-serve-bench.log.What was not tested
scripts/q38_st995.shis a different checkout, a different checkpoint (unsloth/Qwen3.8-27B-NVFP4), and it kills whateverspark serveis running. Not run. "Unchanged" is unverified.ATLAS_DFLASH_PROPOSE_LANES=4. Not set.AzeezIsh commentedon Sep 24, 2026
Picking this up — I've reproduced the sweep on a properly provisioned GB10 and can explain the divergence. This was the right repo and the right base:
main@4f2e396does contain #52, so the pickup was correct.Why the run went flat at ~17 tok/s — recipe gap, not a recipe-repo bug
The published recipe (
sparkrun-recipes:qwen3.8/qwen3.8-27b-nvfp4-dflash2.yaml) documentsATLAS_DFLASH_OPTION_B=1as a required env — "export before serve", since the recipe struct has noenv:key. The hand-rolled serve above didn't set it, so the run measured the non-Option-B drafter path. The flat 16-18 tok/s curve is exactly the pre-batched-verify shape #52 described. It's env-gated inproduct_policy.rs(ATLAS_DFLASH_OPTION_B), which is why "not a flag in this tree" — it's an env var, not a CLI flag.Two more fingerprint deltas: the recipe/gate protocol also prescribes
--ssm-cache-slots 256 --scheduling-policy slai --request-timeout 900and runs ISL 512 — this run used ISL 128 (155-token counting prompt), which under-amortizes verify and deflates every cell.The memory failure — capacity, not correctness
The reading is right:
--gpu-memory-utilization 0.70is a KV-budget fraction, not a host-RAM cap. With ~7.6 GiB free post-boot and the process at ~114 GiB, C16 at γ=8/seq 8192/batch 16 doesn't fit on that box. The 32k-seq attempt dying oncuMemAllocis the KV pool exhausting the device budget — expected, not a defect.Fresh sweep at the shipped lane head (c8b88c6, GB10, recipe env set)
Same protocol,
ATLAS_DFLASH_OPTION_B=1, γ=8, ISL 512:All four cells beat the #52 table; scaling saturates after C8. One honest flag: an earlier integration-head run of the same gate measured 50.5 at C8 — c8b88c6 is ~5% below that (unattributed: noise vs the new lm_head/verify dispatch, both measured faster single-stream). Raw record:
.benchmarks/concurrency-sweep/2026-09-24-c8b88c6fc9.jsonon reiner.What actually remains for this issue
gdn_decode_wy8— not implemented anywhere; k=8 still takes the per-sequence fallbackATLAS_DFLASH_PROPOSE_LANES=4— merged but opt-in; needs a validated run (currently slower than serial proposes without per-lane graph capture)main(lm_head batchm-GEMV, verify m≤16 ladder, serve launchers) are now PR spark-model: DFlash2 lm_head batchm-GEMV + verify m≤16 ladder + serve launchers #60Suggest: keep open, re-run on a host with C16 headroom using the recipe verbatim (env included). Skillet's report was correct that the tree as-invoked doesn't meet the bar — the bar just needs the recipe's env and a bigger box.
maplepaladin73 commentedon Sep 24, 2026
Same GB10, same flags, two trees.
mainat83d1bf528does not reproduce the climb.c8b88c6fc9does.Flags both times:
ATLAS_DFLASH_OPTION_B=1, γ=8,--max-seq-len 8192,--kv-cache-dtype bf16,--gpu-memory-utilization 0.80,--ssm-cache-slots 256,--disable-thinking, draftincoai/Qwen3.8-27B-DFlash2, modelnvidia/Qwen3.8-27B-NVFP4. Bench:bench/bench_concurrency.py, ISL 512, OSL 128, local client. Option B allocated on both. C8 logs both saydspark_batch_ok=true.c8b88c6, batch 16main83d1bf528, max-batch 8c8b88c6fc9, max-batch 8c8b88c6fc9is the tip ofintegration/nvidia-lane-2026-09-20. It is not an ancestor of83d1bf528. #60 re-landed the two GEMV commits (239e78bb,d6e1a921). The lane still has DFlash commitsmaindoes not, including multi-lane propose (propose_on_lanesis absent onmain).The C8 gap is step time, not acceptance and not Option B being off. About 1.25s per batched verify of 8 sequences on
main, about 0.54s onc8b88c6fc9.mean_nawas about 5.6 onmainand 6.5 on the lane tip.Batch 16 is separate. With
--ssm-cache-slots 256,c8b88c6fc9also dies here (host OOM after KV alloc). The published C16 fit was not reproduced. The weight loader and factory do not differ from that commit, so this is not a budget-code change onmain.Not passed on either run, and not in the published flag list:
gdn_fused_norm(logfalse) andmtp_gate(logauto). Untested. Not claimed as the gap.maplepaladin73 commentedon Sep 24, 2026
Atlas #58 — Lane-tip retest + C16 unblock (2026-09-24)
TL;DR
c8b88c6fc9(integration/nvidia-lane-2026-09-20) beats the spark-model+server: DFlash2 batched verify/propose for generic heads (γ-shaped rows, stream ordering, multi-lane) #52 reference at every concurrency we can boot.--gpu-memory-utilization 0.80; lowering to 0.70 unblocks it → 54.3 t/s (beats spark-model+server: DFlash2 batched verify/propose for generic heads (γ-shaped rows, stream ordering, multi-lane) #52's 42.1 and Azeez's published 47.5).cuMemGetInfoprobe — not the SSM slot count and not--max-seq-len.Tree / flags
/home/spark/atlas-inf-mainatc8b88c6fc9(integration lane tip, not main83d1bf528)../target/release/spark.nvidia/Qwen3.8-27B-NVFP4(21 GB, 4 shards) + drafterincoai/Qwen3.8-27B-DFlash2(3.85 GB, 5-layer sliding-attention head,target_layer_ids [5,19,33,47,61],block_size 8— NOT a second 27B).--kernel-target qwen3.8-27b --bind 127.0.0.1 --port 8889 --kv-cache-dtype bf16 --scheduling-policy slai --request-timeout 900 --disable-thinking --dflash --dflash-gamma 8 --dflash-window-size 4096 --draft-model incoai/Qwen3.8-27B-DFlash2,ATLAS_DFLASH_OPTION_B=1.bench/bench_concurrency.py --osl 128 --warmup 1 --isls 512.Results (ISL 512 / OSL 128)
83d1bf528C16 (util 0.70): TTFT p50 19.0 s, TPOT p50 147 ms, sTPS 4.4.
Why C16 OOMs at util 0.80 (measured)
Probe:
/tmp/memprobe.c(dlopen libcuda,cuMemGetInfo), built on b4ee.51.0 GB pre-KV + 11.5 GB reserve → 34.8 GB for KV(total 97.3 GB).The lever:
--gpu-memory-utilization--ssm-cache-slots 64is safe (no C1/C4/C8 regression vs 256) and is NOT the C16 fix.--max-seq-lenis not the KV lever (KV pool is sized by the memory budget, not the seq len).Context-size tests (16K / 32K)
(filled in below after the runs)
Evidence
research/atlas-inf/58-retest-20260924.md(ssm-slots 64 + C16 util-0.70 sections)research/atlas-inf/58-both-trees-brief.mdatlas-inf-c8b64-serve-b16-u70.log,atlas-inf-probe-c8.logatlas-inf-c8b64-bench-c16-u70.txtmaplepaladin73 commentedon Sep 24, 2026
Updated with optimal recipe based on highest performing lane tip c8b88c6
Atlas #58 — Lane-tip results + recipe (2026-09-24)
TL;DR
Lane tip
c8b88c6fc9(integration/nvidia-lane-2026-09-20) beats both the #52 main-line reference and Azeez's published numbers at every concurrency (C1–C16) and at all three context sizes (8K/16K/32K). Single clean run, 0 prefill errors, 12/12 cells.The recipe (copy-paste to confirm)
Bench:
python3 bench/bench_concurrency.py --url http://127.0.0.1:8889 --model nvidia/Qwen3.8-27B-NVFP4 --osl 128 --warmup 1 --isls 512 --concs 1 4 8 16Why util 0.55: the per-request prefill scratch scales with
--max-seq-len(8K ~400 MiB, 16K ~800 MiB, 32K ~1.6 GB) and is not counted in the KV-pool budget. At util 0.60 the 32K C16 scratch (1.6 GB × 16) exceeds the ~1.7 GB headroom and wedges. util 0.55 frees enough headroom that all 12 cells run clean. (KV pool is sized by--gpu-memory-utilization, not--max-seq-len— so context size costs prefill-scratch headroom, not decode speed.)Comprehensive results (util 0.55, ISL 512 / OSL 128, single run)
All 12 cells: 0 prefill errors.
Comparison (aggregate output t/s)
** Best single number: 8K C8 = 55.4 t/s
Evidence
atlas-inf-matrix-bench-{8k,16k,32k}-u55.txtatlas-inf-matrix-serve-{8k,16k,32k}-u55.log/home/spark/atlas-inf-matrix-run.sh(launch + ready-poll + full C1–C16 sweep)research/atlas-inf/58-retest-20260924.md,58-both-trees-brief.mdAzeezIsh commentedon Sep 25, 2026
Multi-lane propose validation —
ATLAS_DFLASH_PROPOSE_LANES=4makes it WORSE (job 242, GB10, 2026-09-25)Same concurrency-sweep gate as
main66(5b07b953, nvidia 27B, DFlash2 γ=8 + Option B, bs16, util 0.70); only the env var differs. Aggregate tok/s:Why propose does not scale (job 235 step timing): batched verify scales well (122 ms at n=1 → 285 ms at n=12), but propose is exactly 41 ms × n (80 / 122 / 165 / … / 494 ms at n=12). Generic DFlash2 declares
propose_batch_max() = 1(dflash_head.rs:780), soverify_dflash_batch_step.rs:350proposes serially per sequence. Each serial propose runs the fullγ × 248,320lm_head GEMM (forward_block.rs:532) plus ~3.85 GB of drafter weights, so lanes only add parallel streams re-reading ~4.5 GB each — bandwidth contention, and verify slows too. Bandwidth floor for lanes at n=12 ≈ 240 ms; lanes cannot fix this.The fix is a real B×γ batched propose.
run_batched_layer_stage/run_batched_tail_basealready exist but are fenced to the Lightning DSpark contract (row_contract.rs:exact("gamma", gamma, 4), Markov sampler, required attention sinks). Design + bounds (batched n=12 propose projected ~30–45 ms vs 494 ms today):10_DESIGN_DFLASH2_BATCHED_PROPOSE.mdis being moved intodocs/on a draft PR with the row-contract generalisation as its first commit.AzeezIsh commentedon Sep 25, 2026
Correction to my comment above: the design landed first, as a doc —
docs/design/dflash2-batched-propose.mdin draft PR #76 — not with a row-contract commit. Reason: the fence isDsparkBatchInput::validate(batch_inputs.rs:233,gamma != LIGHTNING_SERVED_GAMMA), and lifting it alone would let a DFlash2 head fall into the DSpark Markov sampler. It lands together with the batched DFlash2 selector stage, gated by thebatch_parityharness. Also queued (job 253): a γ 8/12/16 re-sweep — the "γ=8 optimal / γ=16 faults" verdicts both predate #33's head_dim-128 attention fix.AzeezIsh commentedon Sep 25, 2026
DFlash2 γ re-sweep on current code (reiner job 260).
incoai/Qwen3.8-27B-DFlash2, Option B,--dflash-gamma8 / 12 / 16.(tok/s, C=1)
dflash2-batched-propose.md): a per-row γ becomes a mask in the B×γ propose rather than a separate launch.Filed as the next implementation item for this job, after batched propose.
AzeezIsh commentedon Sep 26, 2026
Status review (2026-09-26): the C=8 "floor failure", and what is left
The 50.5 floor belongs to the MTP lane, not DFlash2.
gate: min_c8 = 50.5 from the nvidia/Qwen3.8-27B-NVFP4 variant's baseline.--serve-override speculative=false dflash=true, so they are judged against MTP's scaling curve.On main66 (job 240-conc: DFlash2 γ=8 + Option B, bs16, util 0.70, ISL 512 / OSL 320), aggregate tok/s was 27.1 / 36.8 / 46.7 / 48.3. That passes C1 and C4. The driver stops at the first failing rung, which is C8 (46.7 < 50.5); C16 would fail too (48.3 < 72).
No DFlash2 record has ever met those floors, because DFlash2 propose runs serially. Job 235's step timing shows verify batching well (122 → 285 ms from n = 1 to 12) while propose is exactly 41 ms × n (494 ms at n = 12, 63 % of the step). So the failure is an honest reading of DFlash2's scaling, not a bad baseline.
This issue's own done-criterion is met on main66.
83d1bf528(job 232) and 87.84 / 88.53 on5b07b953(job 239). Both clear the committed bars.What is left, ranked by measured cost:
docs/design/dflash2-batched-propose.md(docs: engine optimization campaign status (2026-09) + DFlash2 batched-propose design #76). The projection, not yet measured, is ~2× aggregate at C = 12-16.gdn_decode_wy8and owner-in-key graph replay. Both live inside verify, which already scales, so both are small next to propose.ATLAS_DFLASH_PROPOSE_LANES=4has been validated, and it is negative (job 242).Gate follow-up I will run: give the DFlash2 lane its own concurrency-sweep baseline entry, keyed to the
qwen3.8-27b-nvfp4-dflash2-batchrecipe. Its floors will be cut from ≥3 certified reps on post-merge main, per the BENCH.toml rule (mean minus max(3σ, ~5 %), all rungs re-cut together). After that, a DFlash2 PR is gated against DFlash2's own scaling and an MTP PR against MTP's. The reps queue behind the current GB10 merge-train gates.AzeezIsh commentedon Sep 26, 2026
Correction to the gate follow-up in my last comment: the gate cannot express a separate DFlash2 variant.
bench_resolve::resolvekeys a gate's baseline by (hardware, checkpoint), and DFlash2 and MTP share the checkpointnvidia/Qwen3.8-27B-NVFP4. A second entry for the same checkpoint would be ambiguous, and assembly refuses two defaults. Giving DFlash2 its own floors would need a framework change (baselines keyed by recipe, or a separate gate id), which is disproportionate for this. Instead, I will document the behaviour in the concurrency-sweep note inkernels/gb10/qwen3.8-27b/BENCH.toml: a--serve-override dflash=truesweep is judged against the MTP-cut floors and is expected to fail C ≥ 8 until batched propose lands. That PR is docs only.spark-model: serve staged DFlash2 drafts authoritatively behind ATLAS…
spark-model: batch the K=5..8 WY verify across sequences (#58)
spark-model: instantiate the WY verify for K=9..16 (#58)
28 remaining items
hip compat: map __trap() onto __builtin_trap (fixes the Windows Flash…
AzeezIsh commentedon Sep 28, 2026
Bisect of main's DFlash2 C=16 (reiner job 611zz).
sparkrun from wt-mainhead), existing binaries only, interleaved ×2.Next: job 625z is a within-binary A/B on main,
ATLAS_FFN_NVFP4_MMQ=1(the pre-#96 FFN arm) vs default.Other verify-side results:
spark-model: set the GDN deferred-commit flag at verify dispatch, not…
AzeezIsh commentedon Sep 28, 2026
Attribution: #96 accounts for the whole DFlash2 verify regression (reiner job 625z).
Setup: main 10d4ec7 against itself with
ATLAS_FFN_NVFP4_MMQ=1, which restores the pre-#96 W4A4 NVFP4-MMQ dense-FFN arm. Same serve protocol and fixed client as job 611zz, interleaved ×2.forward_prefill. spark-model: make the W4A4 NVFP4-MMQ FFN prefill opt-in (#95) #96 moved that arm from W4A4 MMQ to W4A16 (t_m128).Options:
perf/ffn-mmq-verify-rows@ 7597925). It needs a third resident copy of the dense-FFN weights (original +_t+ MMQ repack). The lost KV capacity capped admission at n≤6 in job 611, where C16 fell to 31–33. This only works if the decode GEMV or the W4A16 prefill can read one of the other layouts, which is kernel work.ATLAS_FFN_NVFP4_MMQ=1as an opt-in for throughput-first DFlash2 deployments, with the GB10 27B: default W4A4 dense-FFN prefill makes outputs depend on prefill chunking (up to ~12-nat token-0 shifts; +0.5-0.8% ppl vs W4A16) #95 precision caveat.The floors stay as they are until #127/#128 land.
spark-model: fix the broken rustdoc links in the batched selector doc (…
spark-model: make the GDN deferred-commit branch build and run (#58)
spark-model: set the GDN deferred-commit flag at verify dispatch, not…
Merge #127: spark-model: DFlash2 step cuts — async batched propose + …
AzeezIsh commentedon Sep 28, 2026
Status 2026-09-28. The batched-concurrency work now splits by deployment.
625zzz1A/B, two runs per arm, shows output identical to main on 5 probes with 0 parity mismatches.625zzz3gates GB10/common train: #81 #108 #120 #121 #125 #127 #132 with a C=2/4/8 cross-contamination leg.hipErrorIllegalAddress(the wyn kernel ignoredstate_is_table). The Strix gate055cincludes 2- and 4-concurrent legs.625zzz0). A root-caused fix is on the PR (1dd752f54), and its GB10 rerun is625zzz4.spark-model: async DFlash ctx-precompute copies — kill ~40 pipeline d…
Merge pull request #139 from Atlas-Inf/perf/gdn-deferred-commit-defau…
AzeezIsh commentedon Sep 29, 2026
Done. The deferred commit ships on by default: #139 merged as
8bfb97ad5.640): C16 76.5 / 78.0 → 87.3 / 93.3 tok/s; verify16 step 368 → 267 ms.642): byte-identical to main on 4 models, agentic probe 158/158 at 0.6482, 0 cross-contamination, and the GPU oracle byte-identical at K = 5..16.prefix cache: content-keyed vision keys and item content hashes (issue …
prefix cache: content-keyed vision prompts (issue Atlas-Inf#58)