grunz

How much memory do you need to run AI locally?

Roughly the model's size in billions of parameters, times the bytes stored per parameter, plus room for the conversation. A 70B model at 4-bit needs about 42 GB before context.

The rule

A model is mostly its weights, and the whole set has to fit in memory while it runs. Each weight takes a fixed number of bytes:

16-bit2 bytes per parameter. The format most models are released in.
8-bit1 byte per parameter. Close to full quality.
4-bitAbout 0.6 bytes per parameter in common formats such as Q4_K_M. The usual choice for running at home, with a small loss in quality.

So a model's weights take about parameters (in billions) × bytes per parameter gigabytes.

The table

Model size16-bit / 8-bit / 4-bit
8B16 GB / 8 GB / 5 GB
14B28 GB / 14 GB / 8 GB
32B64 GB / 32 GB / 19 GB
70B140 GB / 70 GB / 42 GB
120B240 GB / 120 GB / 72 GB

Weights only, rounded. Exact sizes vary by model and file format.

For an exact answer for one model on one machine, with the real file size and the conversation memory worked out from the model's own architecture, try the will it run calculator.

Then add the conversation

While a model reads and writes, it keeps a working memory of the conversation called the KV cache. It grows with the length of the context, from under a gigabyte for a short chat to many gigabytes for a long document. The operating system needs some memory too. Leave a margin of 10 to 25 percent over the weights.

Why unified memory matters

On a regular PC, a model runs fastest when it fits in the graphics card's memory, which is usually 8 to 24 GB. Systems with unified memory share one large pool between the processor and the graphics, so most of it can hold a model. That is how a small machine can run a 70B model at all.

Fitting is half of it. Speed, in words per second, depends mostly on memory bandwidth: every word the model writes means reading through its active weights once.

What fits where

16 GBModels up to about 14B at 4-bit.
32 GBUp to about 32B at 4-bit.
64 GBUp to about 70B at 4-bit, with room for a normal conversation.
128 GBThe largest models people run at home, around 120B at 4-bit, or 70B with long documents.

Grunz Box comes with 64 GB or 128 GB of unified memory, and its models screen shows whether a model fits before you add it. See the specs or read what abliterated models are.

Reserve from $20