Back to The LabSizing

How much memory do you need to run an LLM locally?

Work out whether a model fits before you buy: weight size, KV cache, what quantisation costs in quality, and real speeds on GB10 and RTX PRO 6000. Every figure is sourced.

6 min read AI StoreLabs

Asus Ascent GX10 with NVIDIA GB10

Before a model can run, its weights and its KV cache have to fit in memory. Both can be worked out on paper. This guide shows the two calculations, the real download sizes of popular models, and what that means for the hardware we sell. Every figure links to its source at the bottom of the page.

1. Weights: parameters × bytes per parameter

NVIDIA's own example: a 7-billion-parameter model in 16-bit precision "would take roughly 7B * sizeof(FP16) ~= 14 GB in memory".[1] The bytes per parameter depend on the format the model is stored in:

Format Bytes per parameter 8B model 70B model
FP16 / BF16 2 16 GB 140 GB
FP8 / INT8 1 8 GB 70 GB
NVFP4 (Blackwell) 0.56 (4.5 bits)[2] 4.5 GB 39 GB
GGUF Q4_K_M (Ollama, llama.cpp) about 0.6 in practice[3] 4.9 GB 43 GB

4-bit is not exactly half a byte. NVFP4 stores "one FP8 scale per 16 values", which makes it 4.5 bits per value, and NVIDIA puts the saving at "approximately 3.5x relative to FP16".[2] Ollama's 4-bit Llama 3.1 70B download is 43 GB for 70.6 billion parameters.[3]

Real download sizes

Model Format Size
Llama 3.1 8B Q4_K_M / FP16 4.9 GB / 16 GB[3]
Llama 3.1 70B Q4_K_M / Q8_0 / FP16 43 GB / 75 GB / 141 GB[3]
Llama 3.1 405B Q4_K_M 243 GB[3]
gpt-oss-120b MXFP4 65 GB[4]
Qwen3 235B Q4_K_M 142 GB[5]

2. KV cache: grows with context and users

While a model works through your prompt and its answer, it keeps the keys and values of every token in memory. The vLLM authors describe this cache as "huge" and say it "grows and shrinks dynamically".[6] It is the part people forget, and it can be as large as the weights.

NVIDIA gives the formula per token: 2 × layers × (KV heads × head dimension) × bytes.[1] For Llama 3.1 70B, Meta's paper lists 80 layers, a model dimension of 8,192 with 64 attention heads (head dimension 128), and 8 key/value heads.[7]

  • Per token at FP16: 2 × 80 × 8 × 128 × 2 bytes = 327,680 bytes (0.33 MB)
  • One user at 8K tokens of context: 2.7 GB
  • One user at 128K tokens of context: 42.9 GB at FP16, or 21.5 GB with an FP8 cache

Multiply by the number of people using the model at the same time. A fixed "add 20%" rule does not work: at short context the cache is a rounding error, at 128K it is as big as the 4-bit weights.

3. How much quality does quantisation cost?

These are the authors' own results, measured on specific models and benchmarks. Test your own task before you rely on them.

  • 8-bit: the LLM.int8() paper loaded a 175B-parameter model in Int8 and used it "without performance degradation".[8]
  • 3 to 4-bit (GPTQ): the GPTQ authors report "negligible accuracy degradation" at 3 or 4 bits per weight.[9]
  • NVFP4: NVIDIA measured "1% or less accuracy degradation" on key language tasks when converting DeepSeek-R1-0528 from FP8 to NVFP4.[2]

4. What fits on the hardware we sell

Hardware Memory Bandwidth Manufacturer's model-size claim
RTX PRO 6000 Workstation or Max-Q 96 GB GDDR7, ECC[10] 1,792 GB/s[10] None published
One GB10 system, e.g. DGX Spark 128 GB LPDDR5x, unified[11] 273 GB/s[11] "Up to 200B parameters"[11]
Two linked GB10 systems 2 × 128 GB 273 GB/s each "Up to 400B parameters"[11]

On a GB10 system the 128 GB is unified memory shared by the CPU and the GPU,[11] so the operating system and everything else running on the box come out of the same pool. NVIDIA's own two-unit test with Qwen3 235B at NVFP4 "uses over 120 GB of memory, including overhead".[12]

5. Capacity decides whether it runs, bandwidth decides how fast

When a model generates text, it reads its weights from memory for every token. NVIDIA: "Model execution is frequently memory-bandwidth bound".[1] The RTX PRO 6000 moves 1,792 GB/s, about 6.6 times the 273 GB/s of a GB10 system.[10][11]

NVIDIA's measurements on one DGX Spark (2,048 tokens in, 128 out, one request at a time):[12]

Model Format Generation speed
Llama 3.1 8B NVFP4 38.7 tokens/s
Qwen3 14B NVFP4 22.7 tokens/s
gpt-oss-20b MXFP4 82.7 tokens/s
gpt-oss-120b MXFP4 55.4 tokens/s

gpt-oss-120b runs faster than the much smaller Qwen3 14B because it is a mixture-of-experts model: 117 billion parameters in total, but only 5.1 billion active per token.[13] Dense models are a different story. LMSYS measured Llama 3.1 70B at FP8 on a DGX Spark at 2.7 tokens per second.[14] It fits, but it is slow. If you want dense 70B models at reading speed, a 96 GB RTX PRO 6000 is the better tool. If you want the largest models on a desk, a GB10 system is.

Worked example

Five people query Llama 3.1 70B at the same time, each with documents of up to 32K tokens.

  1. Weights, Q4_K_M: 43 GB[3]
  2. KV cache per user at 32K tokens, FP16: 327,680 bytes × 32,768 = 10.7 GB. Five users: 53.7 GB
  3. Total: about 97 GB before runtime overhead. Too much for one 96 GB card, inside 128 GB on a GB10 system
  4. With an FP8 KV cache: 26.8 GB for five users, about 70 GB in total. That fits on one RTX PRO 6000 with room to spare

Want us to run the numbers for your model? Send us the model name, context length and number of users.

Sources

  1. NVIDIA Technical Blog, Mastering LLM Techniques: Inference Optimization
  2. NVIDIA Technical Blog, Introducing NVFP4 for Efficient and Accurate Low-Precision Inference
  3. Ollama library, llama3.1 tags
  4. Ollama library, gpt-oss tags
  5. Ollama library, qwen3:235b
  6. Kwon et al., Efficient Memory Management for Large Language Model Serving with PagedAttention (vLLM), 2023
  7. Meta, The Llama 3 Herd of Models, table 3
  8. Dettmers et al., LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale, 2022
  9. Frantar et al., GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers, 2022
  10. NVIDIA, RTX PRO 6000 Blackwell Workstation Edition specifications
  11. NVIDIA, DGX Spark specifications
  12. NVIDIA Technical Blog, How NVIDIA DGX Spark's Performance Enables Intensive AI Tasks
  13. OpenAI, gpt-oss-120b model card
  14. LMSYS (independent), NVIDIA DGX Spark In-Depth Review: A New Standard for Local AI Inference

Keep reading

More guides.