Commit Graph
3 Commits
Author SHA1 Message Date
Robert KarlandClaude Fable 5.1 0b72e4cf08 Qwen3.6 step 3: qsa_layer without the indexer - dense attention through the split-K kernel, no selection buffers, KV streaming refused
For a geometry without an indexer (has_indexer() false) the shapes carry idx_n_head 0 (the kernels' dense signal), the state's pooled rows are the ring's 2 (0 bytes at idx_dim 0), the buffers carve no cell scores, no ids and no gather scratch (1 + 1 + 512 MiB at 262,144 cells), and qsa_layer skips the raw key, the append, the indexer query, the scores and the top-k: the split-K kernel reads every cell with a null ids. The gather path and the short flash adapter are refused for the dense model (sized for 2,051 and 256 cells). KV streaming does not apply to dense attention (every block resident every token): qsa_kv_streaming_applies says why for the CLI, and qsa_state_init refuses as the backstop.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 12:54:17 -07:00
Robert KarlandClaude Fable 5.1 d4976de9ef Qwen3.6 step 3: the plain block at hc = 1 in layer.cpp (norms, residual adds, head), the GR path untouched
`ModelGeometry::hc == 1` (qwen35moe) selects llama.cpp's pre-norm residual block in block_layer_pre /
block_layer_post / lm_head_mix: rms_norm(R) * attn_norm -> mixer -> R += out -> rms_norm(R) *
post_attention_norm -> MoE -> R += out, head rms_norm(R) * output_norm.  Two row-count helpers
(plain_norm_rows, plain_residual_rows) carry it, so the verify window's T-row calls are the single-token
kernels per row by construction.  No pending write: the add is applied where the reference adds it.  The
GR kernels are never entered at hc = 1 (one stream through gr_read is not a plain norm: the harness shows
it).  layer_verify_compatible gains a geometry overload that drops the fused-GR and indexer requirements
where the model has neither; the no-argument form keeps its Flash-Next meaning.

docs/QWEN36-35B-A3B.md section 3.5; geometry-inventory.md rows 4, 22, 23.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 11:54:24 -07:00
Robert KarlandClaude Fable 5.1 12a7825605 Import Strata at 6f32ec0 (upstream snapshot, unmodified)
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>
2026-10-04 12:55:44 -07:00