Running a large language model on your own hardware, rather than calling a hosted API, shifts the cost question from 'price per token' to a very different one: does this model's memory footprint actually fit on the GPU (or GPUs) I have available? Getting that estimate right before committing to hardware — whether buying, renting, or provisioning a cloud instance — avoids a frustrating and expensive trial-and-error cycle of out-of-memory errors.

The baseline calculation is straightforward: a model's parameter count times the number of bytes used to store each parameter gives you raw weight size. A 7-billion-parameter model at 16-bit precision (2 bytes per parameter) needs roughly 14GB just to hold the weights in memory. But raw weights are only part of what inference actually needs — the model also requires working memory for the KV cache (which grows with both context length and batch size) and intermediate activations during the forward pass, which is exactly what the overhead factor in this calculator represents, and why skipping it is the single most common cause of 'but the math said it would fit' out-of-memory surprises.

Quantization is the other major lever, and it's worth understanding why it works as well as it generally does: neural network weights don't actually need full 32-bit or even 16-bit precision to remain useful — the values being stored have a limited effective range and a fair amount of redundancy, so representing them with fewer bits (8-bit, or even 4-bit with modern quantization techniques) often preserves the vast majority of a model's output quality while proportionally shrinking its memory footprint. This is exactly why 4-bit quantized versions of large open-weight models have become so popular for running meaningfully large models on consumer-grade hardware that could never fit the full-precision version.

The practical sizing process: start with FP16/BF16 as your default (it's the standard tradeoff of quality versus memory for most serving scenarios today), calculate whether your target hardware has enough VRAM including a reasonable overhead margin, and if it doesn't, quantize further before assuming you need to buy or rent more expensive hardware — the quality cost is often smaller than people expect.