100
DevTool • AI • Productivity
This tool allows you to calculate the memory footprint of the KV cache for large language models. It supports various model architectures including grouped-query attention (GQA), multi-query attention (MQA), latent attention (MLA), sliding-window attention, and hybrid models. You can specify parameters such as the model configuration (read from Hugging Face), serving engine (vLLM, SGLang, TensorRT-LLM), cache precision (BF16, FP8, FP4), context tokens per request, and concurrent requests. The calculator also considers tensor parallelism and the prefill-to-decode handoff rate.
The tool provides detailed breakdowns of cache size per token, per request, and per GPU, helping you understand and optimize memory usage for efficient LLM deployment.
Built with