What computer do I need to run an AI model?

A plain-English guide to RAM, VRAM and quantization, so you can tell in ten seconds whether an open-source model will run on your laptop, Mac or graphics card.

The one rule: the model has to fit in memory

A language model is a huge list of numbers (parameters). To run it, all of them must be loaded into memory. On a PC with a graphics card that is ideally the card's own memory (VRAM); without a card the model runs from normal RAM on the processor, which works but is several times slower. Apple Silicon Macs share one pool of unified memory between processor and graphics, which is why a Mac with lots of memory can run surprisingly large models.

Quantization: making models smaller

Models are published with 16 bits per number. Quantization stores each number with fewer bits, for example 4 instead of 16. The file becomes about four times smaller and the quality drops only a little. The names below (Q8_0, Q4_K_M…) are the GGUF formats used by llama.cpp, Ollama and LM Studio.

FormatBits per weight (approx.)What it means
BF16 / FP1616Full precision, as published. Best quality, biggest.
Q8_08.58-bit. Practically the same quality as full precision.
Q6_K6.66-bit. Very close to full quality.
Q5_K_M5.75-bit. Small quality loss, good balance.
Q4_K_M4.854-bit. The usual default for running at home; noticeable but small loss.

How we estimate the memory

Memory ≈ parameters × bits per weight ÷ 8 × 1.1 + context cache.

Example: Qwen3.5 9B has 9.65B parameters. At Q4_K_M: 9.65 × 4.85 ÷ 8 ≈ 5.9 GB of weights, plus about 10% overhead and about 0.5 GB for an 8K-token conversation (the “KV cache”) ≈ 6.9 GB.

We use a fixed cache allowance (0.5 GB under 10B parameters, 1 GB up to 40B, 2 GB up to 150B, 4 GB above). Real use depends on the architecture and on how long your conversation is: very long documents (100K+ tokens) can need many extra gigabytes. Treat every number on these pages as a rough estimate, not a guarantee.

Mixture-of-experts models

Models like gpt-oss, Qwen3.6 35B-A3B or Gemma 4 26B A4B are “mixture of experts”: they store many parameters but only use a few (the “active” ones, e.g. A3B = 3B active) for each word. You still need memory for all parameters, but the speed is closer to that of a small model. That makes them a great fit for Macs with lots of unified memory, and llama.cpp can keep the experts in normal RAM while the GPU handles the rest.

How much memory each device can use

The operating system and other apps need memory too, so we count only part of it as usable for the model:

DeviceUsable for the model
Phone or Raspberry Pi (8 GB)about 3 GB
Laptop/PC, 8 GB RAMabout 5 GB
Laptop/PC, 16 GB RAMabout 11 GB
PC, 32 GB RAMabout 24 GB
PC, 64 GB RAMabout 50 GB
PC/server, 128 GB RAMabout 100 GB
Server, 256 GB RAMabout 210 GB
Server, 512 GB RAMabout 430 GB
8 GB GPU (e.g. RTX 4060)about 7.5 GB
12 GB GPU (e.g. RTX 3060 12 GB)about 11.5 GB
16 GB GPU (e.g. RTX 4070 Ti Super)about 15.5 GB
24 GB GPU (e.g. RTX 4090)about 23.5 GB
32 GB GPU (e.g. RTX 5090)about 31.5 GB
Mac, 16 GBabout 11 GB
Mac, 32 GBabout 23 GB
Mac, 64 GBabout 47 GB
Mac, 128 GBabout 96 GB
Mac, 192 GBabout 144 GB
Mac, 256 GBabout 192 GB
Mac, 512 GBabout 384 GB
1x 80 GB data-center GPU (H100)about 76 GB
2x 80 GB GPUsabout 152 GB
4x 80 GB GPUsabout 304 GB
8x 80 GB GPUsabout 608 GB
8x H200 (141 GB each)about 1070 GB

Graphics cards are examples of cards with that much VRAM. Mac figures assume macOS keeps about a quarter of memory for itself; it can be adjusted, but leaving headroom is safer.

Pick your hardware

See exactly which models fit on your graphics card, Mac or laptop:

Graphics cards

Macs (Apple Silicon)

No graphics card

Which models fit where (at Q4)

Quick buying advice

← Back to all open-source models