The MTP drafter's ring runs qsa_decode_attn_batch at its --mtp-window (32,768 by default: 512 blocks), so the 128-block cap had moved Flash-Next's drafter onto the online-rescale kernel with another summation order and a smaller scratch. qsa_decode_attn_chunks(cap, s) and the scratch take the shape: sparse keeps ceil(cap / 64) blocks and the old formula, dense is bounded at 128; below sm_75 every sparse shape runs the single-chunk kernel, so Flash-Next's path is the previous kernel, grid and scratch bit for bit at every capacity. The test holds sparse 32,768 -> 512 blocks and the old scratch; the notes state the drafter's case.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
GPU against the float reference: 2e-2 (oracle-crosscheck.md: the Q8 oracle's ffn_moe_out max 5.3e-3 with the 4x
margin; Qwen3.6's five pairs measure 9.7e-3 to 1.3e-2), 3e-2 only for a pair with a Q5_0 role (q4_K/q5_0 measures
2.7e-2 at 2560 x 640, the pair the CMake note already describes). CPU against the reference stays at 3e-2: ggml-cpu
rounds the activations to Q8_K, one scale per 256 values against the GPU's q8_1 per 32 (measured up to 2.2e-2).
CPU against GPU, printed but never gated before, gets 4e-2 (both roundings, measured up to 2.4e-2). Each line prints
its bound. RTX 4090: 15 of 15 ctests, both real files at layers 0 / 34 / 39, q4_K/q5_0 and q5_0/q8_0 pass.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
GdnGeom::gate is kernels::GdnGate (the GDN branch's enum, cherry-picked with
its geometry accessor); Geom::of reads g.gdn_gate(), so the prompt path and
the decode path pick the gate from the same place. 4090: gdn_rec_parity,
gdn_parity and both harness cases pass.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
On sm_61 the looped kernel costs 16-28 registers over PR #540's body (80-92 at G 12 against 63-64) and 13-17% on the Q4_0 pool at short widths; a register cap spilled and cost every format more. So a capacity under kMaxChunks x 64 runs attn_chunk_kernel_pre75_single, the old body with G and the null-ids identity: every Flash-Next state (cap 2,051) is the old kernel to the instruction (interleaved A/B on the 1080 Ti: 42.0 vs 41.0-41.7 us fp16, 38.9 vs 38.9 INT8, 40.8 vs 41.0 Q4_0), and the looped form runs only for the dense model's long-context states, where it is ahead (419 vs 493 us at 32,768). The notes carry the layout, the harness, the tolerances and both cards' numbers.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
pascal-build.md section 4 quotes the gate as it stands after 30e3add (the geometry, the plan, the missing
gate-up/down kernel pairs per layer, the qwen35moe_not_yet message; exit 2 in 0.36 s) for the IQ3_XXS and the
Q4_K_XL files, and the --vram-cap lines at 5722 / 7629 / 8192 / 10490 / 12288 after 2b4fcf1 (free = cap - 164
MiB within 1 MiB). Section 3 answers what expert_multi_test's AVX-512 kernel is for and how the RAM tier is read
in the native-pack path (the CPU lane computes from it on AVX-2 / ggml-cpu, the staging path copies from it).
step2-notes.md section 5 gains the planner's figures at those caps beside the study's table 4.3, the table of the
review's fixes with their commits, the Flash-Next real-file result (the reader reads the Mac's MTP Q2 file; the
guard refuses it with block_count 49), and the rsync excludes the VM tree needs.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
The sm_61 build needed no guard: configure 4 s, the engine 173 s, every other target 43 s more, 0 errors,
cuobjdump shows sm_61 only; `make build CUDA_ARCHS=61` works end to end in 181 s. ctest on the 1080 Ti: 69
pass, 4 fail (one Pascal-specific: kv_hybrid_parity's [5/5], the cc < 70 refusal of qsa_prompt_attn_batch
counted as a failure), 2 skip. The gate is not reached: both real files are refused by the native expert
kernels' down-type whitelist (IQ3_XXS, Q5_K, Q6_K down projections have no grouped kernel) before the VRAM plan
and the qwen35moe_not_yet message. The Q4_K_XL expert total corrected to 19,635,634,176 B.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
Measured on the real UD-IQ3_XXS file, 12 tokens, expert choices and layer inputs forced from llama.cpp: the F32 oracle is
1.4e-2..4e-2 off per layer on quantized-weight seams, the Q8-activation oracle 7e-7..5e-3; dequantization is bit-identical to ggml.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
docs/qwen36-port/oracle-crosscheck.md: 9 trunk cases and 5 nextn cases (one batch, 40 tokens one at a time, chunks of 7,
fused gate_up, fused qkv, a stray expert_weights_scale key, a --like-real fixture) match every cb()-named tensor of the
pinned llama.cpp graph, worst absolute error 1.1e-4; llama-eval-callback's printed stats agree on 209 named nodes;
seven rival readings (SiLU vs sigmoid gate, head pairing, decay order, conv direction, attention gate, top-k
renormalisation, rope pairing) each fail at the layer that makes them. The formulas are pinned to file:line.
qwen36_crosscheck.sh reruns all of it; the eval-callback checker tolerates the tool's truncated log tail.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
tools/qwen36_synth_gguf.py writes a tiny F32 qwen35moe GGUF with the real tensor names and shape rules
(4 layers, one full-attention layer at index 3, 8 experts top-2, a nextn block), --like-real to take
rope/eps/interval/ratios and verify the tensor-name set against a real file, and options for the fused
gate_up / attn_qkv forms llama.cpp also accepts. docs/qwen36-port/gguf-metadata.md records every key and
tensor of the UD-IQ3_XXS file and the MTP build. ref/load.py gains the IQ2_S/IQ3_XXS/IQ3_S/... geometry the
real file uses.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
The A6000 and the 4090 are in use by other agents, so VM 211 (a clone of 210 with the
1080 Ti, 8 vCPU, 12 GiB) is both the measurement and the development machine, and the
sm_61 experimental build is the working build from the first step. Host state checked:
18 GiB available before VM 211, link Gen3 x8.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
The study and execution plan for running Qwen3.6-35B-A3B natively on this tree's Strata
snapshot (6f32ec0), on any single card of compute capability 6.1 or newer with 6 to 32 GB,
self-sized across VRAM, RAM and disk. llama.cpp is the baseline and the oracle only; Project
Maya is the method reference. Primary rung: the .57 host's GTX 1080 Ti with a 12 GiB VM.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
Removed: the Python installer and launchers (setup.py, *.bat, *.sh), the
Python server and web app (serve/), the Python tools (tools/), the Intel
SYCL port (sycl/), Docker files, benchmark results (bench/), the test suite
(tests/, which upstream's own published source also leaves out),
translations, and all docs except DETAILS.md and the paper, kept under
docs/upstream/ as reference.
The engine (src/, include/, CMakeLists.txt) is untouched.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Source: https://github.com/Niko1221/Strata, commit 6f32ec070f23ced9f50e704d854d775da52591ab
(engine 0.1.39, MIT). Every file is as upstream published it; later commits
show exactly what this fork changes.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>