No description
  • JavaScript 56.3%
  • HTML 24.1%
  • Python 8.5%
  • C++ 4.9%
  • CSS 3.2%
  • Other 2.9%
Find a file
Venkat Raman 7d449d1fe1
KV Cache Calculator: recurrent state precision for every linear-attention model (#49)
* KV Cache Calculator: recurrent state precision for every linear-attention model

The recurrent-state precision selector applied to the Qwen formula only;
the two Kimi KDA formulas fixed the recurrent state at 4 bytes per element.
Engines make this a choice: SGLang --mamba-ssm-dtype (bf16 is required for
FlashInfer GDN decode on SM100+), vLLM --mamba-ssm-cache-dtype.

- both KDA formulas read the selected precision profile; the model default
  stays fp32, or bf16 when kda_recurrent_state_bytes_per_element says 2
- the control shows for every model with a linear-attention state; the
  help text names both engine flags; a "KDA recurrent-state precision"
  row joins the result components
- Python port: calculate_cache_size(recurrent_state_precision=...) with
  the same defaults and labels; the Qwen convolution term now counts
  kernel - 1 past inputs as the web calculator does
- tests: Kimi K3 checkpoint 449,372,160 B at fp32 and 232,316,928 B at
  bf16 in both suites; GLM-5.3-Flash follows the same selector; Qwen3.8
  state bytes match the web values

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* KV Cache Calculator: recurrent-state tooltip only on its ? button

Point the label at the select so hovering the label or dropdown no longer
opens the help, and shorten the help text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-20 15:05:33 +08:00
assets KV Cache Calculator: recurrent state precision for every linear-attention model (#49) 2026-10-20 15:05:33 +08:00
config/_default Add KV Cache Analyzer (#14) 2026-06-12 22:23:08 +08:00
content Add blog: Over One Trillion Tokens per Day: How Mooncake Powers Approaching.AI’s Token Factory (#46) 2026-09-15 15:34:41 +08:00
data Add DeepSeek V4.1 Flash (#47) 2026-09-24 16:48:31 +08:00
hugo-blox fix: upgrade braces to 3.0.3 (CVE-2024-4068) (#42) 2026-09-11 12:35:32 +08:00
images Initial commit 2024-06-11 15:52:50 +08:00
layouts KV Cache Calculator: recurrent state precision for every linear-attention model (#49) 2026-10-20 15:05:33 +08:00
packages/kvcache-simulator KV Cache Calculator: recurrent state precision for every linear-attention model (#49) 2026-10-20 15:05:33 +08:00
scripts kvcache-simulator: commit the bundled resources, release 0.1.3 (#48) 2026-10-12 16:28:44 +08:00
static Rename analyzer to hit rate simulator (#16) 2026-06-15 15:37:40 +08:00
tests KV Cache Calculator: recurrent state precision for every linear-attention model (#49) 2026-10-20 15:05:33 +08:00
wasm/kvcache-sim Add KV Cache Analyzer (#14) 2026-06-12 22:23:08 +08:00
.editorconfig Initial commit 2024-06-11 15:52:50 +08:00
.gitattributes Add KV Cache Analyzer (#14) 2026-06-12 22:23:08 +08:00
.gitignore kvcache-simulator: commit the bundled resources, release 0.1.3 (#48) 2026-10-12 16:28:44 +08:00
.hugo_build.lock update 2024-06-12 14:32:35 +08:00
go.mod update 2024-06-15 15:14:36 +08:00
go.sum update 2024-06-12 14:32:35 +08:00
hugoblox.yaml Initial commit 2024-06-11 15:52:50 +08:00
LICENSE.md Initial commit 2024-06-11 15:52:50 +08:00
netlify.toml Initial commit 2024-06-11 15:52:50 +08:00
README.md Default the KV Cache Calculator to Kimi K3 (#44) 2026-09-11 12:47:40 +08:00
test.md add blox-tailwind 2024-06-12 15:21:49 +08:00
theme.toml Initial commit 2024-06-11 15:52:50 +08:00

Official website source for KVCache.AI — the home of open-source projects and research on KV cache management and LLM serving optimization.

About KVCache.AI

KVCache.AI advances the state of the art in Large Language Model (LLM) inference optimization. In decoder-only Transformer models, data from diverse modalities can ultimately be transformed into KV cache, making it a central component of modern LLM serving systems. As a result, KV cache has become a key focus for improving inference efficiency through techniques such as caching, scheduling, compression, offloading, and disaggregated serving architectures.

Through open-source projects and academic research, KVCache.ai develops effective, practical, and high-performance solutions for KV cache management and LLM serving optimization. The goal is to make LLM deployment more accessible, efficient, and cost-effective for organizations of all sizes.

  • Mooncake — A KV cache-centric disaggregated architecture for LLM serving.
  • KTransformers — A CPU/GPU heterogeneous LLM inference and fine-tuning framework for running and tuning 100B+ models on accessible workstation hardware.
  • AgentENV — An open-source runtime platform designed for AI Agent applications.

Tools

  • KV Cache Size Calculator — Estimate KV cache capacity for common production LLM families, including DeepSeek, GLM, Kimi, Qwen, MiniMax, MiMo, Dots3, Inkling and others.
  • KV Cache Hit Rate Simulator — Calculate KV cache hit rate of preset or your own trace, under different memory budgets.

Tech Stack

This site is built with:

  • Hugo (v0.126.3) — static site generator
  • Hugo Blox — theme and page builder (Tailwind CSS)
  • Pagefind — static search (used in production builds on Netlify)

Content is written in Markdown with YAML front matter. Custom layouts and shortcodes live under layouts/.