Overview
How much RAM a local LLM needs on a Mac is its weights (parameters × bits per weight / 8) plus the KV cache for your context length plus a labeled overhead, which this site assumes is 2 GB. A Mac keeps the model in unified memory, not a separate VRAM pool (see unified-memory-vs-vram). This page applies the formulas on methodology to Qwen2.5 Instruct cards and to the Llama 3.1 file sizes published by llama.cpp. Source access dates are listed under Sources.
How much RAM do you need to run a local LLM?
A model’s memory need on this site is its parameter count times bits per weight divided by 8, plus the KV cache for the context you set, plus an assumed 2 GB of overhead.
The weight formula is weights_GB = params × bits / 8 / 1e9, with 1 GB defined as 1e9 bytes. At 4.0 bits per weight the Qwen2.5 Instruct cards give these weight sizes:
| Model | Card parameters | 4-bit weights | 8-bit weights | KV at 4096 | 4-bit total with 2 GB overhead |
|---|---|---|---|---|---|
| 3B Instruct | 3.09B | 1.545 GB | 3.09 GB | 0.151 GB | 3.696 GB |
| 7B Instruct | 7.61B | 3.805 GB | 7.61 GB | 0.235 GB | 6.040 GB |
| 14B Instruct | 14.7B | 7.35 GB | 14.7 GB | 0.805 GB | 10.155 GB |
| 32B Instruct | 32.5B | 16.25 GB | 32.5 GB | 1.074 GB | 19.324 GB |
| 72B Instruct | 72.7B | 36.35 GB | 72.7 GB | 1.342 GB | 39.692 GB |
The 4-bit column is exactly 4.0 bits per weight. It is not a measured GGUF bits-per-weight. Licenses on those cards: 3B is qwen-research (license: other); 7B, 14B, and 32B are Apache-2.0; 72B is qwen (license: other).
Against installed memory, and before the unknown macOS reserve:
- 16 GB is above the 3B, 7B, and 14B 4-bit totals at context 4096. It is below the 32B total of 19.324 GB.
- 32 GB and 36 GB are above the 32B 4-bit total and below the 72B 4-bit total of 39.692 GB.
- 64 GB is above the 72B 4-bit total and below the 72B 8-bit weight size of 72.7 GB.
- 128 GB is above the 72B 8-bit total of 76.042 GB (72.7 + 1.342 + 2).
Use what-fits-my-ram to filter the same rows. Apple’s current memory options are on which-mac-for-local-llm. Per-size model picks are on best-llm-for-16gb-mac and best-llm-for-32gb-mac.
The rows are Qwen2.5 examples at a stated 4.0 or 8.0 bits, not every model. For other models, read the parameter count and layer shape from the model card and config.json and apply the same formulas.
How much RAM for a 70B model?
The longer treatment is how-much-ram-for-70b-model.
The llama.cpp quantize README lists Llama 3.1 70B Q4_K_M at 43.1 GB, and the original size at 280.9 GB. A product that assumes exactly 70 billion parameters and exactly 4.0 bits per weight is 35 decimal GB, and this page does not use 35 GB as the file size.
The Llama 3.1 70B Instruct card was gated on 2026-10-12, so this page does not quote a parameter digit or a KV shape from it. The Llama 3.1 KV shape is therefore unknown; how-much-ram-for-70b-model uses the ungated DeepSeek-R1-Distill-Llama-70B config.json (80 layers, 8 KV heads, head dimension 128) as a stand-in 70B-class shape, which gives 1.342 GB of KV at 4096 and a 46.442 GB total on top of the 43.1 GB file (43.1 + 1.342 + 2), a total that is not read from a Llama 3.1 file. 43.1 GB is already above the 32 GB and 36 GB configurations on the current MacBook Pro spec page, and below 64 GB. Whether macOS leaves 43.1 GB free on a 64 GB Mac is unknown.
The same README lists Llama 3.1 8B Q4_K_M at 4.9 GB in the memory table and 4.58 GiB in the 8B quantization table, at 4.8944 bits per weight. Q8_0 in that 8B table is 7.95 GiB at 8.5008 bits per weight. Those bits-per-weight figures are for that Llama 3.1 8B table. They are not applied to the Qwen rows above. Speed columns in the README are omitted because they do not name Apple silicon.
Why can’t macOS use all unified memory for the model?
macOS keeps part of unified memory for the system, and the share a model can use is unknown. This page does not state a percentage. The GPU-side limit on a Mac is covered on mac-gpu-memory-limit.
Apple’s spec pages list installed unified memory. They do not list a GPU-usable remainder. LM Studio’s system requirements, accessed 2026-10-12, say “16GB+ RAM recommended” and “You may still be able to use LM Studio on 8GB Macs, but stick to smaller models and modest context sizes.” That is the vendor’s wording. It is not a measured free-memory figure. The current Apple spec pages checked the same day do not list an 8 GB unified memory option.
How does context length change RAM needs?
The KV cache grows linearly with context, so a longer context adds memory on top of the weights.
For Qwen2.5-7B-Instruct, config.json has 28 layers, 4 key-value heads, and hidden size 3584. Head dimension is 3584 / 28 = 128, because the file has no head_dim field. With the assumed 2 bytes per value:
kv_GB = 2 × 28 × 4 × 128 × context × 2 / 1e9
At context 4096 that is 0.235 GB. At context 32768 it is 1.879 GB. The 4-bit total with 2 GB overhead rises from 6.040 GB to 7.684 GB. Both are under 16 GB of installed memory. The reserve macOS keeps is still unknown. Longer contexts and their trade-offs are on long-context-on-mac.
The 7B card says full context 131,072 tokens and says the current config is set for 32,768 tokens. This example stops at 32768, which is max_position_embeddings in that config. The 14B model at context 32768 has a 4-bit total of 15.792 GB (weights 7.35 + KV 6.442 + overhead 2). That is under 16 GB with little room, and the reserve is unknown.
Why do RAM calculators disagree?
Calculators differ because each one fixes different inputs, not because the arithmetic differs. The inputs that move the answer are the bits per weight (4.0 here is a round number, not a measured GGUF figure), the context length used for the KV cache, whether the KV cache is counted at all, the bytes per KV value, and the overhead. This site assumes 2 GB of overhead as an assumption on methodology; the sister site LLM quantization explained states the weight formula too. A single rule of thumb that ignores context length will under-count long-context use. This page does not benchmark any calculator.
Is RAM on a PC the same as unified memory on a Mac?
On a discrete-GPU PC the model weights are usually expected to sit in VRAM, while a Mac’s GPU reads the same unified memory the CPU uses. The VRAM version of this question is llm VRAM requirements on the sister site, and the Mac-side comparison is unified-memory-vs-vram. Running a model on CPU without a GPU is run an LLM on CPU.
Apple’s pages for the Macs in which-mac-for-local-llm call the memory “unified memory” and list a memory bandwidth per chip. Bandwidth is not converted into a speed on this page.
Questions
How much RAM for a local LLM on a Mac?
Add the weights, the KV cache and the 2 GB overhead assumption. For Qwen2.5 Instruct at 4.0 bits and context 4096 that is 3.696 GB for 3B, 6.040 GB for 7B, 10.155 GB for 14B, 19.324 GB for 32B and 39.692 GB for 72B, before the macOS reserve, which is unknown. The table above shows each step.
How much RAM do I need for a local LLM?
It depends on the model and context you pick, so choose the model first and then read its total from the table above. 16 GB covers the 3B, 7B and 14B rows at context 4096; 32 GB and 36 GB cover the 32B row; 64 GB covers the 72B 4-bit row. The macOS reserve is unknown, so treat close fits as unconfirmed.
How much memory do I need to run a local LLM?
Memory need is the model total, not the model file alone: total_GB = weights_GB + kv_GB + overhead_GB from methodology. Using the 7B row, 3.805 GB of 4-bit weights becomes 6.040 GB once 0.235 GB of KV cache and 2 GB of overhead are added.
How much RAM does an LLM use?
Weights dominate at short context, and the KV cache grows with context. For Qwen2.5-7B-Instruct the KV cache is 0.235 GB at context 4096 and 1.879 GB at context 32768, so total use at 4-bit rises from 6.040 GB to 7.684 GB. Other models have different layer and head counts, so read their config.json.
Is 16GB enough for a local LLM?
16 GB is above the 3B, 7B and 14B 4-bit totals at context 4096 and below the 32B total of 19.324 GB. The 14B model at context 32768 totals 15.792 GB, which leaves little room, and the macOS reserve is unknown. Model picks are on best-llm-for-16gb-mac.
Is 32GB enough for a local LLM?
32 GB is above the Qwen2.5 32B 4-bit total of 19.324 GB at context 4096 and below the 72B 4-bit total of 39.692 GB. A 70B-class model at Llama 3.1 Q4_K_M file size (43.1 GB) does not fit in 32 GB before any KV cache. Picks are on best-llm-for-32gb-mac.
How much faster is MLX?
No measured figure we can cite. This site publishes no speed numbers and no primary source it has read gives one for a specific Mac, so the answer is unknown. For format trade-offs see mlx-vs-gguf, and measure your own Mac with measure-tokens-per-second-mac.
Does this page include tokens per second?
No. Speed is unknown here unless a primary source publishes a figure for the Mac in question. The llama.cpp README’s speed columns are not repeated.
Where is the formula cited?
On methodology, which states the weight formula, the KV formula, the 2-byte assumption, and the 2 GB overhead assumption.
Which page picks a model for a specific Mac?
best-local-llm-for-mac groups the same totals by installed memory. what-fits-my-ram filters the table.
Sources read on 2026-10-13
- Qwen2.5-3B-Instruct, 7B, 14B, 32B, 72B model cards and config.json: parameter counts, layers, KV heads, hidden size, licenses (read 2026-10-12, figures unchanged on this page).
- llama.cpp quantize README: Llama 3.1 70B and 8B file sizes and bits per weight (read 2026-10-12).
- Llama 3.1 70B Instruct card: gated, no figures taken.
- LM Studio system requirements: “16GB+ RAM recommended” wording (read 2026-10-12).
- LLM VRAM requirements and LLM quantization explained: sister site, linked for the VRAM and formula views; no numbers taken.
- methodology: the weight, KV and overhead formulas and the 2 GB assumption.