Commit Graph
10 Commits
Author SHA1 Message Date
Robert KarlandClaude Fable 5.1 1d2e400920 Qwen3.6 step 2: the native expert layout takes the model's widths; the engine reads the geometry before the layout
expert_layout_load(pack, n_layers, n_expert, n_embd, n_ff, err): each layer's NativeFmt is built with
the model file's widths instead of the compile-time 2560/640 (geometry-inventory.md row 108), and a
pack without native_experts.txt (the canonical Q2_0 form) is refused for any other geometry.
generate.cpp reads ModelGeometry from the --native file before the layout load, logs it for a
non-Flash-Next file, refuses the fused tensor forms by name, takes the router k and the embedding
dims from it, and reads the rope keys under the file's own architecture prefix.

tools/iq_pack.py: --layout-only writes native_experts.txt alone and prints the census; the draft
(nextn) block of an -MTP file is left out of the trunk layout; fused ffn_gate_up_exps refused;
FORM carries qwen35moe's attn_norm / post_attention_norm / output_norm (F32 as stored).

tests/data/native_experts/qwen36-{iq3_xxs,q4_k_xl}.txt from the real files (40 x 256; 10,594 and
18,726 MiB, mean blobs 1.035 and 1.829 MiB, as censused in docs/QWEN36-35B-A3B.md), and
expert_layout_test loads them at 2048 x 512 with every layer's types (IQ4_XS down on 34/38/39;
Q6_K down on 34/38/39, Q5_K gate/up on 39) and sees them refused at 2560 x 640.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:48:22 -07:00
Robert KarlandClaude Sonnet 5.5 0e5344d343 Qwen3.6 tests: allow the fp16 scale of Q8_0 in the activation rounding bound
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:29:56 -07:00
Robert KarlandClaude Sonnet 5.5 e452c5192e Qwen3.6 port: GQA fixture and rival, ggml dequant check, Q8-activation mode, per-layer teacher forcing
- synth --heads N,KV; cross-check case gqa4_2 (4 heads / 2 KV, seed 11): 211 seams and 50 nextn seams match; the
  h % n_head_kv rival (opts gqa_map=interleaved) fails at kq-3 and is a negative test; with one KV head it is invisible.
- tools/qwen36_dequant_ggml.cpp + qwen36_check_dequant.py: ref/load.py (gguf-py) against ggml's own to_float on the real
  file, bit-identical for Q6_K, IQ2_S, IQ3_XXS, IQ4_XS.
- ref/qwen36.py: --act-quant q8 (Q8_K / Q8_0 activation rounding as ggml's quantized matmul does), --force-topk,
  --force-inputs (start each layer from a llama.cpp dump), tools/qwen36_spread.py to tabulate the spread per seam class.
- qwen36_crosscheck.sh: LLAMA_CPP_DIR override so it runs from a separate worktree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:29:45 -07:00
Robert KarlandClaude Sonnet 5.5 20949925f3 Qwen3.6 port: invariant tests for the oracle and the fixture (python3 -I)
21 tests: full-attention layers are 3 mod 4 (and 30 GDN + 10 attention at the real geometry, the nextn block outside the
trunk), top-k weights renormalise and a stray expert_weights_scale is ignored, GDN state/conv shapes and
chunked == token-by-token, the output gate is SiLU(z) (negative test against sigmoid), the attention output gate is
applied to the second half of each head's q slice, seven rival readings each move their seam by more than 5 percent,
IMRoPE rotates 25 percent with text positions and an e-sector stays fixed, dump format, causality, the nextn block.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:09:52 -07:00
Robert KarlandClaude Sonnet 5.5 0c850c35c9 Qwen3.6 port: oracle cross-check against llama.cpp's own graph, recorded
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
2026-10-11 09:09:52 -07:00
Robert KarlandClaude Sonnet 5.5 f1ef81d86c Qwen3.6 port: numpy oracle for qwen35moe, cb()-named dumps, and the llama.cpp cross-check tools
ref/qwen36.py is a teacher-forced forward pass written from the submodule's qwen35moe.cpp graph: embedding,
GDN layers (causal conv, L2-normed q/k, decay + delta-rule recurrence, SiLU-gated RMS norm), full-attention
layers (joint q+gate projection, IMRoPE on 25%, causal GQA, sigmoid output gate), softmax top-k MoE with
renormalised weights and the sigmoid-gated shared expert, output norm, lm head, and the nextn block of
graph_mtp. Every cb()-named tensor is dumped as <name>-<layer>.f32 plus manifest.txt. Each reading with a
plausible rival is a switch (Model.opts) so the fixture can be shown to tell them apart.
tools/qwen36_dump_llama.cpp dumps the same names, in full, from the real llama.cpp graph;
qwen36_compare_dumps.py, qwen36_check_eval_callback.py and qwen36_crosscheck.sh compare them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:03:43 -07:00
Robert KarlandClaude Sonnet 5.5 96305391f8 Qwen3.6 port: synthetic qwen35moe GGUF generator, real-file metadata dump, load.py knows the IQ types
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
2026-10-11 09:02:00 -07:00
Robert KarlandClaude Fable 5.1 c00942d2c2 Restore the development tooling the port needs from the import commit
ref/load.py, the pack, profile, MTP, tokenizer and fixture tools with their tests, and the
tests/ sources the root CMakeLists already wires under STRATA_BUILD_TESTS. Development only:
the shipped binary still needs no Python. Taken unchanged from 12a7825 (Strata 6f32ec0); the
HIP tests, the installer tests and the conversation-cache tests stay out.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:43:10 -07:00
Robert KarlandClaude Fable 5.1 8894a81288 Remove installer, Python, non-target platforms, benchmarks and marketing
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>
2026-10-04 12:56:12 -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