NeuroGenesys.
All Free ToolsFree Tools • VRAM Calculator: Can I Run This LLM?

Can I run this model?

An LLM needs memory for three things: its weights, the KV cache that grows with every token of context, and some working space for the runtime. Pick a model, a quantization and a context length to see the total, and which GPUs and Apple Silicon machines can hold it.

Free · runs in your browser · updated

1 · Model and settings

Examples

2 · Memory needed

weights43.2 GB
KV cache2.68 GB
overhead2.29 GB
total48.1 GB
weights 90%KV cache 6%overhead 5%

3 · What it fits on

GPUs (model split across cards)

  • RTX 3090 24 GB4 cards
  • RTX 4090 24 GB4 cards
  • RTX 5090 32 GB2 cards
  • RTX A6000 48 GBfits on 1
  • RTX 6000 Ada 48 GBfits on 1
  • L4 24 GB4 cards
  • L40S 48 GBfits on 1
  • A100 40GB 40 GB2 cards
  • A100 80GB 80 GBfits on 1
  • H100 PCIe 80 GBfits on 1
  • H100 SXM 80 GBfits on 1
  • H200 141 GBfits on 1
  • B200 180 GBfits on 1
  • AMD MI300X 192 GBfits on 1

Apple Silicon (one machine)

  • Apple M2 Max64 GB config
  • Apple M2 Ultra64 GB config
  • Apple M3 Max (40-core GPU)64 GB config
  • Apple M3 Ultra96 GB config
  • Apple M4 Pro64 GB config
  • Apple M4 Max (40-core GPU)64 GB config

Multi-card assumes the model is split evenly (tensor or pipeline parallel), with each card paying the fixed overhead. On a Mac the GPU can use about three-quarters of unified memory by default; you can raise the limit with sudo sysctl iogpu.wired_limit_mb, at the expense of the rest of the system. Vendor memory sizes are binary (a 24 GB card holds 25.8 × 10⁹ bytes), and that is accounted for.

Questions

How much VRAM do I need to run Llama 70B?

About 141 GB for the weights in BF16, so two 80 GB cards. At Q4_K_M (about 4.9 bits per weight) the weights take about 43 GB, which fits on one 48 GB card or a Mac with 64 GB of unified memory, with room for a modest context. At 128k context the BF16 KV cache adds about 43 GB more.

How do I work out an LLM's memory from its parameter count?

Weights take parameters × bits per weight ÷ 8 bytes: 8 billion parameters at 16 bits is 16 GB, at 4 bits about 4 GB. Add the KV cache (2 × layers × KV heads × head dimension × context × bytes per value) and a few percent for the runtime.

Why does context length use so much memory?

Every token in the context keeps a key and a value vector in every layer. Grouped-query attention, sliding-window layers and KV-cache quantization all shrink this, which is why two models of the same size can need very different memory at 128k tokens.

Do mixture-of-experts models need less memory?

No. A mixture-of-experts model runs only a few experts per token, which makes it fast, but every expert has to be in memory because any token can be routed to any of them. Memory follows the total parameter count, speed the active count.

How much of a Mac's unified memory can the GPU use?

By default macOS lets the GPU wire roughly three-quarters of unified memory. You can raise the limit with sudo sysctl iogpu.wired_limit_mb, at the cost of memory for the rest of the system.

Related

Leadership

A word from the founder — on why the brain is the blueprint, and why the next decade of intelligence will be built here.

"The brain is the universe's only proof that general intelligence is possible. We treat it as the blueprint."

From cortical interfaces to photonic silicon, every program at NeuroGenesys exists to answer one question: how does intelligence arise — and how do we build it safely.

Will Schulz

Will Schulz

Founder, NeuroGenesys • AW3 Technology