TECHNOLOGY

VRAM for LLMs: why model size is only part of the calculation

In this article
THE QUICK TAKE

Estimating weight size is only the beginning. A working service needs memory for requests, engine buffers and headroom; validate the final configuration with a load test.

Video memory is one of the first specifications to share with a pool operator. But “the model fits on the card” can mean several things: loading its weights, completing one short request, or serving several users with long contexts.

For a commercial service, the last scenario matters within agreed quality and latency limits.

What consumes memory

A simplified VRAM budget includes weights, request-state cache, engine working buffers and reserve. Their sizes depend on model architecture, implementation and workload profile. You cannot call all remaining memory available simply because model files are smaller than VRAM capacity.

A rough weight-storage estimate multiplies parameter count by bits per parameter and divides by eight. For example, eight billion parameters at 16 bits require about 16 billion bytes for weights alone. This is an arithmetic illustration excluding additional structures and GB/GiB differences.

What quantization changes

Quantization uses lower-precision representations to reduce a model’s memory needs. Format choice, however, affects compatibility, quality and execution efficiency. The Hugging Face documentation describes different methods and limitations.

Smaller weights do not guarantee proportionate speed gains. Compare a supported format on the specific GPU, rather than downloaded file size alone. Quality checks are essential for tasks where response structure, language and instruction following matter.

Why context changes the result

Long requests and several concurrent users change request-state memory requirements. A short-question test therefore does not establish the ability to serve long documents.

Define several profiles: short chat, long input and long output. Increase concurrency gradually for each. Record the point where memory errors or unacceptable queues begin.

How to use the result

After testing, you should know the model’s operating limits, rather than merely whether it loads. Add the weight format, engine version, supported context and tested workload range to the server specification.

With several GPUs, do not add their memory without considering model distribution. The multi-GPU guide explains the distinction.

Related reading: GPU inference pilot: what to check before an operating agreement.

← All articles