Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
cb5112a
docs(NEW-CANDIDATE-PORTS): specify inkling2_loop W1, the CPU forward …
lu-zero Nov 25, 2026
842aff2
feat(NEW-CANDIDATE-PORTS): port inkling2_loop W1 CPU forward
lu-zero Nov 25, 2026
bf2c58c
fix(NEW-CANDIDATE-PORTS): serve padded logits and pin W1 decode consi…
lu-zero Nov 25, 2026
c3ae6ec
test(NEW-CANDIDATE-PORTS): map inkling2 divergence and audit forward ops
lu-zero Nov 25, 2026
d0d413d
fix(NEW-CANDIDATE-PORTS): correct conv history, GQA mapping and softm…
lu-zero Nov 25, 2026
9ee936f
fix(NEW-CANDIDATE-PORTS): isolate first bad op to layer 5 dynamic sho…
lu-zero Nov 26, 2026
b1360a9
docs(NEW-CANDIDATE-PORTS): record remaining f32 reduction-order drift
lu-zero Nov 26, 2026
84ae977
docs(NEW-CANDIDATE-PORTS): localize divergence to loop-pass bank and …
lu-zero Nov 26, 2026
741e7ed
docs(NEW-CANDIDATE-PORTS): record pass-1 bank probe and own the bank
lu-zero Nov 26, 2026
5a5b51b
docs(NEW-CANDIDATE-PORTS): tagged taps settle pass-1 bank question
lu-zero Nov 26, 2026
dea99a9
perf(NEW-CANDIDATE-PORTS): mirror ggml query-fastest AttnRes mix layout
lu-zero Nov 26, 2026
76fc7ad
perf(NEW-CANDIDATE-PORTS): mirror ggml quantized-input Q8_0 and NVFP4…
lu-zero Nov 26, 2026
6ea5193
perf(NEW-CANDIDATE-PORTS): mirror ggml BF16 activation quantization
lu-zero Nov 26, 2026
a7e66c9
perf(NEW-CANDIDATE-PORTS): mirror ggml Q5_K/Q8_K expert dots and lock…
lu-zero Nov 26, 2026
76d6ff4
test(NEW-CANDIDATE-PORTS): record attention score tap attempt
lu-zero Nov 26, 2026
fd4d458
perf(NEW-CANDIDATE-PORTS): mirror ggml flash attention for the CPU arm
lu-zero Nov 26, 2026
64f5bf3
docs(NEW-CANDIDATE-PORTS): record flash path and oracle capture hazards
lu-zero Nov 26, 2026
6372c4b
perf(NEW-CANDIDATE-PORTS): mirror the oracle's F16 KV cache rounding
lu-zero Nov 26, 2026
830fdd1
docs(NEW-CANDIDATE-PORTS): record the batch-shape mechanism finding
lu-zero Nov 27, 2026
0ca4a80
perf(NEW-CANDIDATE-PORTS): add bit-proven nrc=2 mmla Q8_0 projection …
lu-zero Nov 27, 2026
440979f
perf(NEW-CANDIDATE-PORTS): select the mmla Q8_0 projection by batch s…
lu-zero Nov 27, 2026
152c41d
docs(NEW-CANDIDATE-PORTS): stop the oracle instrument hunt and record…
lu-zero Nov 27, 2026
eb53ebb
docs(NEW-CANDIDATE-PORTS): record shared-seam repack GEMM bit-proof gap
lu-zero Nov 27, 2026
554ad94
fix(QUANT-GGUF-CIQ-GEMM): mirror ggml's fused Q8_0 gemm accumulation
lu-zero Nov 27, 2026
2017046
test(NEW-CANDIDATE-PORTS): add seam bit-proof test and records for Q8…
lu-zero Nov 27, 2026
dbed40f
docs(NEW-CANDIDATE-PORTS): cache-write tap exonerates F16 rounding
lu-zero Nov 27, 2026
c5243bd
docs(NEW-CANDIDATE-PORTS): per-position preconv/postconv localization…
lu-zero Nov 27, 2026
4879a22
perf(NEW-CANDIDATE-PORTS): consume chunked-prefill seam in W1 gate co…
lu-zero Nov 29, 2026
89168c4
docs(NEW-CANDIDATE-PORTS): record kernel-class falsification and gate…
lu-zero Nov 29, 2026
802c25b
docs(NEW-CANDIDATE-PORTS): record the inkling2 three-way verdict
lu-zero Nov 29, 2026
951a11c
fix(NEW-CANDIDATE-PORTS): q8 tie-rounding nearest-even and layer-majo…
lu-zero Dec 2, 2026
d69747c
fix(NEW-CANDIDATE-PORTS): bit-match inkling2 clip, rms-norm and short…
lu-zero Dec 2, 2026
2b5bd24
docs(NEW-CANDIDATE-PORTS): record wave-5 and wave-6 conv/clip stage p…
lu-zero Dec 2, 2026
c329acf
fix(NEW-CANDIDATE-PORTS): bit-match inkling2 flash attention to ggml …
lu-zero Dec 3, 2026
881d643
fix(NEW-CANDIDATE-PORTS): bit-match inkling2 norm, clip, gate/wo rout…
lu-zero Dec 3, 2026
9490beb
fix(NEW-CANDIDATE-PORTS): bit-match inkling2 MoE router, weight norm,…
lu-zero Dec 3, 2026
ecf706d
fix(NEW-CANDIDATE-PORTS): bit-match inkling2 sink recurrence and rela…
lu-zero Dec 3, 2026
b663fdc
fix(NEW-CANDIDATE-PORTS): bit-match inkling2 n>=3 bank-mix combine to…
Dec 3, 2026
f23b886
fix(NEW-CANDIDATE-PORTS): bit-match inkling2 f32 MatVec dot to ggml_v…
lu-zero Dec 3, 2026
12cd972
docs(NEW-CANDIDATE-PORTS): record wave-12 decode-step bisect in PROCE…
lu-zero Dec 3, 2026
084181f
fix(NEW-CANDIDATE-PORTS): normalize inkling2 loop-control halves sepa…
lu-zero Dec 3, 2026
07b6907
fix(NEW-CANDIDATE-PORTS): route inkling2 Q8_0 expert down through the…
lu-zero Dec 3, 2026
07e54e8
fix(NEW-CANDIDATE-PORTS): route inkling2 Q5_K experts through the tra…
lu-zero Dec 3, 2026
fbaafda
records(NEW-CANDIDATE-PORTS): complete the inkling2 W1 row and reconc…
lu-zero Dec 3, 2026
d6332af
fix(NEW-CANDIDATE-PORTS): void the unused nc in the Q5_K scalar fallback
lu-zero Dec 4, 2026
299d50c
ci(NEW-CANDIDATE-PORTS): point the arm64 lane at the gated K-quant re…
lu-zero Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .agents/engine-matrix.md

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions .agents/evidence/inkling2-loop-w1-20261125/PROCESS.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"gen": [152717, 13, 68014, 32], "ptoks": [371, 151451, 149879, 151194, 149884]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"gen": [152717, 13, 68014, 32], "ptoks": [371, 151451, 149879, 151194, 149884]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"gen": [152717, 13, 68014, 32], "ptoks": [371, 151451, 149879, 151194, 149884]}
149 changes: 149 additions & 0 deletions .agents/evidence/inkling2-loop-w1-20261125/threeway-harness.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
// Three-way probe: oracle kproj tap vs ggml mul_mat on the oracle's own captured
// inputs and weights. Scratch instrument, /tmp only.
#include "ggml.h"
#include "ggml-alloc.h"
#include "ggml-backend.h"
#include "ggml-cpu.h"
#include "gguf.h"
#include "ggml-backend-impl.h"
#include <dlfcn.h>
using repack_buft_fn = ggml_backend_buffer_type_t (*)(void);
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <cmath>
#include <cstdint>

int main(int argc, char ** argv) {
const char * gguf_path = argv[1];
const char * tap_path = argv[2];
int n_tok = atoi(argv[3]);

// ---- load taps (kproj_in and kproj, il=0, the record with this token count) ----
// tap file format: INK2TAP1, then per record: il(4) qlen(4) q taglen(4) tag count(8) f32*
std::vector<float> kproj_in, kproj;
int64_t in_rows = 0, out_rows = 0;
{
FILE * f = fopen(tap_path, "rb");
if (!f) { fprintf(stderr, "cannot open %s\n", tap_path); return 1; }
char magic[8]; fread(magic, 1, 8, f);
while (true) {
int32_t il, qlen;
if (fread(&il, 4, 1, f) != 1) break;
fread(&qlen, 4, 1, f);
char q[128]; fread(q, 1, qlen, f); q[qlen] = 0;
int32_t tl; fread(&tl, 4, 1, f);
char tag[256]; fread(tag, 1, tl, f); tag[tl] = 0;
int64_t n; fread(&n, 8, 1, f);
std::vector<float> v(n);
fread(v.data(), 4, n, f);
if (il == 0 && strcmp(q, "kproj_in") == 0 && n / 2304 == n_tok) {
kproj_in = v; in_rows = 2304;
fprintf(stderr, "kproj_in rec: n=%lld tag=%s\n", (long long) n, tag);
}
if (il == 0 && strcmp(q, "kproj") == 0 && n / 1024 == n_tok) {
kproj = v; out_rows = 1024;
fprintf(stderr, "kproj rec: n=%lld tag=%s\n", (long long) n, tag);
}
}
fclose(f);
}
if (kproj_in.empty() || kproj.empty()) { fprintf(stderr, "taps not found\n"); return 1; }

// ---- load weight ----
gguf_init_params params = { true, nullptr };
gguf_context * gu = gguf_init_from_file(gguf_path, params);
if (!gu) { fprintf(stderr, "gguf load failed\n"); return 1; }
const char * wname = "blk.0.attn_k.weight";
int wi = gguf_find_tensor(gu, wname);
if (wi < 0) { fprintf(stderr, "tensor %s not found\n", wname); return 2; }
enum ggml_type wt = gguf_get_tensor_type(gu, wi);
size_t wofs = gguf_get_data_offset(gu) + gguf_get_tensor_offset(gu, wi);
// dims from gguf
int64_t wne[4];
{ const int64_t * wne_p = gguf_get_tensor_ne(gu, wi); for (int k = 0; k < 4; ++k) wne[k] = wne_p[k]; }

ggml_init_params ip = { 1024ull*1024*64, NULL, true };
ggml_context * wctx = ggml_init(ip);
ggml_tensor * wt_meta = ggml_new_tensor(wctx, wt, 4, wne);
size_t wnbytes = ggml_nbytes(wt_meta);
fprintf(stderr, "weight %s type=%s ne=[%lld,%lld,%lld,%lld] bytes=%zu\n", wname, ggml_type_name(wt),
(long long) wne[0], (long long) wne[1], (long long) wne[2], (long long) wne[3], wnbytes);
ggml_free(wctx);

void * wdata = malloc(wnbytes);
{
FILE * f = fopen(gguf_path, "rb");
fseek(f, wofs, SEEK_SET);
if (fread(wdata, 1, wnbytes, f) != wnbytes) { fprintf(stderr, "weight read failed\n"); return 1; }
fclose(f);
}

fprintf(stderr, "weight %s type=%s ne=[%lld,%lld,%lld,%lld] bytes=%zu\n", wname, ggml_type_name(wt),
(long long) wne[0], (long long) wne[1], (long long) wne[2], (long long) wne[3], wnbytes);

// ---- build both computations ----
size_t buf_sz = 512ull * 1024 * 1024;
void * buf = malloc(buf_sz);
ggml_context * ctx = ggml_init({ buf_sz, buf, false });
ggml_tensor * W = ggml_new_tensor(ctx, wt, 4, wne);
{ // route the weight exactly like llama-server: CPU_REPACK buffer -> gemm q8_0_4x8
void * hcpu = dlopen("/tmp/llamacpp-inkling-tap-build/bin/libggml-cpu.so.1", 2 | 0x100);
auto fn = (repack_buft_fn) dlsym(hcpu, "_Z35ggml_backend_cpu_repack_buffer_typev");
if (!fn) { fprintf(stderr, "dlsym repack buft failed: %s\n", dlerror()); return 3; }
ggml_backend_buffer_type_t rbuft = fn();
ggml_backend_buffer_t wbuf = ggml_backend_buft_alloc_buffer(rbuft, wnbytes + 4096);
W->buffer = wbuf;
W->data = ggml_backend_buffer_get_base(wbuf);
wbuf->iface.init_tensor(wbuf, W);
wbuf->iface.set_tensor(wbuf, W, wdata, 0, wnbytes);
fprintf(stderr, "weight routed through %s buffer\n", ggml_backend_buft_name(rbuft));
}
ggml_tensor * X = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, in_rows, n_tok);
memcpy(X->data, kproj_in.data(), 4 * kproj_in.size());

ggml_tensor * Yfull = ggml_mul_mat(ctx, W, X); // nrc = n_tok (oracle route)
ggml_tensor * X1 = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, in_rows, 1);
memcpy(X1->data, kproj_in.data(), 4 * in_rows); // column 0 only
ggml_tensor * Yone = ggml_mul_mat(ctx, W, X1); // nrc = 1 (vec_dot route)

ggml_cgraph * gf = ggml_new_graph(ctx);
ggml_build_forward_expand(gf, Yfull);
ggml_build_forward_expand(gf, Yone);
ggml_backend_t cpu = ggml_backend_cpu_init();
ggml_backend_cpu_set_n_threads(cpu, 1);
ggml_backend_graph_compute(cpu, gf);

std::vector<float> yfull(4 * Yfull->ne[0]), yone(Yone->ne[0]);
memcpy(yfull.data(), Yfull->data, 4 * yfull.size());
memcpy(yone.data(), Yone->data, 4 * yone.size());

// ---- compare column 0 (prompt position 1) and all columns ----
printf("col | maxabs(oracle vs full-route) | maxabs(oracle vs one-route) | bitwise-full bitwise-one\n");
for (int c = 0; c < n_tok; ++c) {
double m_full = 0, m_one = 0; int bf = 0, bo = 0;
for (int r = 0; r < out_rows; ++r) {
float o = kproj[c * out_rows + r];
float a = yfull[c * out_rows + r];
float b = yone[r];
double d1 = fabs((double) o - a), d2 = fabs((double) o - b);
if (d1 > m_full) m_full = d1;
if (d2 > m_one) m_one = d2;
unsigned iu; memcpy(&iu, &o, 4); unsigned au; memcpy(&au, &a, 4);
unsigned bu; memcpy(&bu, &b, 4);
if (iu != au) ++bf;
if (iu != bu) ++bo;
}
int ulp1f = 0, ulp2f = 0, bigf = 0;
for (int r = 0; r < out_rows; ++r) {
unsigned iu; memcpy(&iu, &kproj.data()[c*out_rows+r], 4);
unsigned au; memcpy(&au, &yfull.data()[c*out_rows+r], 4);
unsigned dd = iu > au ? iu - au : au - iu;
if (dd == 1) ++ulp1f; else if (dd <= 3) ++ulp2f; else ++bigf;
}
printf("%3d | %.6e | %.6e | bf=%d/%d bo=%d/%d ulp1=%d ulp<=3=%d big=%d\n", c, m_full, m_one,
(int) bf, (int) out_rows, (int) bo, (int) out_rows, ulp1f, ulp2f, bigf);
}
return 0;
}
75 changes: 75 additions & 0 deletions .agents/evidence/inkling2-loop-w1-20261125/threeway-verdict.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# INKLING2-W1 wave 3 (2026-11-30): the missing three-way

## Question
Does the oracle's il=0 k_proj equal the ggml kernel computed on the ORACLE'S OWN
captured inputs and weight bytes?

## Non-perturbation proof (capture validity)
Tap build /tmp/llamacpp-inkling-tap at abca69200 (in-repo diff: capture-only taps;
ggml/ pristine except one getenv-guarded debug print in ggml-cpu.c, disabled —
W1NRC unset during capture). Golden prompt [371,151451,149879,151194,149884]
confirmed by /tokenize parity. Three oracle-server runs, all under
`flock -w 7200 /tmp/bigmodel.lock` (MemAvailable 161 GB logged):
- taps OFF, -t 1 -> gen [152717, 13, 68014, 32] (== golden prefix)
- taps ON, -t 1 -> gen [152717, 13, 68014, 32]
- taps OFF, -t 32 -> gen [152717, 13, 68014, 32]
Identical. `--no-warmup` on all three.

## Capture shape (new fact)
The oracle splits the 5-token prefill into graphs [1 token @t371] + [4 tokens
@t151451..149884] (tap files taps.0000/0001.bin probes + 0002.bin = the 4-token
prefill, 0003.bin = decode @t152717). So the failing k_proj runs as ONE mul_mat
with nrc=4, not a single 5-token graph and not five nrc=1 calls.

## Three-way result (harness /tmp/ink2-w1-cap/threeway.cpp, ggml from the tap build)
Weight blk.0.attn_k.weight q8_0 ne=[2304,1024]. kproj_in/kproj taps from
taps.0002.bin (tag p1, il0). Comparison per output column:

| route (weight buffer) | nrc | maxabs vs oracle kproj | bitwise match |
|----------------------------------|-----|------------------------|---------------|
| plain ctx buffer (vec_dot tier) | 4 | 9.5e-7 | 0/1024 |
| plain ctx buffer (vec_dot tier) | 1 | 2.4e-6 | 0/1024 |
| CPU_REPACK buffer (gemm q8_0_4x8)| 4 | 0.0 | 1024/1024 |
| CPU_REPACK buffer | 1 (decode taps.0003.bin) | 0.0 | 1024/1024 (== plain vec_dot too) |

VERDICT: oracle kproj == kernel(oracle inputs) BIT-FOR-BIT, but ONLY when the
weight is routed the way llama-server routes it: weights are allocated in
ggml_backend_cpu_repack_buffer_type() (registered at ggml-cpu.cpp:65), so the
mul_mat dispatches through ggml::cpu::repack::extra_buffer_type::supports_op
(repack.cpp:5240) to ggml_gemm_q8_0_4x8_q8_0. With the same inputs and the same
weight bytes in a plain buffer, the chunked multi-row vec_dot path
(ggml-cpu.c:1294, blck 16x16, interleaved num_rows_per_vec_dot) differs by
~1e-6 ULP dust. For nrc=1 (decode) repack/gemm falls back and ALL routes agree
bitwise — consistent with decode tokens 0..4 already matching the golden.

FUSED-WQKV SUSPECT FALSIFIED at source: inkling2.cpp:408-410 issues separate
build_lora_mm(layer.wq/wk/wv, ...) ops; no fused [q;k;v] projection exists.

## Structural cause pinned (ours vs oracle)
- Oracle prefill k_proj: one nrc=4 mul_mat through ggml_gemm_q8_0_4x8_q8_0
(i8mm 4x8 tile; per (32-block, 8-subblock): int dot of 8 elements scaled by
d_w[l]*d_x[l], accumulated into f32 per subblock).
- Ours: src/vllm/model_executor/models/inkling2_loop_paged.cpp:330-334 — the
forward is TOKEN-major (for tt at :282); each proj call sees m=1, so prefill
runs Inkling2MatVecMmla (inkling2_loop_ops.cpp:155), a per-row interleaved
vec_dot tier. Summation order != the gemm's: vec_dot sums the four 8-wide
int partials of a 32-block together before one scale; the gemm scales each
8-wide partial separately. That ~1e-6 ULP dust at kproj is the seed that
amplifies through the short conv into the j=5 token flip (151663 vs 161721).

## Fix design (next wave; no arithmetic invention)
vt::cpu::QuantRepackMatmul (src/vt/cpu/cpu_quant_repack_arm.cpp:184) already
transcribes both tiers with proven bit-parity to ggml (m%4==0 rows -> GemmTileQ8_0
in the gemm order; remainder rows -> GemvRowQ8_0 in the vec_dot/gemv order).
Decode needs no change. The repair is routing, not arithmetic: for prefill
ubatches (T>=2) the Q8_0 attention projections must be issued as ONE
QuantRepackMatmul call over all T columns per layer (gemm order), which requires
making the prefill path LAYER-major (or at minimum batching the projection op
across the ubatch where its inputs are already resolved). Token-major per-token
calls can never reach the gemm tier: m=1 selects the fallback, which is exactly
the route the oracle does not take for prefill.
Red-first bit-proof available cheaply: harness threeway.cpp pattern — route our
projection through QuantRepackMatmul on the oracle's captured kproj_in and
require 1024/1024 bitwise vs the oracle tap before any gate run; then the
5-token gate (single capture shape, knob matching the [1,4] oracle plan) must
flip j=5 151663 -> 161721.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ID: ISSUE-LOCAL-01M8EVYQFB7561HSRHS4DF2KGJ
Title: GemmTileQ8_0 uses vmlaq_f32 where ggml accumulates separately; bit-proof vs ggml_gemm_q8_0_4x8_q8_0 fails on 73% of outputs
Row: QUANT-GGUF-CIQ-GEMM
State: OPEN
Kind: bug
GitHub: -
Mirror: PENDING
Availability: FULL
Created: 2026-11-27
Updated: 2026-11-27
Closed: -

## Problem

Bit-proof of vt::cpu::QuantRepackMatmul (cpu_quant_repack_arm.cpp:185, transcribed from ggml_gemm_q8_0_4x8_q8_0) against the pinned ggml reference FAILED: 4656 of 6400 outputs differ bit-for-bit across 100 randomized cases ([4,2304] activations x [16,2304] Q8_0 weights, same QuantRepackWeight/BlockQ8_0x4 interleave both sides; example 3144487.75 vs 3144492.5, rel 1.5e-6; large-magnitude rows included). Root cause identified by diff: vt's GemmTileQ8_0 computes acc = vmlaq_f32(acc, int_to_float, b_d*a_d) (fused multiply-add, one rounding), while ggml's gemm accumulates the product separately (multiply then add, two roundings). The FMA gap is ~1.5e-6 relative on the accumulated dot. Consequence: the F16-rounded K/V cache inherits one-ULP-of-F16 flips (~1e-3 absolute at magnitude 2-4) wherever the f32 dot lands near an F16 rounding boundary, which is exactly the ~1e-3 uniform K residual the Inkling-2-Mini W1 lane measured against the llama.cpp oracle across all ten positions (evidence: /tmp/inkling2-w1/docs/bench-evidence/new-candidate-inkling2-w1-20261125/, the Inkling lane's validated three-way: attention ULP on identical bytes; and /tmp/kolibri11-u3/docs/bench-evidence/kolibri11-u3-oracle-20261125/). The seam is SHARED: kolibri1's proven parity and inkling2's W1 both route projections through MatmulBTQuant/GemmTileQ8_0, so the fix requires re-proving both consumers. Developer approved the seam-fix unit 2026-11-27.

## Resolution

-
29 changes: 29 additions & 0 deletions .agents/issues/_owed/ISSUE-LOCAL-01M89VPD6BYJNCQA3NQNV34F9D.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ID: ISSUE-LOCAL-01M89VPD6BYJNCQA3NQNV34F9D
Title: inkling2_loop CPU: dequantize expert weights on demand instead of resident f32 masters
Row: -
State: OPEN
Kind: task
GitHub: -
Mirror: PENDING
Availability: FULL
Created: 2026-11-25
Updated: 2026-11-26
Closed: -

## Problem

W1 loads the two mainline-layout inkling2_loop GGUFs as resident f32 masters so the host-f32 graph can be gated against llama.cpp abca69200. Measured peak RSS on the UD-Q4_K_M arm is about 106.7 GB (anon-rss 106699264 kB at the kernel OOM of a non-interleaved run); with numactl --interleave=all one arm fits in the 4x64 GB node host, but two arms in one process cannot. The checkpoint has about 26B parameters, its experts are stored at 4-6 bits, and only about 6 percent of experts (top-8 of 128) are touched per token, so resident f32 masters move far more bytes than the compute needs. Follow-up: keep the GGUF weights memory-mapped and dequantize on demand from the stored types (NVFP4 with per-expert F32 scale, Q8_0, Q5_K, F32, BF16), gated on the same abca69200 goldens. bf16 masters are rejected for this CPU arm. Do not change W1.

## Resolution

- SUPERSEDED for the W1 CPU arm on 2026-11-26 (developer-approved scope
enlargement under `.agents/specs/inkling2-loop-w1-cpu-forward-and-token-gate.md`,
amendment of the same date). The exact token gate runs against llama.cpp,
whose mul_mat quantizes the F32 activation to the weight vec_dot_type before
the dot (`ggml-cpu.c:276`, `:1380-1408`); a dequantize-to-f32 arm differs by
~1% and cannot pass. The CPU arm must instead mirror ggml's quantized-input
dot per stored type, keeping the packed quants resident. The footprint
problem this issue records is therefore NOT solved by the original f32
on-demand route: that route is withdrawn. Speed (resident f32 masters at
~106.7 GB peak RSS) remains owed; do not close this issue until a
stored-quant compute path is measured and gated.
Loading
Loading