AI INFRA DeepInMind Benchmarks
Home / AI Infra Calculators / FLUX.1 [dev] 12B (+T5-XXL) VRAM

FLUX.1 [dev] 12B (+T5-XXL) VRAM Requirements, Quantization Sizing & GPU Benchmarks

Interactive memory calculator and hardware sizing guide for Black Forest Labs's FLUX.1 [dev] 12B (+T5-XXL) (dense Transformer architecture with 16.8B parameters (38 layers, 24 KV heads), up to 4K context, FLUX Non-Comm license).

Interactive FLUX.1 [dev] 12B (+T5-XXL) Memory & Throughput Calculator

Total VRAM Needed14.22 GB
Model Weights9.49 GB
KV Cache Memory3.56 GB
CUDA / Activation Buffer1.17 GB
Quick Deploy: comfyui --flux-fp8

FLUX.1 [dev] 12B (+T5-XXL) Quantization Breakdown (at 8K Context)

FormatBits/WeightWeights8K KV CacheTotal VRAMMinimum Recommended GPU
FP16 / BF16 (Unquantized)16.00 bpw31.29 GB3.56 GB37.33 GB48GB (L40S / RTX 6000 Ada / 2x 3090)
FP8 / Q8_0 (8-bit)8.50 bpw16.62 GB3.56 GB21.78 GB1x 24GB GPU (RTX 3090 / 4090)
Q6_K / EXL2 6bpw6.56 bpw12.83 GB3.56 GB17.76 GB1x 24GB GPU (RTX 3090 / 4090)
Q5_K_M (5-bit)5.69 bpw11.13 GB3.56 GB15.96 GB1x 24GB GPU (RTX 3090 / 4090)
Q4_K_M / AWQ / GPTQ-4bit4.85 bpw9.49 GB3.56 GB14.22 GB1x 16GB GPU (RTX 4080S / 4060Ti)
IQ3_XS (3.3-bit imatrix)3.30 bpw6.45 GB3.56 GB11.0 GB1x 16GB GPU (RTX 4080S / 4060Ti)
IQ2_XXS (2.1-bit extreme)2.15 bpw4.2 GB3.56 GB8.62 GB1x 16GB GPU (RTX 4080S / 4060Ti)

GPU Compatibility & Estimated Generation Speed (Tokens/sec)

GPU AcceleratorVRAMBandwidthCompatibilityEst. SpeedRef. Cost
NVIDIA RTX 5090 (32GB GDDR7)32 GB1792 GB/sFits 4-bit (Q4_K_M / AWQ)~136.0 tok/s$0.89/hr
NVIDIA RTX 4090 (24GB GDDR6X)24 GB1008 GB/sFits 4-bit (Q4_K_M / AWQ)~76.5 tok/s$0.44/hr
NVIDIA RTX 3090 / 3090 Ti (24GB)24 GB936 GB/sFits 4-bit (Q4_K_M / AWQ)~71.0 tok/s$0.22/hr
NVIDIA RTX 4080 Super (16GB)16 GB736 GB/sFits 4-bit (Q4_K_M / AWQ)~55.9 tok/s$0.30/hr
NVIDIA RTX 4060 Ti (16GB)16 GB288 GB/sFits 4-bit (Q4_K_M / AWQ)~21.9 tok/s$0.18/hr
Dual RTX 3090 (48GB Combined)48 GB936 GB/sFits FP16 / BF16~21.5 tok/s$0.45/hr
Dual RTX 4090 (48GB Combined)48 GB1008 GB/sFits FP16 / BF16~23.2 tok/s$0.88/hr
NVIDIA RTX 6000 Ada (48GB ECC)48 GB960 GB/sFits FP16 / BF16~22.1 tok/s$0.99/hr
NVIDIA L40S (48GB GDDR6)48 GB864 GB/sFits FP16 / BF16~19.9 tok/s$0.86/hr
NVIDIA A100 SXM4/PCIe (80GB HBM2e)80 GB2039 GB/sFits FP16 / BF16~46.9 tok/s$1.39/hr
NVIDIA H100 SXM5 (80GB HBM3)80 GB3350 GB/sFits FP16 / BF16~77.1 tok/s$2.49/hr
NVIDIA H200 SXM (141GB HBM3e)141 GB4800 GB/sFits FP16 / BF16~110.4 tok/s$3.69/hr
AMD Instinct MI300X (192GB HBM3)192 GB5300 GB/sFits FP16 / BF16~121.9 tok/s$2.19/hr
Apple Mac Studio M4 Max (128GB Unified)128 GB546 GB/sFits FP16 / BF16~12.6 tok/s$3499 local
Apple Mac Studio M2 Ultra (192GB Unified)192 GB800 GB/sFits FP16 / BF16~18.4 tok/s$5599 local

Engineering Notes & Frequently Asked Questions

How much VRAM do I need to run FLUX.1 [dev] 12B (+T5-XXL) locally?
In 4-bit quantization (Q4_K_M, AWQ, or GPTQ) with an 8K token context window, FLUX.1 [dev] 12B (+T5-XXL) requires approximately 14.22 GB of total GPU VRAM (9.49 GB for model weights, 3.56 GB for FP16 KV cache, plus 1.17 GB CUDA/runtime buffer). Unquantized BF16/FP16 inference requires 37.33 GB VRAM.
Can FLUX.1 [dev] 12B (+T5-XXL) run on a single NVIDIA RTX 4090 or RTX 3090 (24GB)?
Yes! At 4-bit quantization (14.22 GB total), FLUX.1 [dev] 12B (+T5-XXL) fits comfortably inside 24GB VRAM on a single RTX 4090 or RTX 3090 with room for 8K–32K context.
What is the exact KV cache memory growth for FLUX.1 [dev] 12B (+T5-XXL) at long context?
With 38 layers, 24 KV heads, and head dimension 128, FLUX.1 [dev] 12B (+T5-XXL) consumes 445.3 MB of FP16 KV cache per 1,000 context tokens (or half that when enabling FP8 KV cache in vLLM / Ollama).