CUDA and VRAM
Overview
CUDA is a computing platform by NVIDIA. VRAM is video memory. VRAM determines whether a model will fit on your card.
CUDA
A technology for parallel computing on NVIDIA GPUs. Most frameworks (PyTorch, etc.) use CUDA. This is why AMD and Intel are rare in AI.
VRAM
Video memory where model weights are stored during operation. The more VRAM, the larger the model that can fit.
| Model | Required VRAM (approx.) |
|---|---|
| 7B (4-bit) | ~5–6 GB |
| 14B (4-bit) | ~10 GB |
| 32B (4-bit) | ~20 GB |
| 70B (4-bit) | ~40 GB |
Memory Usage
- The weights themselves — a fixed amount.
- Context of the conversation (KV-Cache) — grows as the conversation progresses.
This is why you can't fit an entire book into a local model on a PC — VRAM will run out.
Checking Your Video Memory
- Windows: Task Manager → Performance → GPU → 'Allocated GPU Memory'.
- Linux: Command
nvidia-smi— VRAM amount is shown in the 'Memory' line.
Knowing the amount, compare with the table above — and you'll know which models are available to you.
HBM vs GDDR: Why Server Cards Are Faster
Consumer cards have GDDR memory, while server cards (A100, H100) have HBM. HBM provides much higher bandwidth, which is why flagships generate tokens noticeably faster with the same computational power. For text generation, this is more important than the number of cores.