Skip to content

VRAM calculator

Choose your hardware and an open model to see the memory it needs, how fast it runs, and what to change if it doesn’t fit.

What do you want to do?

Hardware

Hardware type
Hardware

Desktop GPUs

Laptop GPUs

Workstation GPUs

Data center GPUs

Apple silicon

AI boxes

Custom

RTX 509032.0 GB usable

Number of cards1×
Runs in
Spill into system RAM
Card also drives my monitors

Model

21 of 47 fit
What it’s for
Show
Model

Small · under 10B

Medium · 10B to 40B

Large · 40B to 150B

Huge · 150B and up

ollama run qwen3.8:27b

Ollama GGUF MLX Hugging Face Apache 2.0

Quality

Quality level (quantization)

Context

Auto: as much as fits
208K
Cache precision

Chats at once

Chats at once1

Running cost

Hours a day

Hours a day4 h
per kWh

Power at home

$9.30/mo

425 W

Cloud

$58/mo

2× RTX 2000 Ada at $0.48/h

Result

GPU memory
29.9/ 32.0 GB
Context
208K
Speed
67tok/s
First reply
0.5s
Model
15.7 GB
Context
13.1 GB
Overhead
1.1 GB
OS
0.0 GB
Free
2.1 GB

Suggested changes

  • 6-bit weightsBetter answers, 120K context, 52 tok/s

How the math works

The model
parameters × bits ÷ 8
Qwen3.8 27B at 4-bit: 27.8B × 4.85 ÷ 8 = 15.7 GB.
Context
tokens × layers × KV heads × head size × 2 × bytes
Llama 3.1 8B: 128 KB per token, 16.0 GB at 128K. Newer models cache far less, so we read each one’s config.
Overhead
driver + scratch buffers
About 0.6 to 1.5 GB.
Speed
bandwidth ÷ bytes read per token
Mixture-of-experts models read only their active experts, so they run faster than their size suggests.
First reply
2 × active weights × prompt tokens ÷ TFLOPS
Reading the prompt is compute, not bandwidth. A Mac can write as fast as a GeForce card and still read a long document several times slower.
Images and video
steps × weights × tokens × 2 ÷ TFLOPS
Memory is the model plus one block’s working set. Time grows faster than resolution, since attention compares every patch with every other.
Running cost
watts × hours × your rate
Set against the cheapest on-demand cloud GPU that runs the same job.

How much memory each model needs

Weights at each level, plus 32K tokens of context.

Memory needed by each open model at 4-bit, 8-bit and as released
ModelParameters4-bit8-bitAs released+ 32K context
Nemotron 3 Nano 4B4B2.2 GB3.9 GBBF167.4 GB592 MB
Qwen3.5 4B4.7B2.6 GB4.6 GBBF168.7 GB1.0 GB
Gemma 4 E2B5.1B (2.3B active)2.9 GB5.1 GBBF169.5 GB198 MB
Gemma 4 E4B8B (4.5B active)4.5 GB7.9 GBBF1614.9 GB532 MB
Llama 3.1 8B8B4.5 GB7.9 GBBF1615.0 GB4.0 GB
Ministral 3 8B8.9B5.0 GB8.8 GBFP89.7 GB4.3 GB
Qwen3.5 9B9.7B5.4 GB9.5 GBBF1618.0 GB1.0 GB
Gemma 4 12B12B6.8 GB11.8 GBBF1622.3 GB576 MB
Ministral 3 14B13.9B7.9 GB13.8 GBFP814.6 GB5.0 GB
gpt-oss 20B20.9B (3.6B active)11.8 GBn/aMXFP411.3 GB771 MB
LFM2.5 24B A2B24B (2B active)13.5 GB23.7 GBBF1644.6 GB640 MB
Mistral Small 3.2 24B24B13.6 GB23.8 GBBF1644.7 GB5.0 GB
Devstral Small 2 24B24B13.6 GB23.8 GBFP824.0 GB5.0 GB
Gemma 4 26B A4B25.8B (3.8B active)14.6 GB25.5 GBBF1648.1 GB520 MB
Qwen3.8 27B27.8B15.7 GB27.5 GBBF1651.7 GB2.1 GB
Muse Glimmer 30B29.8B16.8 GB29.5 GBBF1655.5 GB494 MB
GLM-4.7 Flash31.2B (3B active)17.6 GB30.9 GBBF1658.2 GB1.7 GB
Gemma 4 31B31.3B17.7 GB30.9 GBBF1658.2 GB2.0 GB
Nemotron 3.5 Lightning 30B A3B31.6B (3B active)17.8 GB31.2 GBBF1658.8 GB239 MB
Olmo 3.1 32B32.2B18.2 GB31.9 GBBF1660.0 GB2.8 GB
Qwen3.6 35B A3B36B (3B active)20.3 GB35.6 GBBF1667.0 GB701 MB
Llama 3.3 70B70.5B39.8 GB69.8 GBBF16131 GB10.0 GB
Nemotron 3.5 Bolt 74B A9B74.9B (9B active)42.3 GB74.1 GBBF16139 GB418 MB
Qwen3 Coder Next 80B79.7B (3B active)45.0 GB78.8 GBBF16148 GB842 MB
gpt-oss 120B117B (5.1B active)66.0 GBn/aMXFP459.0 GB1.1 GB
Mistral Small 4 119B119B (6.5B active)67.4 GBn/aFP8113 GB720 MB
Nemotron 3 Super 120B A12B124B (12B active)69.8 GB122 GBBF16230 GB418 MB
Qwen3.5 122B A10B125B (10B active)70.6 GB124 GBBF16233 GB915 MB
Mistral Medium 3.5 128B128B72.1 GBn/aFP8124 GB11.0 GB
Qwen3.8 Flash-Next180B (6B active)102 GB178 GBBF16335 GB878 MB
MiniMax M2.7229B (10B active)129 GBn/aFP8214 GB7.8 GB
DeepSeek V4 Flash284B (13B active)160 GBn/aFP4 + FP8155 GB199 MB
Hy3295B (21B active)167 GB292 GBBF16549 GB10.0 GB
MiMo V2.6 Flash309B (15B active)174 GBn/aFP4 + FP8161 GB744 MB
GLM-5.3 Flash321B (18B active)181 GBn/aFP8306 GB537 MB
Qwen3.5 397B A17B403B (17B active)228 GB399 GBBF16751 GB1.1 GB
MiniMax M3427B (23B active)241 GB423 GBBF16795 GB3.8 GB
Nemotron 3 Ultra 550B A55B561B (55B active)316 GB555 GBBF161,044 GB773 MB
DeepSeek V3.2671B (37B active)379 GBn/aFP8642 GB2.4 GB
GLM-5.3753B (40B active)425 GBn/aFP8704 GB3.0 GB
DeepSeek V4.1 Flash763B (16B active)431 GBn/aFP4 + FP8475 GB89 MB
Muse Spark Open 816B A42B822B (42B active)464 GB813 GBBF161,531 GB2.4 GB
MiMo V2.6 Pro1T (42B active)578 GBn/aFP4 + FP8527 GB1.6 GB
Kimi K2.61T (32B active)580 GBn/aINT4554 GB2.1 GB
DeepSeek V4 Pro1.6T (49B active)903 GBn/aFP4 + FP8805 GB285 MB
Qwen3.8 2.4T A95B2.4T (95B active)1,381 GB2,421 GBBF164,556 GB3.4 GB
Kimi K32.8T (104B active)1,570 GBn/aINT41,454 GB1.3 GB

Image and video models

Questions people ask

How much VRAM do I need to run an LLM?

About 0.6 GB per billion parameters at 4-bit, plus context. An 8B model fits an 8 GB card, 27B to 32B wants 24 GB, and a dense 70B needs about 48 GB.

Which quantization should I use?

4-bit (Q4_K_M) unless you have room to spare. Below 4-bit, small models degrade fast; models over 100B hold up.

How much context do I need?

8K covers a normal chat, 32K a long one, 128K about a novel. Coding agents want 64K or more.

Why can my Mac only use part of its memory?

macOS lets the GPU use about 75% of memory. Raise it with sudo sysctl iogpu.wired_limit_mb=<MB>; it resets on reboot.

Can I run a model bigger than my GPU?

Yes, by spilling part of it into system RAM. Dense models slow down badly; mixture-of-experts models hold up.

Do two GPUs double my memory?

For fitting a model, yes. For speed, mostly no: with the default layer split the cards take turns.

Why does a Mac take longer to start answering?

Writing tokens depends on memory bandwidth, where Macs are strong. Reading the prompt depends on raw compute, where NVIDIA cards are several times faster, so long documents and coding agents wait longer on a Mac.

Ollama, LM Studio or vLLM?

Ollama or LM Studio for one person: easy, and they can spill into system RAM. vLLM for a team: it serves many chats at once but needs the whole model on the GPU.

How much VRAM do image and video models need?

FLUX.1 dev wants about 14 GB at FP8 and runs on a 12 GB card as a 6-bit GGUF. 14B video models want about 21 GB at FP8, and a 5-second 720p clip takes around half an hour on an RTX 4090. Distilled models like LTX-2.5 take about a minute.

How accurate is this?

Memory lands within about a gigabyte. Speed is a rough guide, plus or minus 25%.

Where does the model data come from?

Each model’s config.json on Hugging Face, with active-parameter counts from the model cards.

Need a machine that runs it?

Tell us the model and how many people use it. We’ll quote the hardware.