Skip to content

qwen3.8-27b: exact speculative serving on one GB10 — DFlash2/DSpine, batched to 64, 262K context (stacked on #331) - #333

Merged
AzeezIsh merged 127 commits into
Atlas-Inf:mainfrom
Enntity:q27/upstream-20261109
Nov 10, 2026
Merged

AzeezIsh merged 127 commits into
Atlas-Inf:mainfrom
Enntity:q27/upstream-20261109

Conversation

@data-angel

@data-angel data-angel commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #331. This branch is #331's head (d0aeac3f8) merged into the Qwen3.8-27B series. Please review only
the commits after #331: git log d0aeac3f8..q27/upstream-20261109 (55 commits, 190 files, +17.2K/−0.6K against #331's head).
The dense prefill kernels the 27B uses for chat (ATLAS_DENSE_PREFILL_BF16MMA, ATLAS_DENSE_PREFILL_LOWP) come from #331.
Once #331 merges I'll rebase so only this series remains.

Summary

Qwen3.8-27B (qwen3.8-27b kernel target, nvidia/Qwen3.8-27B-NVFP4) served on one GB10, with speculative decoding
whose output is byte-identical to serial decode at every concurrency, inside <think> too. The drafters are DFlash2
and DSpine, alone or routed per request. It runs at the full 262,144-token context with up to 64 concurrent requests.

Before this series:

  • Speculation on this target was MTP with three drafts, and it was gated off inside <think>, because the verify was not
    bit-exact.
  • Context was 131,072 tokens and concurrency 8.

Results

One GB10. Temperature 0. Same harnesses before and after: SparkQwen's bench/sq_bench.py, plus a single-request decode
probe on a MinHeap code prompt (900 output tokens) and a reasoning prompt (523 output tokens), timed from first to last
streamed token.

  • Before: 5f79b46b, our Spark product line on top of main at the time. MTP, --num-drafts=3, 8 sequences, 131K
    context, stock NVIDIA checkpoint.
  • After: this branch at 9cd23195b. DFlash2 γ=8, 64 sequences, 262K context, BF16 KV.
  • Caveat: the after column also uses an NVFP4 GDN and attention overlay (TandemLLM's Apache-2.0 weights,
    re-keyed). Those weights account for about 12% of decode step time (69.2 vs 78.9 ms) and +0.004 nats/token of
    held-out NLL. Apart from the native NVFP4 GDN path, every lever below also runs on the stock checkpoint.
Before After
Decode probe, code, thinking off (tok/s) 30–31 71.3
Decode probe, thinking on (tok/s) 16 (speculation off in <think>) 70.0
sq_bench decode, C1, prose / code / JSON (tok/s) 14.4 / 15.8 / 15.2 32.6 / 57.3 / 45.4
sq_bench aggregate, C1 / C2 / C4 / C8 (tok/s) 14.7 / 22 / 39 / 52 31 / 50 / 74 / 93
TTFT, cold, 2K / 8K / 16K / 28K (s) 3.6 / 14.0 / 28.6 / 53.1 1.27 / 4.88 / 10.4 / 20.9
TTFT, warm prefix, 8K / 20K (s) 0.40 / 0.45 0.28 / 0.34
Churn pool, 8 requests, thinking on / off (tok/s) — 137.5 / 140.0
64 concurrent requests, steady (tok/s) — (8 max) 179.6
Output identical to serial decode no (MTP verify not exact) yes, every cell at C1–C64

Exactness is checked as follows:

  • 8 prompts × thinking on/off are compared byte for byte with serial decode at C1, C2, C4, C8, C16, C32 and C64.
  • Microtests cover row invariance of the verify kernels.
  • A 254,554-token needle answers correctly alone and beside 8 decoding requests.

With both drafters (--draft-model-alt): code 75.5 and thinking 71.8 tok/s at C1. Past two live sequences, every
sequence uses DFlash2.

What's in it

Levers are off unless set. The SparkQwen 27B profile sets ATLAS_EXACT_VERIFY ATLAS_SKINNY_MMA ATLAS_QWEN38_PDL ATLAS_QWEN38_DECODE_FUSE ATLAS_QWEN38_VERIFY_FUSE ATLAS_QWEN38_VERIFY_DEFER ATLAS_GDN_CHUNK_TC ATLAS_DENSE_PREFILL_BF16MMA ATLAS_DENSE_PREFILL_LOWP=1 ATLAS_DECODE_TIME_SHARE=0.3 ATLAS_MTP_GATE_FORCE=1.

Exact verify (ATLAS_EXACT_VERIFY)

  • The qwen3_5 K=2/3/4 verify and the DFlash K=γ verify become bit-exact against serial decode.
  • That also covers native FP8 attention and batched decode and verify (dense_batch_exact). Each sequence's rows are
    byte-identical to running alone.
  • ATLAS_EXACT_VERIFY_CHECK covers the DFlash verify.
  • A DFlash step picks rows the way serial decode does and stops at the first rejected row.
  • ATLAS_EXACT_VERIFY=1 is refused beside --ssm-h-dtype f16.

Row-invariant kernels

  • Skinny GEMMs (ATLAS_SKINNY_MMA): row-invariant tensor-core NVFP4 GEMMs for decode and verify, up to 128 rows in
    one launch. The e2m1 codes convert straight into MMA operands, and the reduction order is fixed by shape.
  • Wide row-exact GEMV twins (ATLAS_WIDE_GEMV): w4a16, q+gate and w8a16, for 5–16-row verifies. The skinny
    kernels supersede them in the profile.
  • LM head: an exact NVFP4 LM head for batched decode past 16 sequences, as 16-row passes of the batch16 kernel.
    Before, it fell back to a tile GEMM with a different reduction order.

GDN

  • Fused decode (ATLAS_QWEN38_DECODE_FUSE): the 27B GDN decode step is one exact launch.
  • Fused verify (ATLAS_QWEN38_VERIFY_FUSE): each sequence's exact GDN verify rows run in one launch per layer,
    trees included.
  • Deferred commit (ATLAS_QWEN38_VERIFY_DEFER): the state commits after the verdict by replaying only the accepted
    rows.
  • Native NVFP4 GDN projections: prefill reads them on BF16 tensor cores. A native NVFP4 qkvz may keep its FP8
    out_proj.

Decode chain

  • ATLAS_QWEN38_PDL_DECODE puts the decode chain on PDL, skinny arms included.
  • The MTP drafter prefill runs on tensor cores in one launch per chunk: 20K tokens took 2,125 ms, and 28.8K now take 158 ms.

DFlash

  • DSpine drafter (tencent/Qwen3.8-27B-DSpine-b16, Apache-2.0; method from arXiv 2609.36173):
    • its own code bridge and tables;
    • a 16-row NVFP4 propose tier.
  • Two drafters (--draft-model-alt): DFlash2 and DSpine, routed per request on acceptance counts.
  • Hidden-save keying: the region is now keyed by the live slot, not the admission slot. Before, a survivor and a
    new admission could share a region after compaction, and one would draft from the other's hiddens and never accept.
    Zero-accept rounds at 2–4 sequences went from 47–65% to 12–14%.
  • Verify width follows the batch (dflash_width::WIDE_DEPTHS, overridable with ATLAS_DFLASH_BATCH_DEPTH):
    • 7 drafts up to 8 live sequences;
    • 3 drafts up to 16;
    • plain batched decode past 16.
  • Tree verify at C1 (ATLAS_DFLASH_TREE=<rows>): opt-in, exact, +4% here, and off in the profile.

Memory

Mode Before After
DFlash2, memory before KV at 262K and 8 sequences 64.2 GB 51.1 GB
Both drafters, same 79.4 GB 54.6 GB
  • Verify pools: under VERIFY_DEFER they hold only the commit staging, 11–22 GB → 0.14 GB. A verify that would
    need a stored snapshot fails loudly. ATLAS_VERIFY_POOL_STORE=1 restores the old pools.
  • MTP head: not built under --dflash.
  • GDN qkv/z sources: freed after the concat on CUDA too (HIP already did).
  • Drafter budget: the DFlash drafter is built before the KV budget is measured, and its per-sequence pools are
    reserved from that budget, as is the LM head's transposed copy. Before, about 9 GB with two drafters at 32 sequences
    sat outside --gpu-memory-utilization, and the host swapped.

Prefix cache on long conversations

Found when a coding agent's conversation reached 178K tokens. Time to first token went from ~2 s per turn to 20 s,
then to 317 s.

  • Swap-out gate (no lever): with swap space on (the default 3 GB), the scheduler frees room for each new request
    before swapping out a live sequence. It sized that room as the whole prompt, before the prefix lookup. On a warm
    server that evicted the tail of the conversation being continued. Past half the KV pool the match became
    pool − prompt, and matched + prompt sat at 348,816–348,829 on a 349K-token pool. The gate now subtracts the
    blocks a read-only Model::cached_prefix_blocks probe (peek_matched_tokens) says the lookup will hand over. Vision
    prompts and models without a prefix cache keep the old sizing.
  • SSM snapshot ladder (ATLAS_SSM_SNAP_LADDER=<base>, default 1024, 0/off disables, in the TP startup parity
    table): a hybrid prefix hit needs a resident SSM snapshot at or below the KV match, and the LRU victim kept only the
    last ~10 turns. A match behind them re-prefilled the whole prompt. After every save, the shallowest resident
    snapshot in each distance bucket [base·2^k, base·2^(k+1)) behind it on the same token path becomes a rung. Rungs
    rank between ordinary entries and the leased tail, for the four most recent paths. A match d tokens behind the
    tail replays at most ~4·d. The chain-aware (ATLAS_GLM_PC_EVICT) and legacy victims are unchanged.
  • Interval checkpoint cadence (no lever): an interval SSM checkpoint now fires at every prefill chunk end that
    crosses a --ssm-checkpoint-interval boundary, not only at one that lands on it. An idle server's first chunk is the
    whole arena (16,384 + 64 tokens at 64 sequences), so every later chunk end sat 4 blocks past an interval multiple and a
    cold prefill saved no intermediate checkpoint. A later match behind the tail then re-prefilled everything: 194K tokens,
    about 15 minutes, live. Interval-aligned chunks keep the old cadence and chunking is unchanged. Live: a cold 170K
    prompt now saves 11 checkpoints, and a prompt diverging at 65% (111K) restores at 98,368 and replays 12.5K tokens
    (26.4 s TTFT). Decode is unchanged (70.7 / 69.6 tok/s).
Synthetic conversation, 172K → 187K tokens, ~650 tokens a turn Before After
Turns below 174K (s) 2.6–3.0 2.6–3.0
Turns 6–9 (s) 4.9 / 8.8 / 12.7 / 16.6, climbing 2.7–3.0
Turns up to 187K (s) — 2.7–3.1
One message rewritten ~8.5K tokens back, at 186K (s) full re-prefill (317 s at 178K seen live) 50.2 (replays 15.9K)
Decode probe, code / thinking (tok/s) 71.3 / 70.0 70.8 / 69.7

Scheduler

  • Decode time share (ATLAS_DECODE_TIME_SHARE=f): decoding requests keep a share of the time between chunks of a
    long prefill, fused chunks included. Before, 8 requests beside a 254K prefill fell to 0.2 tok/s each.
  • ATLAS_ALLOC_LOG_MB logs allocations at or above a size, with their call site.

Scripts

  • scripts/qwen38_nvfp4: an NVFP4 requantizer, calibration and overlay re-keyer for Qwen3.8-27B. It quantizes from
    BF16 cuts and streams the GPTQ capture.

Behaviour changes without a lever

  • Every target with swap space on: the swap-out gate reclaims only the blocks a request will allocate.
  • Every hybrid (SSM) target with a prefix cache: the snapshot ladder is on by default.
  • Every hybrid target with --ssm-checkpoint-interval set: checkpoints fire on interval crossings, so chunk sizes no
    longer decide whether a prefill saves any.
  • Every DFlash target: the batch width schedule and the drafter-in-budget accounting apply. KV pools are smaller by the
    drafter's real footprint.
  • DFlash runs no longer load the target's MTP head.

Testing

  • cargo clippy --workspace --all-targets -D warnings is clean.
  • spark-server --bins scheduler passes (695 tests), and spark-runtime --lib pdl passes (6).
  • spark-runtime --lib (576, including the new radix_tree::snapshot_ladder tests), spark-server --bins swap_gate
    (3) and spark-model --lib startup_parity (13) pass. cargo fmt --all --check is clean.
  • spark-model --lib prefill_b::ckpt_interval (4, new) passes, and clippy -D warnings on spark-model is clean.
  • The file-size cap is not clean: 11 Rust files in this series are over 500 lines and not on the allow list. Most are
    new examples and tests (dspine_bridge_check.rs, gdn_verify_tree_check.rs, skinny_mma_microtest.rs,
    layers/ops/skinny_mma.rs). I'll split them or add them to the list, whichever you prefer.
  • Microtests:
    • skinny_mma row invariance and accuracy;
    • GDN decode fuse byte check;
    • verify exact microtests, including native FP8 attention;
    • wide GEMV bit parity.
  • Live checks on one GB10: everything in the results section. I haven't run the pair or the full PR-gate suites; I'm
    leaving those to you, as usual.

The GDN verify that walks multiple tokens per loaded tile, and the skinny conversion straight into MMA operands, follow
ideas described by TandemLLM (0xBakeer). No TandemLLM code is used.

🤖 Generated with Claude Code

data-angel and others added 30 commits November 5, 2026 23:50
Score a shared prefix and N branch continuations in ONE forward pass:
the head stream (prefix[0..F)) and every branch (prefix[F..L) ++ q_i) are
stacked in one varlen batch, so norms, projections and MoE read their
weights once per request. Branch block tables share the head's whole
blocks (ref-counted); attention needs no ordering because the batched
varlen kernel derives each stream's causal offset from kv_lens. Only the
GDN recurrence is ordered: head first, then its conv window and h state
are copied into each branch before the branches run together.

Returns per-branch softmax over single option tokens at the branch's
last row. Jobs run on their own scheduler channel at a quiescent point.
ATLAS_SCORE_TRACE=1|2 logs phase timings.

Also: ChatTokenizer::vocab_size() avoids rebuilding the 248k-entry
vocab map (~45 ms) on every /v1/completions token-id validation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…head

With --lm-head-dtype bf16 the score path computes only the N x K option
logits (FP32 dot products against cached BF16 head rows) instead of the
full-vocabulary head and full-row host copies. Checkpoints that ship a
pre-packed NVFP4 head keep the full-vocabulary path. Splits the score
head and the ATLAS_SCORE_TRACE=2 profiler out of score.rs (500-LoC cap).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model::score_branches becomes Model::score_requests over a slice of
ScoreInput: every request's head (prefix[0..F)) runs first, all heads in one
varlen GDN scan from the zero state; each head's conv window and recurrent
state are then forked into its own branches, and all branches of all
requests run in one varlen scan. Norms, projections and MoE still run once
over every row, so queued requests share one read of the weights.

The scheduler packs queued /v1/score jobs into one pass up to the prefill
arena and the SSM slot count; a failed merged pass retries each job alone.
Responses report how many requests shared the pass (batched).

Observed (one Spark, KnowLine-35B-A3B NVFP4, 300-token states with 4
questions each; preliminary, single run): 8 concurrent requests finish in
1.07 s against ~1.50 s sequential, with probabilities bit-identical to each
request run alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…L_BF16MMA)

Opt-in routed-expert prefill for qwen3.6-35b-a3b/nvfp4: a gate/up GEMM
with SiLU·mul in its epilogue and a down GEMM, both mma.sync m16n8k16
BF16 with the NVFP4 weights dequantized in registers.

The FP8 kernels dequantize each B tile into shared memory between two
barriers and run M64 tiles that are half empty at ~33 rows per expert.
Here weights are the MMA A operand and tokens the B operand (8-token
tiles), each warp dequantizes its own features once per CTA (bit
placement + one bf16x2 multiply) for all token tiles of a <=64-row chunk,
and the K order inside a stage is permuted so a thread's k range is one
scale group. Weights come from the transposed prefill tables the FP8
kernels already read; the checkpoint [N, K/2] layout streamed at 124 vs
207 GB/s for the same bytes.

Precision: e2m1 x e4m3 block scale is exact in BF16 (scale pre-multiplied
by 2^118, global scale applied to the FP32 accumulators) and activations
stay BF16 instead of E4M3. Isolated, vs an FP64 reference: mean error
1.1e-3 of row RMS (BF16 output rounding) vs 2.8e-2 for the FP8 kernels.

Per MoE layer, one score pass (spark serve --profile), FP8 -> BF16-MMA:
  rows   gate_up (us)    down (us, incl. SiLU before)
    96    756 -> 601      439 -> 312
   288   1055 -> 777      649 -> 423
  1056   1860 -> 1283    1288 -> 729
  2112   2924 -> 1939    2229 -> 1093
  4128   4871 -> 3136    3911 -> 1700

Lever off is bit-identical to the parent build (169 score distributions).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…alves

256-thread CTAs: two 128-thread halves with their own weight features read
one staged token tile, halving token reads from L2, and two cp.async stages
keep 2 CTAs (16 warps) per SM. The token-tile count is a template argument
so the tile loads issue ahead of the MMAs. Same per-thread K order, so the
outputs are bit-identical to the previous commit (169 score distributions).

Per MoE layer, one score pass (spark serve --profile), previous -> now:
  rows   gate_up (us)    down (us)
  1056   1283 -> 1108     729 -> 679
  2112   1939 -> 1560    1093 -> 967
  4128   3136 -> 2385    1700 -> 1444
  96 and 288 unchanged (weight-bandwidth bound).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With 16 warps per SM, chaining four down tiles per CTA no longer pays
(isolated: 0.90 vs 0.86 ms at 1k rows), so every CTA computes one tile and
both kernels stage their epilogue through shared memory. What the chaining
still bought in serve was fewer empty CTAs: the down grid now covers 4x the
average expert along y and the kernel strides the rest. Gate/up keeps the
full grid, where the hot experts' serialized chunks cost more.

Down per layer, one score pass, previous -> now (us):
  96 309 -> 292, 288 420 -> 415, 1056 679 -> 662, 2112 967 -> 944,
  4128 1444 -> 1481. Outputs bit-identical (169 score distributions).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
/v1/score accepts "attention": "prefix_bidir" (d3-style decision models):
in the full-attention layers the prefix is a state block read in both
directions that never sees a branch, and each branch is a question block
that reads the whole state and itself in both directions; GDN layers stay
causal. The batched paged attention kernels (BF16/FP8/NVFP4 KV) take a
per-stream state_end (PREFILL_STATE_END; -1 or NULL keeps a stream causal,
byte-identical to before): a query at slot p < state_end reads keys below
state_end, any other query reads every key of its stream. A bidirectional
head reads the state's partial last block from its first branch, so its KV
extent is the state end. Causal and bidirectional requests can share a pass.

Checked on KnowLine (causal) that the causal path is unchanged (same battery
KL and latency), and that prefix_bidir is deterministic and merged == solo
for prefixes of 12, 37, 64 and 300 tokens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A /v1/score job whose rows or sequences exceed one pass (the prefill arena,
the SSM slot count) runs as several passes over its prefix and consecutive
subsets of its branches, reassembled in order, instead of failing with
'rows exceed the prefill arena'. Found by Decision Index long-context rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model::score_capacity reports the rows and sequences one score pass can
take: the prefill arena capped by the GDN prefill buffers (sized
min(max_batch_tokens, max_seq_len)) and the SSM state pool. The score
path checks it with an actionable error, and the scheduler packs and splits
jobs to it. Before, a pass over max_seq_len rows overran the GDN buffers
(cuMemcpyDtoDAsync invalid value).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A 33-stream, ~31k-row Decision Index request passed the arena and GDN
checks but overflowed the fixed metadata scratch. score_capacity now caps
rows by what the scratch holds (MoE top-k staging, per-stream metadata,
staged positions and slots, per-stream pointer entries), so the scheduler
splits such requests instead of failing them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…fill

Moves the cp.async staging, exact NVFP4 dequant, block-scale swizzles,
slot loads and the m16n8k16 BF16 MMA of moe_bf16mma_prefill.cu into
kernels/gb10/common/bf16mma_dequant.cuh, adds the exact e4m3 -> BF16
pair decode the dense FP8 path needs, and moves the MoE GPU test's
FP64 reference helpers into layers/bf16mma_test_ref.rs for reuse.

The MoE kernel's PTX is byte-identical before and after (md5
ba911a66, nvcc 13.0 -O3 -arch=sm_121a --fmad=false).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ILL_BF16MMA)

Opt-in prefill GEMMs for the qwen3.6/3.8-27B target, mma.sync m16n8k16
BF16 with the weights dequantized exactly in registers (the MoE kernel's
design: weights are the A operand, tokens 8-row B tiles, two 128-thread
feature halves sharing a staged token tile):

  * NVFP4 MLP: gate+up in one GEMM with SiLU*up in the epilogue, then down,
    on the transposed [K/2, N] prefill tables (two launches for three GEMMs
    and a SiLU-mul).
  * GDN in_proj_qkvz / out_proj: the checkpoint's per-tensor FP8 [N, K] rows
    (block-scale grid checked constant along K at load), where the default
    quantized activations per 128 for an FP8 x FP8 GEMM at 12.6 TFLOPS.
  * Attention q/k/v/o: the transposed NVFP4 tables.
  * GDN in_proj_ba + gates: a token-tiled MMA kernel (the token-parallel one
    re-read the weights from L2 per token: 0.67 ms per layer at 1k rows).

Activations stay BF16 where the default W4A16 tile kernels round them to
E4M3. The grid is rasterized in 16-chunk groups so a weight tile streams
from DRAM once per 1024 rows, and the host picks the row-chunk count for
the wave count; every output is one CTA's fixed-order K loop, so results do
not depend on the grid (115 score distributions bit-identical across two
grid choices). Lookups happen only with the lever set, so other targets'
boot audits are unchanged; lever off is bit-identical to the parent on the
d3 oracle set.

Preliminary, single-harness (ennspark04, d3-ultra-NVFP4, serve flags as in
the SparkScore runbook, ATLAS_SSM_DECODE_RING=0 ATLAS_GDN_BATCHED_FLA=1,
score_sweep prefix_bidir, one rep of 5, median engine ms):
  rows    parent   lever on
    96     258.7     145.3
   288     569.8     280.2
  1056    1830.5     905.8
  2112    3495.2    1798.8
  4128    6824.5    3530.6
(gdn_ba_gates_prefill was measured at every row count; it now starts at
256 rows, where its few CTAs stop losing to the old kernel: 79 vs 62 us at
96 rows.)

d3 oracle (d3_mask_check, 49 answers, d3's BF16 logits): prefix_bidir mean
KL 0.0163 -> 0.0106, argmax agree 47/49 -> 47/49; causal 0.0494 -> 0.0474.
A/B vs the parent over 115 distributions: mean KL 2.4e-3, max |dp| 0.11,
one argmax flip (the parent's E4M3 activation noise; the oracle moves
toward d3's own runtime).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… lever

Only qwen3.6-35b-a3b ships moe_bf16mma_prefill, and a lookup that misses
fails the boot audit, so other MoE targets must not issue it. The GPU test
resolves the kernels directly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A score pass computes exactly rows [0, total), but zeroed the whole
prefill essentials (hidden, residual and the dense FFN scratch, about
1.8 GB at a 16K-row arena: ~9 ms of memset ahead of the first kernel on
every pass). Zero each buffer's share of the pass's rows instead; rows
past it keep what an earlier pass left, as they already do in every
prefill chunk after the first.

Probs are bit-identical to the previous build over a 16-request set run
largest-first (stale rows present). Preliminary, single-harness (with the
next commit, d3-ultra-NVFP4, score_sweep_d3 N=1 median of 5, one box):
engine ms 145.1/281.0/905.3/3538.9 -> 134.6/269.2/891.1/3509.9 at
96/288/1056/4128 rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
rope_forward_mrope_interleaved evaluated an FP64 pow and a sincos per
(position, pair, head), 28 times over at the 27B's head count. The angle
depends only on (position, pair): a block now walks heads x, x+grid.x,
... with one evaluation. grid.x = heads is the old launch exactly; the
launcher gives each block several heads once the row count alone fills
~4 blocks an SM, and decode-sized calls keep one head a block.
Same arithmetic per element: probs bit-identical to the previous build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…UNK_TC)

One kernel per GDN scan in place of the FLA path's three (recompute_wu,
the state spine, fwd_o): a CTA per (stream, value head, 64-column value
block) walks the stream's 64-token chunks with every matmul on mma.sync
m16n8k16 and FP32 accumulation, and only the output and the final state
leave it. Per chunk:

  T  = (I + L)^-1            FP32 diagonal blocks, split-BF16 MMA merges
  R  = V - diag(e^gc) K S    so uc = T diag(b) R = U - W S without W or U
  O  = (diag(e^gc) Q S + P uc) / sqrt(d)
  S <- e^gc_last S + (K diag(decay))^T uc     (S FP32 in registers)

FP32 intermediates that feed a product (S, R, T diag(b), P, uc, decayed
K) are split into BF16 hi + lo; the in-chunk gate sum stays serial in
token order. Two warp groups overlap the state-free half of a chunk
(K K^T, the inverse) with the state half (K S, Q S, Q K^T), and the next
chunk's K and V stream in with cp.async while the current one computes.
Each stream is computed by its own CTAs, so results do not depend on what
shares the launch. Wired into the single-stream, uniform-batch and varlen
scans; the module ships for the 27B dense targets and is looked up only
with the lever set.

Isolated kernel, 48 v-heads, one stream (ennspark03): T=256 100 us,
T=4096 1376 us. nsys GPU ms per pass for the GDN scan kernels (three FLA
kernels -> this one), preliminary, single-harness: d3-ultra-NVFP4, serve
flags --kv-cache-dtype bf16 --max-seq-len 16384 --max-num-seqs 32
--max-batch-size 32 --max-prefill-tokens 16384
--gpu-memory-utilization 0.80 --disable-thinking --lm-head-dtype bf16,
ATLAS_SSM_DECODE_RING=0 ATLAS_GDN_BATCHED_FLA=1
ATLAS_DENSE_PREFILL_BF16MMA=1, score_sweep_d3 shapes N=1, ennspark03,
2026-11-06, one captured pass each:
  rows 288: 29.6 -> 7.5   rows 1056: 105.4 -> 21.1   rows 4128: 384 -> 73.5
Engine ms, this commit vs its parent, median of 5:
  rows    parent   lever on
    96     134.6     125.6
   288     269.2     247.3
  1056     891.1     803.1
  4128    3509.9    3250.0
d3 oracle (49 answers vs d3's BF16 logits): prefix_bidir mean KL
0.00964 -> 0.00890, argmax agree 47/49 -> 47/49; causal 0.0471 -> 0.0469.
Repeat passes are bit-identical; merged-vs-solo matches the parent's
(three small-prefix requests differ in both: the attention BR choice).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
alloc_sequence resets a slot's whole SSM column (h, conv, and the MTP
intermediates and checkpoints: ~1.7 ms of memset per stream on the 27B)
and synchronizes. A score branch with a head gets the head's conv window
and recurrent state copied over whole, and a score pass never reads the
MTP scratch, so allocate score streams without the reset and zero h and
conv only for streams that start from zero (heads, and branches of a
prefix shorter than a block). The slot's next owner still resets it on
claim.

Probs bit-identical to the parent over the 16-request set. Preliminary,
single-harness (same serve flags and levers as the previous commit plus
ATLAS_GDN_CHUNK_TC=1, score_sweep_d3 median of 5, ennspark03), engine ms
parent -> this commit:
  L=64:  N=1 124.7 -> 125.8   N=4 192.1 -> 187.9   N=16 529.4 -> 510.2
  L=256: N=1 247.2 -> 246.2   N=4 328.3 -> 322.0   N=16 665.9 -> 642.5

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s (ATLAS_DENSE_PREFILL_LOWP)

Opt-in on top of ATLAS_DENSE_PREFILL_BF16MMA=1, per projection group:
`gu,dn,qkv,o` (NVFP4 weights x NVFP4 tokens, W4A4), `gu8,dn8,qkv8,o8`
(NVFP4 weights x E4M3 tokens, W4A8) and `qkvz,gout` (the GDN FP8 weights
x E4M3 tokens, W8A8); `all` = every W4A4 / W8A8 group. The BF16-MMA
kernels' CTA tiling, raster and weight staging are shared (db_body gains
the token format as a template parameter; the BF16 instantiations are
unchanged, lever off is bit-identical on the d3 oracle set):

  * W4A4: mma.sync kind::mxf4nvf4 m16n8k64; the MMA applies both E4M3
    per-16 block scales, so the weights are the checkpoint's bytes
    (byte-transposed in registers from the [K/2, N] prefill tables).
  * W8A8: m16n8k32 e4m3 on the per-tensor FP8 rows.
  * W4A8: kind::mxf8f6f4 scale_vec::1X; each feature's NVFP4 values are
    re-encoded per 64-K stage as E4M3 of w*s/2^E with 2^E as the UE8M0
    row scale (values with <= 4 significant bits exact, the rest round
    once). Correct but ALU-bound as written.
  * Tokens are quantized per token by dl_quant_nvfp4 (the ModelOpt
    NVFP4 quantizer under a power-of-two per-token global scale) or
    dl_quant_fp8 (E4M3, power-of-two per-token scale) into the arena's
    ffn_act scratch; the GEMM epilogue applies the token scale with the
    weight tensor scale. Fixed K order per output, as before.

GPU test: the kernels against an FP64 reference on the activations read
back from the scratch (the quantizer checked on the way: power-of-two
token scale, block scales within E4M3 rounding, nearest codes).

Preliminary, single-harness (one GB10, d3-ultra-NVFP4, serve flags of
the SparkScore runbook, ATLAS_SSM_DECODE_RING=0 ATLAS_GDN_BATCHED_FLA=1
ATLAS_DENSE_PREFILL_BF16MMA=1, score_sweep_d3 prefix_bidir, one rep of 5,
median engine ms):
  rows   BF16-MMA   gu,dn,qkvz,gout   all     qkvz,gout   gu8,dn8,qkvz,gout
    96     143.7        135.0         134.8     143.5         152.2
   288     280.4        227.5         223.1     273.6         290.6
  1056     905.3        651.6         633.8     851.2         850.3
  4128    3534.8       2467.5        2381.9    3292.9        3185.7
d3 oracle (prefix_bidir, 49 answers, d3's BF16 logits), mean KL / agree,
and the A/B vs BF16-MMA over 115 distributions (mean KL):
  BF16-MMA 0.00964 47/49; gu,dn,qkvz,gout 0.0121 48/49 (2.5e-3);
  all 0.0214 47/49 (3.7e-3); qkvz,gout 0.0123 47/49 (4.5e-4);
  gu8,dn8,qkvz,gout 0.0145 47/49 (7.8e-4).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With ATLAS_GDN_CHUNK_TC the scan kernel now normalizes its Q and K rows
itself, bit for bit as l2_norm_bf16 (same pair squares, the same
butterfly-per-warp reduction rebuilt from the quad that holds a row, eps
1e-6), and prefill_phase1_l2_batched skips the separate pass exactly when
the fused kernel serves every scan (`gdn_chunk_tc_serves`, one predicate
for both). Paths that normalize on their own only re-normalize unit rows.

Probs bit-identical to the parent over the 16-request set, so the d3
oracle is unchanged (prefix_bidir mean KL 0.00890, agree 47/49).
Preliminary, single-harness (serve flags and levers as the previous
commit, ATLAS_GDN_CHUNK_TC=1, score_sweep_d3 N=1 median of 5,
ennspark03), engine ms parent -> this commit:
  96 rows 125.8 -> 125.3, 288 246.2 -> 245.0, 1056 800.9 -> 793.4,
  4128 3189.9 -> 3172.0

Co-Authored-By: Claude Opus 5.5 <[email protected]>
prefill_phase1_proj_batched ran the BA projection + gates into
ssm_gates and then copied the whole [rows, 2 nv] FP32 block into
gdn_bufs.gate_beta, which has the same layout. Write it there directly:
one D2D copy per SSM layer fewer, and the GPU idle gap it opened between
the gates kernel and conv1d. Same values (shared file: only the output
pointer of the existing ba_gates_prefill call changes).

Probs bit-identical over the 16-request set (measured with the next
commit).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d's state in place

With ATLAS_GDN_CHUNK_TC a score pass's recurrence is two launches per SSM
layer: every head from zero, then every branch with the kernel's new
entry-state table pointing at its head's final state, so the 3 MB-per-
layer state copy into each branch (and the gap it opened before the scan)
is gone. The per-layer state and entry-state pointer tables for all SSM
layers are staged once per pass (`score_stage_ssm_tables`; the capacity
check counts them). The layer side is a new TransformerLayer method,
`score_gdn_scan` (default Ok(false), shared trait: one method added);
without the lever the pass keeps the fork + group path unchanged.

Probs bit-identical to the parent over the 16-request set; merged-vs-solo
unchanged (the three small-prefix mismatches predate this branch: the
BA-gates kernel switches implementation at 256 pass rows). Preliminary,
single-harness (serve flags and levers as before, ATLAS_GDN_CHUNK_TC=1,
score_sweep_d3 median of 5, ennspark03), engine ms with the previous
commit, parent -> this:
  96 rows 125.3 -> 123.9, 288 245.0 -> 244.2, 1056 793.4 -> 794.1,
  4128 3172.0 -> 3175.2; N=4: 192 rows 187.9 -> 183.0, 384 322.0 -> 318.0
(parent N=4 figures from two builds earlier, same harness)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
free_sequence zeroes the slot's h and conv state for all SSM layers and
synchronizes (~1.7 ms of memset per stream on the 27B, inside the score
engine time). Every claim already zeroes what it reads (alloc_sequence's
reset; a score stream zeroes its start state or reads its head's), so
the score pass now frees through free_sequence_dispatch(seq, false),
which releases the slot unzeroed. Every other caller keeps the zeroing
free (`Model::free_sequence` passes true).

Probs bit-identical over the 16-request set run twice back to back (the
second run on unzeroed slots), and a greedy chat completion is identical
before and after score passes. Preliminary, single-harness (as the
previous commit), engine ms parent -> this:
  N=1: 96 rows 123.9 -> 120.8, 288 244.2 -> 241.3, 1056 794.1 -> 793.6,
       4128 3175.2 -> 3169.4
  N=4: 192 rows 183.0 -> 177.0, 384 318.0 -> 310.6
  N=16: 576 rows 510.2 -> 458.5, 768 642.5 -> 598.8 (N=16 parent from
       two builds earlier)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eaper W4A8 re-encode

The low-precision twins run one CTA per SM with 16 token tiles per warp
(128-row chunks): each weight tile is read from L2 by half as many CTAs,
which bounded W4A4 / W8A8 at a few hundred rows (a loads-only ablation of
W4A4 gate+up at 288 rows took 750 of its 786 us, and grew with the chunk
count). The K loop is instantiated per tile count instead of switching per
stage. Per-output arithmetic is unchanged: 115 d3 score distributions
bit-identical to the previous commit.

W4A8 re-encodes with cvt.rn.f16x2.e2m1x2 and one f16 multiply per pair,
and derives the per-stage UE8M0 exponent from the FP32 bits.

Preliminary, single-harness (one GB10, microbenchmark at the 27B shapes,
min of 5 x 10 launches, us; BF16-MMA / before / after):
  W4A4 gate+up  288 rows  1296 / 786 / 755    1056: 4683 / 2722 / 2415
  W4A4 down     288       815 / 525 / 372     1056: 2286 / 1159 / 1060
  W8A8 qkvz     288       725 / 617 / 530     1056: 2491 / 1591 / 1233
  W4A8 gate+up  288      1298 / 1421 / 998
End to end, ATLAS_DENSE_PREFILL_LOWP=gu,dn,qkvz,gout (serve flags of the
SparkScore runbook, score_sweep_d3 prefix_bidir, one rep of 5, median
engine ms; BF16-MMA -> previous commit -> this one):
  96 rows 143.7 -> 135.0 -> 133.3; 288: 280.4 -> 227.5 -> 207.8;
  1056: 905.3 -> 651.6 -> 603.2; 4128: 3534.8 -> 2467.5 -> 2450.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w-precision GEMMs

Each stage's buffer has a full mbarrier (every thread's cp.async copies,
cp.async.mbarrier.arrive.noinc) and an empty one (every thread done
reading it); the next stage is issued after computing the current one, so
a warp may run a stage ahead of the slowest. A compute-only ablation of
W4A4 gate+up at 4128 rows spent a quarter of its time in the per-stage
__syncthreads. Four stages for all three kernels (W8A8 at 96 KiB). The
lever's `1` now means gu,dn,qkvz,gout (W4A4 MLP, W8A8 GDN). Per-output
arithmetic unchanged (115 d3 score distributions bit-identical).

Preliminary, single-harness (one GB10, microbenchmark at the 27B shapes,
min of 5 x 10 launches, us; previous commit -> this one):
  W4A4 gate+up  288: 755 -> 656   1056: 2415 -> 1838   4128: 9310 -> 7512
  W4A4 down     288: 372 -> 381   1056: 1060 -> 862    4128: 3992 -> 3694
  W8A8 qkvz     288: 530 -> 527   1056: 1233 -> 1122   4128: 5090 -> 4764
  W4A8 gate+up  288: 998 -> 952   4128: 12852 -> 11836

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… solo)

serves_ba picked the tensor-core BA kernel by the pass's total rows (>= 256),
and the two kernels sum in different orders, so a request's gates, and its
score probabilities, changed with what it was batched with. The tensor-core
kernel now serves every row count on this path: per layer 79 vs 62 us at 96
rows (under 1 ms a pass), 155 vs 674 us at 1056.

Merged vs solo (12 d3 answers of 108..149 prompt tokens, solo then all 12
concurrently, three rounds; one GB10, serve flags of the SparkScore runbook
plus ATLAS_DENSE_PREFILL_BF16MMA=1 ATLAS_GDN_CHUNK_TC=1): before 4/36
bit-identical (max |dp| 4.0e-4, ATLAS_DENSE_PREFILL_LOWP=gu,dn,qkvz,gout);
after 36/36 with that mix, with gu8,dn8,qkv8,o8,qkvz,gout, and with the
low-precision lever off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…_ROWS128)

A FlashAttention-2 layout of inferspark_prefill_paged_batched_64 for the
BF16 KV cache at HDIM 256, same arguments and masks (causal, sliding
window, PREFILL_STATE_END prefix-bidirectional):

  * every warp owns 16 query rows end to end: Q as A-fragments in
    registers, S, the online softmax and O; P goes from the S
    accumulators straight into the PV A-fragments (no P tile, no row-stat
    exchange), K and V fragments by ldmatrix (.trans for V);
  * K and V double buffered and shared by 128 rows, V converted to FP16
    once per tile in place by the threads that loaded it, one barrier per
    KV tile, shifts for the power-of-two page size.

Per row it processes the BR=64 kernel's KV tiles plus, at most, tiles
fully masked for that row (exp(-1e30 - m) = 0 leaves m, l and O as they
were), with every MMA, softmax update and rounding in the same order, so
the output is bit-identical: 0 differing elements of 25.2 M against the
BR=64 kernel at 4096 rows in both mask modes, and score probs bit-identical
over the 16-request set (so d3 oracle unchanged, prefix_bidir KL 0.00890).

Isolated, one stream, 24 q / 4 kv heads (ennspark03): prefix_bidir 4096
rows 14.4 -> 7.4 ms (28 -> 55 TFLOPS), causal 7.6 -> 4.0 ms; 2500 rows
bidir 5.6 -> about 3.3 ms. Preliminary, single-harness (serve flags as
before, ATLAS_GDN_CHUNK_TC=1, score_sweep_d3 median of 5), engine ms
parent -> lever on: 96 rows 120.8 -> 122.4, 288 241.3 -> 241.1, 1056
793.6 -> 785.7, 4128 3173.2 -> 3051.4, 2112 rows (L=2048 N=2) 1576.0 ->
1548.7. The module ships for the 27B dense targets and is looked up only
with the lever set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
data-angel and others added 3 commits November 9, 2026 15:04
With swap space on (the default 3 GB) the scheduler frees room for every
new request before any live sequence is swapped out, reclaiming from the
prefix cache first. It sized that room as the whole prompt
(prompt_len / block_size + 1), before the request's prefix lookup. A warm
server's free blocks sit near zero (the cache pins what it holds), so the
reclaim evicted least-recently-used radix leaves -- the tail of the very
conversation being continued -- until a whole prompt was free. Past half the
pool the match became pool - prompt: on a 22,559-block pool (349K usable
tokens) matched + prompt sat at 348,816-348,829 on every turn past 174K
(Qwen3.8-27B, one DGX Spark, agent and synthetic sessions alike), so each
turn re-prefilled twice its growth and the cost kept climbing.

swap_gate::blocks_for_admission subtracts the blocks the lookup will hand
over, from a read-only Model::cached_prefix_blocks probe (peek_matched_tokens,
the same probe the batched kernel path already credits). Vision prompts and
models without a prefix cache credit nothing: the old sizing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Formatting only (rustfmt from atlas-release-builder:1.93.1); no code changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ses the interval

Interval checkpoints fired only when a chunk ENDED on a multiple of
--ssm-checkpoint-interval blocks. An idle server's first chunk is the whole
arena, the prefill budget plus one row per decode slot (16,384 + 64 with 64
sequences), so every later chunk end sat 4 blocks past a 1,024-block multiple:
a cold 180K-token prefill on one DGX Spark (Qwen3.8-27B, 2026-11-09) saved no
interval checkpoint, only its tail. When a concurrent 162K-token request later
evicted that conversation's last 39K tokens, the 155K-token KV match had no SSM
anchor below it and the turn recomputed all 194K tokens. A busy server's
16,384-token chunks saved one per chunk.

ckpt_interval::crosses_interval fires when a chunk crosses an interval
boundary. Aligned chunks keep the old cadence exactly; chunks are not split, so
prefill work is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh
AzeezIsh merged commit 1f6de55 into Atlas-Inf:main Nov 10, 2026
17 of 24 checks passed
AzeezIsh added a commit that referenced this pull request Nov 10, 2026
pdl.rs: the Ripple PDL target moves to the per-target switch list.
dflash_head / dflash_loader / ops: keep both module sets (DSpine + Ripple conv, tree_verify + verify_rows).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AzeezIsh added a commit that referenced this pull request Nov 10, 2026
…KV budget

#333 gave γ 9..16 the w4a16_gemv_batch16 tier and builds the drafter before
the KV budget, so Ripple-65B's DFlash2 drafter (γ=16) now quantizes 7 GEMMs x 5
layers (~2.1 GB) beside its BF16 weights. On a 96 GB gfx1151 box Ripple leaves
~1.5 GB pre-KV and the boot fails (framework f251/f252: cuMemAlloc 0.0 MB free).
Skip with a warning when free memory would drop under a 2 GB floor; the drafter
keeps its BF16 arms, as it did before #333.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AzeezIsh added a commit that referenced this pull request Nov 10, 2026
…atched-GEMV tiers; on for Ripple strix-hip

Since #333 the DFlash drafter is built before the KV budget. Ripple-65B's
drafter is 7.5 GB BF16, and on a 96 GB gfx1151 box that leaves 0.1 GB of KV
(256 tokens; framework f256) where pre-merge had 0.8 GB (the drafter then
loaded into the post-KV growth reserve).

ATLAS_DFLASH_DROP_BF16 already frees q/o/gate/up/down after NVFP4
quantization, but only with the tensor-core tiers. At gamma <= 16 and batch 1
every drafter pass is <= 16 rows, which the w4a16_gemv_batch16 tier serves from
the same twins, so allow the preshrink there too. A target opts in with
[dflash].drop_bf16; the server applies it only at max_batch_size x gamma <= 16,
and the env var still overrides. A dropped projection reaching a BF16 GEMM
fails loudly (small_m_gemm::ensure_bf16_present).

The NVFP4 install guard no longer skips when the twins were parked.

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

Copy link
Copy Markdown
Contributor

@data-angel Post-merge receipts from one GB10 (sparky). The PR binary is 29f3b59e75 built from a fresh tree (target qwen3.8-27b/nvfp4). The post-merge main 1f6de550b (with 798c676) is also checked. Checkpoint: stock nvidia/Qwen3.8-27B-NVFP4 @482ca0f3, no TandemLLM overlay. Profile: the levers listed in the PR. Serve: --kv-cache-dtype bf16 --max-num-seqs 64 --max-batch-size 64 --max-seq-len 262144 --enable-prefix-caching --dflash --draft-model incoai/Qwen3.8-27B-DFlash2 --dflash-gamma 8 (--speculative is rejected alongside --dflash on this branch).

Exactness, the headline claim, holds. SparkQwen greedy_eq.py (8 prompts × 320 tokens, reasoning_effort low, temp 0) gives serial decode == DFlash2, 8/8 identical, in each of these cases:

  • C1 and C8;
  • 64-way (8 × C8 at once, all eight batches);
  • C1 and C8 behind a shared 4.4K cached prefix.

Post-merge main reproduces the same hashes. Atlas cross-contamination is 8/8 identical. ssm-state-poisoning-gate passes: collapsed 0, unmeasured 0, min cached 1024; 12 rounds jittered, as on main's own first record.

Speed vs main 999bfc48d on the shipped qwen3.8-27b-nvfp4 recipe serve (MTP K=4, 8 seqs, 32K, FP8 KV, --disable-thinking dropped so both arms see the same requests). Each arm runs its own serve profile, so these are two observations, not a one-variable A/B. Cells are n=2–3 from one serve:

this PR main recipe
decode-floor (reasoning none, MinHeap, 1500 cap), median tok/s 55.4 (accept 5.29) 28.2 (accept 2.95)
sq_bench decode C1, prose / code / JSON (thinking on) 27.8 / 45.6 / 43.6 14.9 / 16.4 / 16.0 (speculation off in <think> on main)
sq_bench aggregate C1 / C2 / C4 / C8 ~29 / 51 / 72 / 90 ~13 / 23 / 43 / 58
TTFT cold 2K / 8K / 16K / 28K (s) 1.32 / 4.90 / 10.7 / 21.3 3.6 / 13.8 / 28.7 / 53.0
TTFT warm 8K / 20K (s) 0.32 / 0.38 0.39 / 0.44

The prefill and concurrency numbers match your table. Decode is lower than your "after" column, as expected without the overlay.

Gates on this profile (ATLAS_DENSE_PREFILL_LOWP=1 on): BFCL ST-995 is 87.94 / 87.16 (floors 83.82 / 83.72; the shipped recipe scored 87.44 / 87.09 in our earlier job). agentic-webserver is 10/10 and 10/10, Σwall 619 s. 0 ERROR/panic lines in any serve log.

One bug: plain decode at 64 sequences dies at load with no error. It's the same flags without --dflash, so serial. The process is SIGKILLed (exit 137, kernel NV_ERR_NO_MEMORY) right after SSM state pool: 64 slots, still with --gpu-memory-utilization 0.80. The DFlash log points at the cause: SSM decode-rollback ring: SKIPPED (speculative decode active) ... Saves 81.3 GB (64 s…. At 8 sequences the ring is 8 slots × 8 seqs (9696 MB) and serial boots fine. The ring grows linearly in --max-num-seqs, and nothing budgets for it or fails fast. Now that 64 is a supported width, plain decode there (or any non-speculative fallback) should either size the ring into the budget or refuse with a message.

Notes:

  • With --enable-prefix-caching + DFlash the serve warns about a community-reported SM12.x regression. In our runs the prefix-cache cases above were exact, so that warning may be stale for this path.
  • CI items still open on main from this series: 11 files over the 500-LoC cap, and the rustdoc private-link errors (qwen4exp_decode_fuse → launch_gdn_fused, and exact_verify → batch_lever twice).

@data-angel
data-angel deleted the q27/upstream-20261109 branch November 10, 2026 15:21
maplepaladin73 pushed a commit to maplepaladin73/atlas that referenced this pull request Nov 11, 2026
…hree private intra-doc links

main's own dflash2_selector_abi test has failed since Atlas-Inf#329 changed the
qualified strix-hip selector (exact round top-K) without moving the pin, which
turns cargo test and llvm-cov red on every PR. The rustdoc job fails on three
intra-doc links to private items added in Atlas-Inf#333.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@data-angel

Copy link
Copy Markdown
Contributor Author

@AzeezIsh thanks for the receipts, and for a3cbcd222, which makes a load that can't fit the SSM snapshot pools fail with a message. That covers the plain-decode load crash at 64 sequences. Sorry for the slow reply.

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.

2 participants