Commit Graph
4 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 3f22c4ae29 Drop stale docs/ references from scripts, tools and deploy files; add rope-regeneration.json 2026-11-23 09:34:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9750539d4d STRA-329: native-cpu-expert AVX2 IQ4_XS multi-token route, fused Q2_0 correction, KAB1 ext case set
Confirmed against the C++ in engine/strata and fixed:
- rust_native_general.rs group_dot_bytes_policy omitted the `gu == 23 && !avx512` multi-token branch of
  native_expert.cpp native_gu_rows (`nt >= mt_min && (iq512_supported || (!cpu512 && iq256_supported))`);
  rust_pool.rs had it since STRA-324. The choice is now one function, gu_multi_route, shared in shape with the
  pool. Regression: a differential test (re-runs itself with STRATA_FORCE_AVX2=1 on an AVX-512 CPU) fails
  with a 1-ULP difference on the old code, plus a routing-table test.
- rust_legacy.rs row256 (STRATA_CPU_YMM=1 on an AVX-512 CPU) now fuses `corr += d*(hx0+hx1)` like expert.cpp
  row_dot (line 242) and row_dot_multi (line 294) under GCC -mfma. Regression: scalar model, fails on old code.

NOT changed, unconfirmed (need the pinned ggml source, which is not in the repo): rust_kq.rs small_dot
`sums += m*s`, rust_k_blocks.rs mins_sum, rust_ggml_extra.rs iq1 scalar.

KAB1: new `--cases ext` (72 cases; the 40 of `all` are untouched) adds token counts 4-7 for the row-type list
and IQ2_XXS / IQ2_XS at 1..8 tokens; GateUpFormat gains Iq2Xxs / Iq2Xs (additive; the runtime still admits only
18/21/22/23/42). The C++ driver edits are list-only and were NOT compiled here (no ggml). 16 tokens exceed MAXT
and the KAB1 header and are not covered. New Rust-only test token_count_invariance: the first two tokens of a
group are bit-identical for groups of 2..8 tokens on all 14 gate/up x down pairs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:26:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 dcb2f3dbbd feat(kernel-ab): C++ driver time mode, aa.sh A/A control (STRA-317)
kab time: monotonic ns + TSC slices with a dependent-add clock calibration before and
after each slice (tq_cpu_parity --bench method; slices whose clock moved >5 percent are
dropped, threshold from tq_cpu_parity.cpp:303), RESIDENT and STREAMED regimes, pinned
single-thread pool, 4096-aligned buffers, manifest and case input hashes, effective
environment. aa.sh: seeded schedule, N rounds of two fresh processes, per-round ratios
only. time_smoke.sh runs the acceptance commands. Only tools/kernel-ab/ is touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:40:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9b39c56968 tools/kernel-ab: out-of-tree C++ reference generator for the CPU kernel A/B (STRA-248)
KAB1 files-only exchange: kab gen writes case-<id>.in (64-byte header, synthetic
blocks), runs the unchanged engine/strata CPU expert kernels for tree avx512 and
tree avx2 (two scrubbed child processes) and writes case-<id>.cpp-<tree>.out and
manifest.json last (tmp + rename, sha256 + length of every file, provenance).
verify_manifest.py (stdlib, Python >= 3.9) implements the reader rule with exit
0/1/2. The build is a Makefile over the pin's translation units and the pinned
ggml 3cf03257f (no cmake on the server; flags transcribed from the CMake files,
make check-pin detects drift). kab poolcheck proves the stage composition equals
the real ExpertPool bitwise. The time mode is STRA-317.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:04:55 +01:00