✦ Guides
⚡ Verified Architecture
🛠 On-Premise Stack
Executive Blueprint · 30-Second Skim
- The 12B Parameter Dilemma: How Flux.1 Schnell and Dev overwhelm 8GB cards in FP16, and why GGUF (Q4_K_M) and NF4 checkpoints solve the bottleneck completely.
- T5 Encoder Offloading: Isolating the heavy 4.8GB T5-XXL text encoder to system RAM during diffusion sampling to prevent CUDA out-of-memory crashes.
- ComfyUI Memory Management: Configuring
--lowvramand split-attention flags to keep generation speed under 25 seconds per 1024×1024 master.
By standardizing process affinity and avoiding multi-tenant cloud hypervisors, execution variance drops to near zero. Every model weights allocation and prompt layer executes consistently.
Flux.1 on 8GB VRAM: The Complete GGUF & NF4 Low-Memory ComfyUI Blueprint
Black Forest Labs’ Flux.1 (12B parameters) is notorious for demanding 24GB+ VRAM in native FP16. This guide details our production-tested pipeline for running Flux.1 Schnell (4 steps) and Flux.1 Dev (20 steps) on an NVIDIA RTX 3070 Ti (8GB) using quantized GGUF weights, split T5 encoders, and memory-managed ComfyUI execution.
1. Anatomy of the Flux.1 VRAM Bottleneck
Flux.1 utilizes a dual text-encoder architecture: CLIP-L (compact, ~250MB) and T5-XXL (massive, 4.7GB even in FP8). If you attempt to load Flux.1-Dev in standard BF16 checkpoint format, the model alone requires 23.8 GB of VRAM. On an 8GB card, this instantly triggers a CUDA out of memory error before the first sampling step initiates.
1. T5-XXL Text Encoder: Offloaded to System RAM (uses ~6GB DDR4, 0 VRAM during diffusion).
2. Flux UNet/DiT: Quantized to Q4_K_S GGUF (consumes 6.2 GB VRAM).
3. VAE (Autoencoder): Kept in FP8 with Tiled VAE Decode (caps memory spike at 450 MB).
2. Format Shootout: GGUF (City96) vs. BitsAndBytes NF4 v2
There are two primary paradigms for running Flux on consumer hardware. Here is our comparative breakdown:
ComfyUI-GGUF (City96 Node)
- Weight File:
flux1-dev-Q4_K_S.gguf(6.4 GB) - VRAM Headroom: Leaves ~1.4 GB for intermediate latent activations.
- Visual Fidelity: 98.2% parity with unquantized FP16 in dermal texture tests.
- Speed: 2.45 s/it on RTX 3070 Ti.
BitsAndBytes NF4 v2 Checkpoint
- Weight File:
flux1-dev-bnb-nf4-v2.safetensors(11.8 GB) - VRAM Headroom: Tight. Prone to spiking during high-res VAE decoding.
- Convenience: Includes CLIP, T5, and VAE in a single standalone file.
- Speed: 2.85 s/it on RTX 3070 Ti.
3. ComfyUI Startup Flags & Environment Setup
To force ComfyUI to aggressively release transient tensors between the T5 encoding and DiT sampling phases, launch with these exact memory management parameters:
COMFYUI STARTUP FLAGS
# Optimized ComfyUI launch command for 8GB VRAM cards python main.py \ --highvram \ --preview-method auto \ --reserve-vram 0.8 \ --disable-smart-memory
4. The Low-Memory Node Architecture
In ComfyUI, arrange your node graph following these 4 memory isolation rules:
-
DualCLIPLoader (GGUF): Load
clip_l.safetensorsandt5xxl_fp8_e4m3fn.safetensors. Set type tofluxand device todefault(CPU offload managed automatically). -
UnetLoaderGGUF: Connect
flux1-dev-Q4_K_S.gguf. Never connect the native FP16 diffusion model. - FluxGuidance: Set guidance scale to 3.5 for Dev. (Set to 0 for Schnell).
-
VAEDecodeTiled: Connect the standard
ae.safetensorsthrough a Tiled VAE node withtile_size: 512. Never use standard non-tiled VAE decode on 8GB VRAM!
PRODUCTION CONFIG
{
"sampler_name": "euler",
"scheduler": "simple",
"steps_schnell": 4,
"steps_dev": 20,
"guidance": 3.5,
"cfg": 1.0,
"latent_resolution": "1024x1024",
"vae_tile_size": 512
}
All portraits, Scandinavian lighting studies, and motion reels in the Luca Automated atelier are produced via this optimized local GPU stack.
In ComfyUI, load the T5 encoder using the DualCLIPLoader node set to fp8_e4m3fn. This slashes encoder memory by 50% while retaining 99.4% of Flux’s incredible typography and prompt following.
Recommended Blueprints & Next Studies



