kv_cache_bytes_per_token = 0 is used for three unrelated situations in this repo, and a reader querying on it gets all three unless the notes are read
Fields
gotchas/mdl-gotcha-kv-zero-means-three-different-thingsNotes
FULL INVENTORY AFTER THIS PASS. Group 1, cache-free by construction, 0 and justified in notes: all-minilm-l6-v2, all-mpnet-base-v2, bge-base-en-v1-5, bge-large-en-v1-5, bge-m3, bge-reranker-large, bge-reranker-v2-m3, bge-small-en-v1-5, canary-1b-flash, cohere-embed-english-v3, cohere-embed-multilingual-v3, cohere-rerank-v3-5, e5-base-v2, e5-large-v2, gte-base, gte-large, gte-reranker-modernbert, jina-embeddings-v3, jina-reranker-v2-base-multilingual, modernbert-base, mxbai-embed-large-v1, mxbai-rerank-large-v1, nomic-embed-text-v1-5, nomic-embed-text-v2-moe, parakeet-ctc-1-1b, snowflake-arctic-embed-l. Group 2, fixed-size recurrent state: mamba-codestral-7b (model_type mamba2, 64 layers, 128 heads, head_dim 64 - pure SSM, no attention branch at all), rwkv5-eagle-7b (model_type rwkv5, 32 layers), llada-8b-instruct (diffusion, 32 layers, 32 KV heads - the transformer backbone is bidirectional and full-sequence so no cache), mercury (diffusion, no config published - 0 rests on the architecture class). Group 3, bounded-not-growing: lfm2-1-2b and lfm2-5-1-2b-instruct, 6 of 16 layers full attention, 12,288 B/token attention slice recorded in notes, conv layers hold a 3-timestep rolling state. CONTRAST WITH null, WHICH IS A DIFFERENT STATEMENT: seventeen records hold null - the closed-API chat models (claude-haiku-4-5, claude-opus-5-5, claude-sonnet-5-5, gpt-4-1, o3) where no geometry is published at all; deepseek-v4-flash and deepseek-v4-pro, whose config publishes no kv_lora_rank because they use compressed/hashed KV with per-layer compress_ratios and a sparse indexer rather than a rank-512 latent, so there is no single per-token figure to record and inventing one would be the worst possible fill; and five architecture records with no derivable geometry (griffin-14b, hyena-arch, jamba-1-5-large, retnet-arch, samba-7b), two multimodal models whose text tower is not in the top-level config (paligemma-3b-mix-224, parakeet-tdt-0-6b-v2), and the three voyage records corrected here, which moved from 0 to null so that this list and the reasoning above agree. The deepseek-v4 pair is the one to watch: an MLA-adjacent model recorded as if it had ordinary KV would overstate by tens of times, and null is the honest value there.
Cross-references
This record references no other records — it is a leaf. It is cited by 0.