KV-cache calculator
How much GPU memory does the attention cache need? Compare MHA, GQA, MQA, MLA, sliding-window, looped and hybrid linear-attention models by context length, batch size and precision. Presets come from published model configs, each with its source.