System memory matters
If a model is bigger than your GPU, it spills into system RAM and slows down a lot. Having plenty of RAM keeps fallbacks from being painfully slow.
Hardware decides what you can run. GPU memory is the main limit, so choosing the right GPU and RAM matters more than raw speed.
About 1 min of reading
Choose hardware based on GPU memory
Compare inference speed on a dedicated GPU versus spilled to RAM versus CPU only.
Before you run it, say out loud what it will print. Then open the answer.
If a model is bigger than your GPU, it spills into system RAM and slows down a lot. Having plenty of RAM keeps fallbacks from being painfully slow.
A GPU runs models far faster than a CPU. If you want usable speed, a dedicated GPU with enough VRAM is the best single upgrade you can make.
Model needs ~2 bytes per parameter
8B model -> ~16GB at 16-bit
8B model -> ~5GB at 4-bit
Your GPU's VRAM sets the biggest model you can run. More VRAM means bigger or higher-quality models.
NVIDIA GPU -> fast, capped by VRAM
Apple M chip -> CPU and GPU share RAM
64GB unified -> run big models slowly
Apple's unified memory lets the model use system RAM as VRAM, so you can run larger models than a consumer NVIDIA card. They are slower but very flexible for a single machine.
GPU: 8GB VRAM minimum
RAM: 16GB system
Disk: SSD with 20GB free
CPU: 4 cores is enough for fallback
You do not need top-tier hardware to start. A 8GB GPU handles 3B-7B models at 4-bit. Upgrade VRAM first, then RAM, then only bother with a faster CPU if you run fallbacks often.
Each one is defined here on this site. Open the entry for the full definition and the other words it points at.