GPU & Model Presets
Flux.1-dev GGUF Q4_K_S Preset for 12 GB VRAM & --lowvram Nodes
Squeeze Flux.1-dev into 12 GB GPUs by pairing 6.8 GB Q4_K_S GGUF weights with Q5_K_M T5-XXL and 64 GB System RAM page pinning.
10.6 GB Peak VRAM · 64 GB RAM Floor · Zero OOM on 12 GB
Dequantization Overhead vs Memory Survival
Q4_K_S GGUF keeps the entire DiT under 7 GB so 12 GB GPUs avoid layer-by-layer thrashing, trading ~30% dequantization compute overhead for reliable completion.
Offloading Prompt Rewriting Externally
Never load a local 7B captioning LLM alongside Flux GGUF on 12-16 GB cards; route prompt expansion to Xiaomi MiMo API instead.
Measured Thresholds & ComfyUI Configuration Matrix
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| Quantized DiT | flux1-dev-Q4_K_S.gguf (6.8 GB) | Fits inside 12 GB VRAM alongside activations and CUDA |
| Quantized Text Encoder | t5-v1_1-xxl-Q5_K_M.gguf (3.6 GB) | Cuts host RAM pressure during --lowvram swaps |
| Host RAM + Swap | 64 GB RAM + 32 GB NVMe Swap | Prevents safetensors/GGUF mmap exhaustion under load |
| Allocator Env | expandable_segments:True | Stops fragmented tensor allocations on tight 12 GB cards |