Calculate VRAM requirements for any LLM including model weights, KV cache, and overhead.
VRAM = weights + KV cache + overhead Weights = P ร Q / 8 KV cache = B ร L ร P ร 2 ร Q / 8 Where: P=parameters, Q=bits, B=batch, L=context