The upstream release tree, every tracked file byte for byte, from
https://github.com/VecSzn/PolyStrata at tag v0.1.45-poly.1, commit
d0cd84dc6bd009d1d9e2191e4e28cc76b80f1ee3. Nothing added, removed or edited;
git diff against this commit is the whole story of the fork.
Verified: the commit's tree hash equals the upstream commit's tree hash.
Every tracked file, .gitignore, .gitmodules and both submodules (llama.cpp at
3cf03257, llama-muse at 335916a) are removed so the next commit can import
PolyStrata v0.1.45-poly.1 unmodified and be the diff baseline of the fork.
UnbiasedStrata 1 remains at tags unbiasedstrata-1 (main, b124b59) and
unbiasedstrata-1-muse-spark-native (4c824e6).
Verified: git ls-files is empty; the working directory holds only .git.
The fixtures (cmake/qwen36_attn_fixtures.cmake) are the synthetic qwen35moe GGUFs at head_dim 256 for 16/2, 24/2 and 4/2 with ref/qwen36.py's dumps on 40 tokens; the test runs the dumped q/k/v through the engine's norm, RoPE table, fp16 append, decode kernel and gate and holds them to Qcur-3, Kcur-3#2, kq_soft_max-3, kqv-3, attn_gated-3. Negatives: the gate skipped, adjacent-pair RoPE, the GQA map h % n_kv, G = 12 on 16 heads, the sparse width 2,051 on 3,000 cells. qsa_attn_bench uses only the pre-step-3 entry points so it builds against the old kernel too.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
cmake/qwen36_oracle_dumps.cmake writes k.gguf (2 k-heads / 4 v-heads of 128, 256 experts
top-8, shared expert 512 in Q8_0, BF16-exact gate weights) and runs ref/qwen36.py on the
11-token "hello world" sequence in F32 and --act-quant q8 modes; qwen36_seam_parity reads the
fixture and the dumps and holds, by llama.cpp's cb() names:
- conv_output_silu-0, new_state-0, final_output-0 through the legacy, pinned native and
fused decode paths token by token with the state carried, and through the verify window's
multi-token kernels over two windows (8 + 3) with commits; the fused path also at
q/k_conv_predelta-0, gate-0, beta_sigmoid-0. Worst 2.3e-7 against 8e-5 (gdn_out class).
- ffn_moe_topk-0 identical and ffn_moe_weights_norm-0 at 6e-8 from the oracle's logits.
- ffn_shexp_gated-0 on the native Q8_0 path with the 1-D BF16 scalar gate at 3.5e-7 against
the Q8 oracle (1.2e-2 against the F32 oracle: the activation rounding); shared_expert_multi
bitwise the per-token call.
Negatives through the kernels: the sigmoid gate (126% at final_output-0), the un-normalised
router weights (24%), the shared gate skipped (52%). Exits 77 without the fixture.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
Maya's layer composition shape on the synthetic fixture: a pack the test writes (the F32 norms, the BF16
router and shexp gate) loaded by WeightTable, then block_layer_pre stage 0 / half 2, the residual add,
block_layer_post and lm_head_mix held to attn_norm-N, attn_residual-N, attn_post_norm-N, ffn_moe_topk-N,
ffn_moe_weights_norm-N, ffn_out-N, l_out-N, result_norm and result_output per layer and token, with the
mixer and expert outputs teacher-forced from the dumps (the fixture's projections are F32, which the engine
has no kernel for: the mixer seams are reported with the engine's own error until the sibling branches and
the step-4 pack). The window's row arithmetic: the T-row helpers and native_moe_combine_multi bitwise the
one-row calls, and the 8-token sequence carried through the four layers against l_out-N per position.
Negative cases: the GR read at hc = 1 with identity bottleneck weights, the post-attention norm skipped and
unweighted, top-10 on the 8-expert file, a missing norm, the Flash-Next compatibility still demanding the
fused read. cmake/qwen36_block_fixtures.cmake runs ref/qwen36.py on 8 tokens; the CTest entries depend on
step 2's qwen36_synth_data fixture.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
On VM 211 (cmake 3.31.6) the fixture test failed before the generator ran, so model_geometry_test was
"Not Run":
CMake Error at cmake/qwen36_synth_fixtures.cmake:11 (list):
list index: 1 out of range (-1, 0)
With CMP0007 unset, list(GET) drops the empty element of "toy.gguf;" and index 1 does not exist. cmake 4.x
(the Mac) treats the policy as NEW. With the policy set, qwen36_synth_fixtures writes its 4 files on the VM
(the vendored gguf-py, numpy 2.2.4) and model_geometry_test passes there.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
ModelGeometry gains the architecture, the draft block count, n_rot / rope sections / base / eps, the
shared-expert width, the router k and has_ple; derive() computes the conv channels and the value dim
from the head counts instead of storing Flash-Next's. strata/core/model_geometry.hpp reads every
field from the <arch>.* keys (hc = 1, no PLE, no indexer for qwen35moe), checks the derived quantities
against the file's own (ssm.inner_size), refuses the fused ffn_gate_up_exps and attention attn_qkv
forms by tensor name, and carries the step 2 gate message. check_architecture accepts qwen35moe with
the key set llama.cpp's loader requires (presence only; the file is the authority on sizes).
tests/core/model_geometry_test.cpp: every field of the toy geometry from tools/qwen36_synth_gguf.py,
the nextn block subtracted, both fused forms refused by name, a qwen4exp file keeping hc 4 and PLE,
'llama' refused by name, a contradictory ssm.inner_size refused; --real FILE asserts the real
Qwen3.6-35B-A3B values (checked on the IQ3_XXS and Q4_K_XL files).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
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>