GPU
VRAM: sizing memory for LLM inference
VRAM is the memory on the graphics card. For running language models, the model's weights must fit in it, with room for the working context, or the model does not run at a useful speed.
Watch: see it in 30 seconds
Video coming soon
A 30-second visual explanation
Why it matters when you buy
- A rough rule: a model needs about as many gigabytes as it has billions of parameters at 8-bit, half that at 4-bit, plus a few gigabytes for context. A 70-billion-parameter model at 4-bit wants around 40 GB.
- Two 24 GB cards are not the same as one 48 GB card: splitting a model across cards works but costs speed and needs software that supports it.
- For many business uses a 24 GB card running a 7 to 14 billion parameter model is the practical sweet spot; bigger models need the 48 GB and 80 GB class.
- Memory bandwidth matters as much as size for the speed you feel; it is a different number on the spec sheet.
How it shows up on a spec sheet
- GPU lines: 'NVIDIA L40S 48 GB', 'A2 16 GB'.
- The configurator asks what the server is for and sizes the GPU memory to the model class you name.
- The builder's GPU step checks slot width, power and cooling for the card in your chassis.
Ask your AI about it
Paste this into the assistant you build with. It is written to get a useful answer for your own project, not a textbook page.
I want to run open-source language models on a refurbished server. Explain how to size GPU memory for a given model size and quantization, what context length costs, and when two cards are better or worse than one bigger card.
The facts behind this page
- Weights at 8-bit precision take about one byte per parameter; at 4-bit about half a byte. Context and activations add to that. (arithmetic of parameter storage)
Where you meet it: Builder step: GPU. Try it on a real server in the step-by-step builder