GPU/VRAM Calculator for AI

< Tools

Find a GPU for Llama 4, Qwen 3.7, DeepSeek V4, GLM-5.2 and image/video models — or check whether your card has enough VRAM. Accounts for quantization, context length, batch, and light fine-tuning. Linked with the AI catalog and selector.

Pick a model first.

Estimate ±15–20%. Real usage depends on runtime (llama.cpp, vLLM, Ollama) and drivers. Data verified: 2026-07-23.

Popular model × quant × GPU combos

Indexed starter examples. Numbers come from the calculator formula (inference, batch 1).

GPU/model dataset verified: 2026-07-23

ModelQuantContextVRAMMin GPU
Llama 3.1 8BGGUF Q48.192k7.4 GBRTX 3080 10GB (10 GB)Open
Mistral 7BGGUF Q48.192k6.8 GBRTX 4060 (8 GB)Open
Llama 3.1 70BINT4 / GPTQ / AWQ4.096k41.4 GBA100 80GB (80 GB)Open
Llama 4 MaverickGGUF Q48.192k64.5 GBA100 80GB (80 GB)Open
Qwen 3.7GGUF Q48.192k23 GBRTX 5090 (32 GB)Open
GLM-5.2INT4 / GPTQ / AWQ8.192k59.1 GBA100 80GB (80 GB)Open
FLUX.1 DevFP16 (full)2.048k27.2 GBRTX 5090 (32 GB)Open

VRAM & local LLM FAQ

How much VRAM do I need for a 70B model?
In FP16 a 70B model needs roughly 140 GB just for weights. With INT4 / AWQ / GPTQ you can often land near 35–50 GB at a moderate context (4k–8k), so cards like A100 40GB (tight) or 48–80 GB class GPUs are realistic. Use the calculator with context length enabled — KV-cache grows with tokens.
Q4 vs INT4 — what is the difference?
Both target ~4-bit weights. INT4 usually means GPTQ/AWQ in CUDA stacks (vLLM, transformers). GGUF Q4 is the llama.cpp / Ollama family format, great for consumer GPUs and Apple Silicon. Quality and exact VRAM differ by runtime; Q4_K variants often need slightly more than a raw 0.5 byte/param estimate.
Is 8 GB of VRAM enough for local LLMs?
Yes for smaller models: 7–8B in GGUF Q4 at 2k–8k context typically fits on 8 GB with limited headroom. 13–14B Q4 may be tight. 70B will not fit on 8 GB without heavy offloading. Image models like FLUX.1 Dev usually want 12–24 GB in FP16.
Why does longer context need more VRAM?
KV-cache scales with sequence length × layers × KV heads. Doubling context roughly doubles the KV portion even if weights stay the same. That is why 8B Q4 can jump from ~5–6 GB at 2k to noticeably more at 32k–128k.
How accurate is this calculator?
Treat results as ±15–20%. Real usage depends on runtime (llama.cpp, vLLM, Ollama), CUDA graphs, KV quantization, and driver overhead. Prefer a card with comfortable headroom rather than a perfect tight fit.

Related