Kestrom KV
by CAPH TECH · Technique · Text & code
Precompiles knowledge into cache files that a local language model loads before answering, so it uses facts and skills without retraining or longer prompts.
Latest · Nov 28PR #31 lets a ported semantic probe decide when a memory cartridge loads; on Gemma 4 E4B 10/10 science prompts and 2/2 keyword prompts triggered, with Python outputs unchanged.
Evidence
- Nov 28Memory cartridges worked more reliably for injecting facts into chat models than editing intermediate layers; calibration with mismatched prompt style dropped science triggering from 10/10 to 2/10.Hands-on test
rizumita - Nov 27Memory cassettes (per-fact KV caches saved as .safetensors) are inserted only when a question matches; weights are untouched and unmatched inputs stay bit-identical to the base model.Hands-on test
rizumita - Nov 27On unseen contexts with Qwen3.5-9B, KV cassettes answered 64/64 two-step questions, versus 32/64 for keyed weight editing; both checked in the same setup.Hands-on test
rizumita - Nov 27On Qwen3.5-9B a 4-person fact swap reused the other 28 caches byte-identically and recompiled in about 4.25 s (first compile 6.25 s).Hands-on test
rizumita - Nov 27On Qwen3.5-9B, 368/368 non-matching and out-of-scope prompts were bit-identical to the base model, and unseen organization and city questions were both 64/64.Hands-on test
rizumita
Show all 16
- Nov 27Composing two cassettes at inference (MAX_MATCH=2) on Qwen3.5-9B answered both people's organizations and cities 64/64 with 0/64 mix-ups; base greedy got organization 1/64, city 16/64.Hands-on test
rizumita - Nov 27Earlier routing attempts on Gemma 4 E4B reached 1/128 (mixed negatives), 99/128 (coarse plus 1-vs-3 gates) and 114/128 (89.1%, three-tier pairwise gates, 310.09 s) before the ridge router.Hands-on test
rizumita - Nov 26Merged into Kestrom (PR #27): precompiled .safetensors prefix-KV 'memory cassettes' injected by DSL rules, with no training, weight edits or prompt text.Maker's claim
rizumita - Nov 26Gemma 4 E4B with a thunder-skill cassette flipped its answer when the MP cost was patched from 30 to 20; the other skill and unrelated Python and capital-city prompts matched the original token for token.Hands-on test
rizumita - Nov 26On 149 unseen questions, prefix-KV injection scored 130/149 correct with 4 wrong, versus 81/149 for the earlier mid-layer MLP-addition method (Gemma 4 E4B).Hands-on test
rizumita - Nov 26Differential rebuild after editing 6 fact cells took 0.19 s (0.031 s per cell), average 976.9 KB per fact; the 21 unedited cells stayed bit-identical.Hands-on test
rizumita - Nov 26Prefix-KV cache is about 1-2 MB per fact on Gemma 4 E4B and about 10 MB on Qwen3.5-0.8B (linear attention); changing the model requires recompiling.Maker's claim
rizumita - Nov 26Includes kestrom kv chat for multi-turn use: a prev-state rule keeps the cache so a follow-up prefilled only 18 tokens, and multiple matching skills are composed on demand with an LRU cache.Hands-on test
rizumita - Nov 26On Qwen3.5-0.8B, a 5-turn dialogue with two domains answered 5/5 correctly, including compose; the template's think-stripping at turn 2 was detected and rebuilt safely.Hands-on test
rizumita - Nov 26Limits: tested only on Apple Silicon MLX with Gemma 4 E4B and Qwen3.5-0.8B; needs a chat template with a separate system turn; chat mode is outside the bit-identity check; weight edits of the same file size go undetected.Maker's claim
rizumita - Nov 26Positioned against ordinary RAG: deterministic rule matching and a bit-identical output guarantee for non-matching prompts; suited to tens to hundreds of facts, not free search over tens of thousands.Maker's claim
rizumita
Alternatives
Made for Kestrom KV