SYS.01 // HARDWARE MEMORY & BANDWIDTH INSTRUMENT
ENGINE: DETERMINISTICREV 2026.11

Local LLM VRAM & inference speed calculator

Calculate whether open-weights models fit your GPU VRAM or Apple Mac unified memory, estimate generation speeds (tokens/sec) from memory bandwidth, and compute break-even points versus frontier API costs.

KV CACHE CALCULUSCUDA & UNIFIED MEMORYGGUF • EXL2 • AWQAPI & CLOUD ROI
OPEN MODELS47 Evaluated
HARDWARE RIGS37 GPUs & Macs
BENCHMARKS2,400+ Benchmark Setups
TOPOLOGIESMoE & Dense
PARTIAL OFFLOAD25.22 GB (105%)~7 t/s

Target Hardware & Model

The premier open-source coding model for single 24GB GPUs (RTX 4090/3090)
Qwen 2.5 Coder 32B Instruct on NVIDIA GeForce RTX 4090 (24GB GDDR6X)

Partial Offload — Slow CPU/RAM Spillover

PARTIAL OFFLOAD
Required VRAM
25.22 GB
105% of hardware capacity (24 GB)
Est. Decode Speed
~7 tok/s
Dense model @ 1008 GB/s
Available Headroom
-1.22 GB
Needs +1.22 GB more VRAM
Memory Allocation & Headroom
25.22 GB allocated of 24 GB capacity
105% utilized
Weights: 19.5 GB
KV: (32K): 4.29 GB
Overhead: 1.43 GB
Deficit: -1.22 GB
Architecture & Throughput Transparency: Single-user decode speed (~7 tok/s) is memory-bandwidth bound at batch size = 1 on NVIDIA GeForce RTX 4090 (24GB GDDR6X) (1008 GB/s). Prompt prefill / TTFT (~102 tok/s) is compute-bound and utilizes GPU Tensor cores. Actual latency varies with FlashAttention-2 and runtime engine (Ollama/vLLM/llama.cpp).

Quantization Precision Matrix

32K ctx • KV: Q8_0
QuantizationWeightsKV CacheTotal VRAMEst. SpeedFit Status
FP1616 bpw65 GB4.29 GB72.32 GB (301%)0 t/sOOM
Q8_08.5 bpw34.45 GB4.29 GB40.7 GB (170%)0 t/sOOM
Q6_K6.56 bpw26.65 GB4.29 GB32.62 GB (136%)0 t/sOOM
Q5_K_M5.68 bpw23.07 GB4.29 GB28.92 GB (121%)~6 t/sPARTIAL
Q4_K_M4.8 bpw19.5 GB4.29 GB25.22 GB (105%)~7 t/sPARTIAL
FP44.25 bpw17.23 GB4.29 GB22.87 GB (95%)~38 t/sFITS
IQ3_XS3.3 bpw13.32 GB4.29 GB18.83 GB (78%)~48 t/sFITS

Local Hardware Configurations & Pricing

Partial Offload: Dedicated 100% GPU Options
High-bandwidth VRAM specs and current market prices
Consumer GPU✓ Fits Model
32 GB VRAM

NVIDIA GeForce RTX 5090 (32GB GDDR7)

Maximum tokens/sec on 27B–35B models & Blackwell FP4 quantization

1792 GB/s575W TDP
Consumer GPU
24 GB VRAM

NVIDIA GeForce RTX 4090 (24GB GDDR6X)

The 24GB CUDA enthusiast standard for 14B–32B Q4_K_M models

1008 GB/s450W TDP
Multi-GPU Rig✓ Fits Model
48 GB VRAM

2x NVIDIA RTX 3090 Dual Rig (48GB Total VRAM)

Best price-to-VRAM homelab rig for Llama 3.3 70B Q4_K_M & Qwen 2.5 Coder 32B Q8_0

1648 GB/s700W TDP
Consumer GPU
16 GB VRAM

NVIDIA GeForce RTX 5080 (16GB GDDR7)

Blazing fast 8B–14B coding models with FP4/Q6_K precision

960 GB/s360W TDP

Out of VRAM? Don't downgrade model quality.

Out of VRAM

Spin up an on-demand cloud GPU instance in 60 seconds with pre-installed Ollama and vLLM. (Qwen 2.5 Coder 32B Instruct @ 25.22 GB VRAM)

METHODOLOGY & VERIFICATION //

How VRAMStack Models Local LLM Memory & Decode Throughput

All VRAM budgets, KV cache allocations, and single-user tokens/sec estimates above are computed deterministically from each open-weights model's Hugging Face config.json tensor geometry and your hardware's memory bus bandwidth.

1. Static Weight Memory

Weights (GB) = Total_Params × Bytes_Per_Param

For Mixture-of-Experts (MoE) checkpoints like DeepSeek-R1 or Qwen3-MoE, all total parameters must still reside in VRAM or unified memory so dynamic routers can dispatch tokens to any expert.

2. KV Cache Scaling (GQA & MLA)

GQA: 2 × L × H_kv × D_head × Ctx × Batch × B_kv
MLA: L × (kv_lora_rank + rope_dim) × Ctx × B_kv

Grouped-Query Attention shrinks KV states proportional to key-value head count, while Multi-Head Latent Attention compresses per-token KV cache into a low-rank latent vector by ~85–97%.

3. Bandwidth-Bound Decode Speed

Decode tok/s ≈ (Bandwidth_GBs ÷ Active_Weights_GB) × Eff

At batch size = 1, autoregressive token generation is memory-bandwidth bound. MoE architectures stream only active expert weights per token, achieving dense-like speed at a fraction of dense compute.

REPRODUCIBLE HARDWARE VERIFICATION // LLAMA.CPP & VLLM
# 1. Measure actual decode speed (tg128) & prompt prefill (pp512) with FlashAttention
llama-bench -m model-Q4_K_M.gguf -p 512 -n 128 -fa 1 -ctk q8_0 -ctv q8_0

# 2. Observe peak live VRAM allocation on NVIDIA GPUs during inference
nvidia-smi --query-gpu=memory.used,memory.total --format=csv -l 1
DEEP DIVES //KV Cache Formula Guide →24GB VRAM Models →128GB Unified Memory →Cloud GPU Rental Pricing →Full Methodology & Calibration →

Pre-Calculated Benchmark Directory

370+ Pre-computed hardware compatibility matrices and speed benchmarks