LOCAL AI CAPACITY PLANNERMLA · GQA · MHA

LLM VRAM Calculator

Compare memory headroom and settings before downloading a model or buying hardware. Analytical estimates, not measured performance.

Your Hardware
Count:
Popular:
Model Architecture & Specifications
14.7B Params
Popular:

Estimated Memory Fit

FITS

Entire model & KV cache fit fully into VRAM with pure GPU acceleration.

Decode TPS
~78.8 tok/s
TTFT Latency
~3476 ms
VRAM Used
13.53 /24G
Max Safe Ctx
47,217 tok
Bottleneck:GPU Memory Bandwidth Bound
PCIe Interconnect:PCIe 4.0 x16|Effective Throughput: 26.77 GB/s
VRAM Capacity Allocation Matrix13.53 GB / 24 GB (56%)
Weights:8.95G
KV Cache:3.18G
Activation:0.25G
OS/CUDA:1.15G
Free VRAM:10.47G
Quantization Precision:4.64 bpw
Context Window:16k Tokens
Data Sources & Verification
Engine / Catalog
2.5.0 / catalog-2026-11-17
Hardware specs and price
NVIDIA GeForce RTX 4090 · Catalog reference; per-field sources and verification dates incomplete, not a live quote
Architecture source check
Official config checked · 1df85071 · 2026-11-11
About these results
Planning estimates and reference data only. Results vary with model, backend and input length.

Reference templates require pinned images, matching checkpoints, sufficient memory and backend validation. This planner has not executed these GPU deployments.

Ollama Run Command
# Supply a compatible DeepSeek-R1-Distill-Qwen-14B Q4_K_M GGUF checkpoint; no filename or download URL is assumed.
: "${MODEL_GGUF:?Set the absolute path to the matching GGUF file}"
printf 'FROM %s\nPARAMETER num_ctx 16384\nPARAMETER num_gpu 48\n' "$MODEL_GGUF" > Modelfile.canitrun
ollama create canitrun-local -f Modelfile.canitrun
ollama run canitrun-local
llama.cpp Native Commands
# Supply a compatible DeepSeek-R1-Distill-Qwen-14B Q4_K_M GGUF checkpoint; no filename or download URL is assumed.
: "${MODEL_GGUF:?Set the absolute path to the matching GGUF file}"
llama-cli -m "$MODEL_GGUF" -c 16384 -ngl 48 -t 8

# DeepSeek-R1-Distill-Qwen-14B | Q4_K_M | per-request context=16384 | concurrency=1
# Pin the image, supply matching checkpoints and validate backend/device support.
# KV cache: f16; CUDA image required.
# POSIX shell (Linux, macOS or WSL). Install a device-compatible llama.cpp build first.
: "${MODEL_GGUF:?Set the absolute path to the matching Q4_K_M GGUF}"
: "${LLAMA_API_KEY:?Set a strong API key}"
export LLAMA_API_KEY
llama-server -m "$MODEL_GGUF" --ctx-size 16384 --parallel 1 --n-gpu-layers 48 --cache-type-k f16 --cache-type-v f16 --host 127.0.0.1 --port 8000

Frequently Asked Questions (FAQ)

Weights are only part of memory use. KV cache, activations, runtime buffers and desktop applications also consume memory. Prompt prefill can exceed the decoding footprint. Exact requirements depend on model architecture, context, concurrency and backend.

Estimated Memory Fit
~78.8 tok/s · 13.53G / 24G

GPU Specifications & Memory Estimates

Hardware specifications and analytical memory estimates across NVIDIA GeForce RTX, Apple Silicon, and AMD architectures. Capacity estimates below use Q4_K_M at 8k context; backend compatibility must be checked separately.

GPU ModelArchitectureVRAM CapacityMemory BandwidthTDPMax Runnable Model TierInteractive Simulator
NVIDIA GeForce RTX 5090Blackwell32 GB1792 GB/s600WMixtral 8x7B (MoE 47B) · Q4 / 8kBenchmark
NVIDIA GeForce RTX 5080Blackwell16 GB1024 GB/s400WGPT-OSS 20B · Q4 / 8kBenchmark
NVIDIA GeForce RTX 5070 TiBlackwell16 GB896 GB/s300WGPT-OSS 20B · Q4 / 8kBenchmark
NVIDIA GeForce RTX 5070Blackwell12 GB672 GB/s250WDeepSeek-Coder-V2 Lite (16B / 2.4B MoE) · Q4 / 8kBenchmark
NVIDIA GeForce RTX 4090Ada Lovelace24 GB1008 GB/s450WGLM-4.7-Flash · Q4 / 8kBenchmark
NVIDIA GeForce RTX 4080 SuperAda Lovelace16 GB736 GB/s320WGPT-OSS 20B · Q4 / 8kBenchmark
NVIDIA GeForce RTX 4080Ada Lovelace16 GB717 GB/s320WGPT-OSS 20B · Q4 / 8kBenchmark
NVIDIA GeForce RTX 4070 Ti SuperAda Lovelace16 GB672 GB/s285WGPT-OSS 20B · Q4 / 8kBenchmark
NVIDIA GeForce RTX 4070 TiAda Lovelace12 GB504 GB/s285WDeepSeek-Coder-V2 Lite (16B / 2.4B MoE) · Q4 / 8kBenchmark
NVIDIA GeForce RTX 4070 SuperAda Lovelace12 GB504 GB/s220WDeepSeek-Coder-V2 Lite (16B / 2.4B MoE) · Q4 / 8kBenchmark

Open-Weights LLM & Diffusion Model VRAM Reference Directory

Memory requirements are determined by parameter count, attention architecture, and context window. Models with DeepSeek Multi-Head Latent Attention (MLA) compress key-value cache memory significantly, whereas standard Grouped-Query Attention (GQA) models scale proportionally with sequence length.

Model NameArchitectureParametersNative ContextQ4_K_M VRAMFP16 VRAMMin Recommended GPU
Qwen3.5 27BHybrid27B256k Tokens~18.77 GB~59.03 GBNVIDIA GeForce RTX 2080 Ti (22GB Mod)
GPT-OSS 20BHybrid21B128k Tokens~14.64 GB~45.95 GBAMD Radeon VII (16GB HBM2)
GLM-4.7-FlashDeepSeek MLA30B198k Tokens~20.36 GB~65.09 GBNVIDIA GeForce RTX 2080 Ti (22GB Mod)
Qwen3-4B-Instruct-2507GQA4B256k Tokens~5.03 GB~10.99 GBNVIDIA GeForce GTX 1060 (6GB)
Qwen3-8BGQA8.19B40k Tokens~7.58 GB~19.79 GBNVIDIA GeForce GTX 1070
Qwen3-14BGQA14.77B40k Tokens~11.72 GB~33.74 GBAMD Radeon VII (16GB HBM2)
Qwen3-32BGQA32.76B40k Tokens~23.72 GB~72.57 GBApple M1 Pro (32GB Unified)
Qwen3-4BGQA4B40k Tokens~5.03 GB~10.99 GBNVIDIA GeForce GTX 1060 (6GB)

Mathematical Methodology: GQA vs DeepSeek MLA

Review the assumptions behind these estimates: weight quantization, attention cache size, allocation overhead and PCIe transfers. Actual results depend on the checkpoint, inference backend, driver and workload; these are not independently certified benchmark measurements.

Read Technical Whitepaper

Curated AI Hardware & Model Compatibility Matrix Directory

Explore dedicated hardware compatibility benchmarks, CUDA Out-of-Memory verification, and tokens/second speed estimates for the most popular local AI pairings: