Learn AI Math

RAM

What is RAM?

In one sentence: RAM is a computer's main working memory, where programs and data are kept while in use.

For AI, RAM holds models running on the CPU or overflow from the GPU. It is usually slower than VRAM but much larger and cheaper.

What does RAM look like?

A laptop with 32 GB of RAM can run a 4-bit 13B model on its CPU.

Why does RAM matter?

More RAM lets you run bigger models, even without a strong GPU.

RAM vs. VRAM

VRAM sits directly on the graphics card with ultra-wide bandwidth to feed GPU cores fast, whereas regular system RAM holds more gigabytes cheaply for the CPU at much lower bandwidth.

DimensionRAMVRAM
Typical bandwidth50 GB/s to 100 GB/s on standard DDR5 PCs500 GB/s to 3,000+ GB/s (GDDR6X / HBM3e)
Capacity vs. costCheap and easy to upgrade (32–512+ GB)Expensive and capped per card (8–80+ GB)
On Apple SiliconThe same unified memory pool, shared by CPU, GPU and NPUNo separate VRAM—the GPU uses the shared unified memory

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.