🌱⚡
GPU Garden
VRAM Sizing & Hardware Fit
Test in Matchmaker →
Black Forest Labs 12.0 Billion Parameters (Diffusion Transformer / Flow)

Black Forest Labs FLUX.1 [dev] VRAM Requirements Guide

State-of-the-art open diffusion transformer. Combines a 12B MMDiT core with T5-XXL and CLIP-L text encoders for photorealistic generation.

4-Bit (Q4_K_M) - Recommended
12.00 GB

>98% perplexity retention. Standard Ollama/llama.cpp quantization.

8-Bit (Q8_0) - Near Lossless
18.50 GB

Virtually identical to FP16 (~99.9% fidelity). Demands high-capacity VRAM.

16-Bit (FP16 / BF16) - Full
26.50 GB

Uncompressed weights. Requires multi-GPU clusters or datacenter cards.

Architectural Memory Breakdown & KV-Cache Scaling

Unlike autoregressive LLMs, FLUX.1 [dev] does not allocate a token KV-cache; instead, memory is dominated by three distinct components: the 12B Multimodal Diffusion Transformer (`MMDiT`) flow backbone (~23.8 GB in BF16, ~11.9 GB in FP8, or ~6.8 GB in NF4/Q4_K_S), the 4.7B `T5-XXL` + `CLIP-L` dual text encoders (~9.5 GB in FP16 or ~4.9 GB in FP8), and high-resolution VAE latent decoding activations (~2.5 GB at 1024x1024). Sequential encoder offloading lets ComfyUI evict T5-XXL before denoising begins, fitting FP8 FLUX comfortably on 16GB–24GB GPUs and NF4/GGUF Q4 on 12GB cards.

Tier 1 Free Software Fix ($0)

Hitting OOM during the final VAE decode step in ComfyUI or Forge? Replace the standard `VAE Decode` node with `VAE Decode (Tiled)` (tile size `512`) and use `t5xxl_fp8_e4m3fn.safetensors` to prevent peak activation spikes.

Recommended Hardware Sweet Spot
NVIDIA RTX 3060 12GB (NF4) or RTX 4090 24GB (FP16/Q8)

Provides sufficient headroom for weights, 8k+ context KV-cache, and CUDA runtime buffers without Out-Of-Memory (OOM) crashes.

Run Black Forest Labs FLUX.1 [dev] Locally

Ollama:
# Run via ComfyUI: git clone https://github.com/comfyanonymous/ComfyUI
vLLM:
# Use Diffusers pipeline: pipe = FluxPipeline.from_pretrained('black-forest-labs/FLUX.1-dev')

Frequently Asked Questions

Why does unquantized BF16 FLUX.1 [dev] spill slightly on a 24GB RTX 4090?

Loading the 23.8 GB BF16 transformer plus 9.5 GB FP16 T5-XXL simultaneously exceeds 24GB; using `flux1-dev-fp8.safetensors` on RTX 4090/5080/5090 keeps everything in VRAM at maximum Ada/Blackwell FP8 speed.

Can an 8GB GPU run FLUX.1 [dev] with GGUF Q4_0?

Yes, ComfyUI-GGUF `flux1-dev-Q4_K_S.gguf` (~6.8 GB) works on 8GB cards by offloading the T5-XXL encoder entirely to system DDR4/DDR5 RAM (`--lowvram`), adding ~4–8 seconds per prompt encode.

Test Custom Hardware & Context Windows

Simulate your exact GPU, calculate token throughput speeds, or compare cloud rental break-even costs.

Open in GPU Garden Matchmaker →