Commit Graph
3 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 4cecb118ac STRA-338 params p02: native-cpu-expert, cpu-sys, cpu-kernels, cpu-worker, obs down to 5 parameters 2026-11-08 00:36:16 +01:00
Pavlo Ratushnyi fa24c32b07 STRA-338 size-fn: cpu-kernels: Dispatch::with_isa table split per level (fn>30 1 -> 0)
The three kernel tables (scalar, AVX2, AVX-VNNI) move unchanged into one constructor each;
with_isa keeps the support check and the match. The same function pointers and closures are
stored in the same fields; no kernel code changed. leleka-cpu-kernels tests (parity, mxfp4, q8,
lib) pass, test ids unchanged, clippy -D warnings clean.
Codegen effect is not A/B-measured; no performance claim is made.
2026-11-06 18:41:32 +01:00
Pavlo Ratushnyi c1e7c02d1e STRA-338 size-rest: cpu-kernels, cpu-sys, gguf, gptoss and quant-core within 400 lines per file
Oversize files before/after: gptoss 2 -> 0 (lib.rs 1788 into 14 modules, synthetic_model.rs 922 into topic modules),
cpu-sys 2 -> 0 (lib.rs 1007, simd.rs 1503 with its inline x86 module split by kernel family), gguf 2 -> 0,
cpu-kernels 1 -> 0, quant-core 1 -> 0 (iq2s_grid.rs reflowed four entries per line, entries unchanged).
Modules are named after what they hold; public paths are re-exported unchanged; unsafe blocks and SAFETY comments moved
verbatim (cpu-sys 70 -> 70).

Census prod/test (fn>30 / cx>10 / nesting>4 / wide lines): cpu-sys 19/16, 3/0, 2/0, 5/2 -> 11/16, 3/0, 2/0, 3/2;
gptoss 13/16, 6/4, 1/0, 1/7 -> 12/14, 6/4, 1/0, 1/8; gguf 6/5, 6/0, 0/0, 3/1 -> 6/3, 6/0, 0/0, 3/1;
cpu-kernels and quant-core unchanged. Test ids and outcomes unchanged (recorded in docs/architecture/size-split-rest.md).
2026-11-06 16:28:24 +01:00