LLM inference VRAM and KV cache calculator
Estimate how much GPU memory your model weights and KV cache need. Compare context length, precision and tensor parallelism, then use the results to plan a vLLM or SGLang benchmark.
Cluster & Model Setup
70B dense model with GQA.
Per GPU Memory Allocation Breakdown
Serving command templates
Set MODEL_PATH to your checkpoint. For FP8 or INT4 weight estimates, use a checkpoint in the selected format that your serving engine supports. Verify cache dtype support on your engine and GPU before running the command.
How context length affects concurrency
Longer sequences consume more KV cache per request. Compare your typical and longest sequences, then benchmark with representative prompt lengths and batch sizes to measure actual throughput and latency.
For serving configuration, read the vLLM context length and KV cache guide. For training memory and runtime estimates, use the LLM training calculator.