The MXFP4, Q8_0, int8 and int4 kernels, the Q8_0 quantizer and the half conversions are now Rust
(cpu-sys/src/simd.rs), written operation for operation after the C versions. The C code stays only behind
the test-only feature c-reference, and tests/rust_vs_c.rs checks bit-identical results at the portable,
AVX2 and AVX-VNNI levels. A runtime build compiles no C.
Paired decode on gpt-oss-20b (40 tokens, 10 threads, 5 alternating rounds): median 98 ms per token for
both builds, identical tokens and first-step log-probabilities.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Completes the Q8_0 side of the CPU runtime's kernel set: a float-to-Q8_0
quantizer (scale = amax / 127 as a half, quants rounded to nearest even and
clamped to [-127, 127]) and the Q8_0 x Q8_0 dot, each at scalar, AVX2 and AVX-VNNI
(the quantizer shares the AVX2 code). Tests: the quantizer is bit-identical across
levels and equal to the vendored ggml reference except on exact .5 ties; per-block
integer sums are exact; float results are within the stated tolerance of an f64
reference built from ggml's dequantizer; the portable half conversion equals the
F16C instruction on over a million values. Windows MSVC and Linux GCC, debug and
release. Replaces _cvtss_sh (not available in MSVC) with the packed conversion.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds two EXPERIMENTAL AVX2 MXFP4 kernels that take the activation as f32
scales plus contiguous int8 quants (q8r, q8r4). q8r is tested bit-identical to
the ggml-layout kernel; q8r4 against the stated tolerance. Adds Windows core
topology and thread pinning (cpu-sys topology module) and three kernel-level
benchmarks that interleave variants and report paired ratios.
Findings, recorded in docs/experiments/2026-10-14-cpu-kernel-layout-and-pinning.md:
the chip has 2 fast cores and 10 slower ones; the new layout was faster for a
single thread (paired median 1.32x, 15 pairs) and inconclusive with many
threads; thread pinning did not beat the OS default. The machine was not in a
controlled state, so these are not accepted performance results.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The gpt-oss-20b experts are MXFP4, so the CPU runtime needs this dot product.
Blocks use ggml's byte layout, so GGUF tensors can be read in place. Per-block
integer sums are exact at every level; the float combination is checked against
an f64 reference built from the vendored ggml dequantizers (test-only
ggml-oracle feature) within a tolerance written before the run. Scale
conversion is compared exactly with ggml for every E8M0 code and every finite
half. AVX2 level now means AVX2 + FMA + F16C. ABI version 2.
Adds a kernel-level throughput example (bench_mxfp4); it is not an inference
benchmark and no end-to-end speed claim is made. Records the ggml upstream use
in docs/upstream-ggml.md.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Colibri (JustVugg/colibri, Apache-2.0) is an upstream source for the CPU
runtime, not a dependency. Record the pinned commit, archive and licence
digests, the porting rules, and a per-file ledger with adopt/adapt/reject
decisions. docs/upstream.md (Strata pin) is unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This adds revision 1 of the reference-laptop record for the Windows Core Ultra 7 265U laptop with the Intel AI Boost NPU: identity facts, state at capture, constraints, a drift rule and benchmark pre-conditions, each fact tied to a numbered read-only command run without elevation. Later benchmark and NPU work needs one citable hardware, driver and power identity, so results can be traced to a machine state and flagged stale when that state changes. The page carries one machine-readable block that reuses the vocabulary of the desktop hardware inventory, and the full raw capture stays outside Git and is referenced by its SHA-256 digest only. Power mode, CPU temperature, NPU generation and the NPU memory limit are marked UNVERIFIED rather than inferred, and the page makes no capability or performance claim.
Checks before this commit: no line over 120 characters (longest 118), the JSON block parses and agrees with the tables, 8 relative links and anchors resolve, git diff --check is clean, and the exclusion-list scan against the private capture values found zero matches. Independent reproduction of each documented command is still pending.