LLM GPU VRAM, KV Cache & Token Throughput Calculator

Budget GPU memory for model weights, live context, and activation workspace. Estimate the minimum GPU count and a decode bandwidth ceiling.

Jump to results

Inputs

Model and context
B
%
GPU and runtime

Enter bandwidth independently of the memory preset. Capacity and bandwidth specifications use decimal GB.

GB/s
%
%

Results

Runs in your browser
Required memory
95.144GB
Minimum GPU count
2GPUs Aggregate memory lower bound
Decode bandwidth ceiling
315.481tok/s Ideal aggregate across the batch

Compare measured decode speed with this bandwidth ceiling. Verify the model fits each rank individually.

GPU memory footprint
GPU memory footprint95.144 GB required on 2 devices. 42.95 GB of KV cache.Used VRAM95.144 GBWeightsKV cacheWorkspaceFree2 × 72 GB usable32,768 tokens / sequence
Detailed results
Model weights42 GB
Active KV cache42.95 GB
Activation and scratch reserve10.194 GB
Usable memory per GPU72 GB
Usable memory across GPUs144 GB
KV per cached token327.68 kB
Ceiling per sequence78.87 tok/s

How the estimate works

KV bytes = 2 × layers × hidden width × KV-head ratio × bytes × tokens × sequences

The model assumes dense decoder-only attention. FP16 uses two bytes per parameter, FP8 and INT8 use one, and Q4_K_M uses a rough 0.60 bytes to include mixed precision and quantization metadata. Use the actual model file size to check this assumption.

Keys and values grow with the live context and batch. GQA reduces the cached width by the ratio of KV heads to query heads. Workspace is an adjustable percentage of weights plus KV, with a separate allowance for unavailable GPU memory.

The GPU count is a memory lower bound. The decode ceiling assumes perfect sharding and one sweep of weights and active KV per batch step at full bandwidth. Kernel overhead, compute, prefill, cache sharing, allocator fragmentation, and interconnect can lower measured output.

Frequently asked questions

How does grouped-query attention change inference VRAM?

With 8 KV heads for 64 query heads, the KV cache stores one eighth as much as full multi-head attention with the same head width. Enter 12.5% for the ratio.

Will the minimum GPU count guarantee a model loads?

It is the smallest count with enough aggregate modeled memory. Check per-rank tensor shapes, runtime sharding choices, and reserved memory on the target cards.

Why does a longer context reduce the decode bandwidth ceiling?

Each generated token may read keys and values for the active context. The extra memory movement leaves less bandwidth for decode steps, even when model weights stay constant.