New Tool Radar

Local AI

How to Pick a Local Model Size That Fits Your RAM

Match the model to the memory you have, using the file size and RAM figures the model pages publish, instead of guessing from the parameter count alone.

Schematic diagram comparing three model sizes: Phi-3 Mini at 2.18 GB needing 4 GB of RAM, Llama 3 at 4.66 GB needing 8 GB, and Snoozy at 7.37 GB needing 16 GB.

Pick a local model by its published file size and RAM requirement, not by its parameter count alone. The GPT4All models page lists file size and RAM required side by side, and Ollama’s README adds a plain RAM rule: at least 8 GB of RAM for 7B models, 16 GB for 13B models, and 32 GB for 33B models. A model that is bigger than your memory will not run well, however good its parameter count looks.

What the published figures say

GPT4All’s example models table gives exact file sizes and RAM figures. Three rows from that table show the pattern clearly:

Model File size RAM required Parameters Quantization
Phi-3 Mini Instruct 2.18 GB 4 GB 4 billion q4_0
Llama 3 Instruct 4.66 GB 8 GB 8 Billion q4_0
GPT4All Snoozy 7.37 GB 16 GB 13 billion q4_0

The same page notes that models with a smaller quantization, such as 4-bit instead of 16-bit, are much faster and less memory intensive, and tend to have slightly worse performance. Ollama’s README shows the same spread in download size: Gemma 3 at 1B is 815MB, at 4B is 3.3GB, at 12B is 8.1GB, and at 27B is 17GB; Llama 3.2 at 1B is 1.3GB and at 3B is 2.0GB. Ollama’s library page lists the same range of sizes, from tiny models such as smollm2 at 135m up to qwen3 at 235b.

Try it: pick from your own memory figure

Write down how much RAM your computer has, then find the largest row in the table above that fits under it. On a fictional computer with 8 GB of RAM, Llama 3 Instruct at 4.66 GB with 8 GB required fits; GPT4All Snoozy at 7.37 GB with 16 GB required does not. On a fictional computer with 4 GB of RAM, Phi-3 Mini Instruct at 2.18 GB with 4 GB required is the fit. Expected result. We checked the GPT4All models page and the Ollama README. We did not run any model on this machine.

Limits

RAM required is the figure for the model alone; your operating system and other open apps also use memory, so a model that exactly matches your RAM total will feel tight. The figures above are for the q4_0 quantization listed in the table; a different quantization of the same model changes the file size and the memory needed. The GPT4All page also notes that more parameters tend to respond more coherently to instructions, so a smaller model is a trade-off, not a free win.

Sources

See all