VRAM
Video RAM — memory on GPU. During the launch of a local model, it is here that weights, KV-cache, and intermediate calculations are stored.
Why It's the Main Limit
A model won't run if it doesn't fit into VRAM. CPU memory (RAM) is slower, and generation on it becomes painfully long.
How Much Is Needed
| Model | VRAM (approximately) |
|---|---|
| 7B (4-bit) | ~5–6 GB |
| 14B (4-bit) | ~10 GB |
| 32B (4-bit) | ~20 GB |
| 70B (4-bit) | ~40 GB |
What It Consists Of
- Weights — fixed volume, depends on quantization;
- KV-cache — grows with context length;
- Auxiliary buffers — activations, calculations.
How to Save
- quantization — weights in 4/8 bits instead of 16;
- less context;
- offloading parts of layers to RAM (slower, but runs).