Free | No tracking | Every fact with a source|German and English

Glossary / Hardware

VRAM – explained simply

VRAM is the graphics card’s dedicated memory; it determines how large AI models can run quickly on your PC.

Also: graphics memory, video memory, video RAM, GPU memory

For the graphics card to calculate a model quickly, it has to fit in its own memory, VRAM. Think of VRAM as a workbench: Anything that fits on it is immediately within reach. Anything that doesn’t fit has to be fetched from the slower shelf (the normal RAM).

Roughly speaking, a model needs about as much memory as parameters times bytes per parameter. So a model with 7 billion parameters uses around 14 GB at 16-bit precision, and about 7 GB at 8-bit. An 8B language model in the Q4_K_M quantization is about 4.6 GiB in size according to the llama.cpp documentation. On top of that, there is memory for the context length or image resolution.

If the VRAM is not enough, many programs offload part of the model to normal RAM. This works, but it makes the calculation noticeably slower.

What does that mean for you? Before downloading, check a model’s file size: If it is significantly smaller than your VRAM, it will usually run entirely on the graphics card.

Related terms

Errors where that matters

Sources