LLM VRAM calculator
Estimate GPU memory for large language model weights.
Multiply the number of parameters by the bits per parameter, then convert to GiB. A 7-billion-parameter model at 4 bits needs about 3.26 GiB for weights. Allow extra space for the KV cache, quantisation metadata and runtime.
Your entries and files are processed in your browser.