★ Reading this for free? Get 20 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 seconds
AI Tools

Run FLUX.1 Locally in 2026: VRAM Needs + 5-Minute Setup

March 17, 2026
18 min read
Local AI Master Research Team

Want to go deeper than this article?

Free account unlocks the first chapter of all 20 courses — RAG, agents, MCP, voice AI, MLOps, real GitHub repos.

📚AI Learning Path

Generating images locally? Take it further. From FLUX and ComfyUI setup to building real image pipelines and apps. First chapter free, no card.

Start free
Or own it for life — Lifetime $149, pay once

FLUX Quick Reference

VariantStepsLicenseVRAM (Q4)
FLUX.1 schnell1-4Apache 2.06-8GB
FLUX.1 dev20-30Non-Commercial6-8GB
FLUX.1 proVariableAPI Only
Best for 8GB GPU: GGUF Q4/Q5 | Best for 24GB: FP16 full precision

Can you run FLUX locally?

Yes. FLUX.1 [dev] runs locally on an 8GB GPU (RTX 3060/4060) using a GGUF Q4/Q5 quantized model in ComfyUI, and on a 24GB RTX 4090 at full FP16 in 10–18 seconds per 1024×1024 image. The Apache-2.0 FLUX.1 [schnell] generates in 1–4 steps for free commercial use, and as of January 2026 the new FLUX.2 [klein] 4B (also Apache 2.0) brings near-instant generation to consumer hardware. The fastest setup is the ComfyUI route below — install, drop in the model files, and you are generating in about five minutes.

Reading articles is good. Building is better.

Free account = 20+ free chapters across 20 courses, with a per-chapter AI tutor. No card. Cancel anytime if you ever upgrade.

What is FLUX?

FLUX is a 12-billion parameter text-to-image model from Black Forest Labs—the same team that created Stable Diffusion. Released in 2024, FLUX represents the next generation of open image generation.

Why FLUX Over Stable Diffusion?

FeatureFLUX.1Stable Diffusion 3.5
PhotorealismExcellentGood
TypographyExcellentGood (3.5), Poor (1.5/XL)
Human anatomyExcellentStruggles with fingers
Prompt adherenceExcellentGood
Parameters12B2-8B

Company Background

Black Forest Labs secured:

  • $300M funding at $3.25B valuation (2025)
  • $140M Meta partnership
  • NVIDIA Blackwell integration
  • Adobe Photoshop integration

FLUX Model Variants

FLUX.1 Family (12B Parameters)

VariantStepsQualityLicense
schnell1-4GoodApache 2.0 (free commercial)
dev20-30HighNon-commercial
proVariableHighestAPI only

FLUX.1 [schnell] ("fast" in German):

  • Generates in just 1-4 steps via adversarial distillation
  • Free for commercial use (Apache 2.0)
  • Best for rapid prototyping

FLUX.1 [dev]:

  • Guidance-distilled from pro
  • Best quality for local use
  • Requires commercial license for business use

FLUX.2 Family (32B Parameters)

FLUX.2 [dev] launched November 25, 2025 with major improvements:

  • Multi-reference support (up to 10 images)
  • 4-megapixel editing
  • Complex typography and infographics
  • Couples a Mistral-3 24B vision-language model for stronger prompt understanding

FLUX.2 [klein] is the distilled, low-VRAM tier and now ships in two sizes. The 4B variant is released under an Apache 2.0 license (free commercial use), needs only ~13GB VRAM at FP16, runs on an RTX 3060 12GB, and—being step-distilled to roughly 4 steps—generates in about a second on a capable GPU. It is the first FLUX.2 weight you can actually run locally without a data-center GPU. A larger 9B klein variant (non-commercial license, ~29GB VRAM at FP16) trades some accessibility for noticeably better detail and coherence on complex prompts. Both klein sizes have native ComfyUI and Diffusers support, plus GGUF builds (via city96's ComfyUI-GGUF) for even lower memory. The full FLUX.2 [dev] is still a 32B non-commercial model that needs 24GB+ when heavily quantized and 80GB+ at full precision, so most local users on a single consumer card should reach for FLUX.2 [klein] 4B or stay on FLUX.1.

VariantParametersLicenseVRAM (FP16)Notes
FLUX.2 klein 4B4BApache 2.0~13GBSub-second on consumer GPUs; runs on RTX 3060 12GB
FLUX.2 klein 9B9BNon-commercial~29GBBetter detail; needs RTX 5090/RTX 6000 class
FLUX.2 dev32BNon-commercial80GB+ (24GB+ quantized)Multi-reference, 4MP editing

Ready to install the new generation? Our FLUX.2 local setup guide walks through the klein 4B and dev weights step by step, including ComfyUI node files and GGUF quants for lower-VRAM cards.

For a faster, even lighter alternative to FLUX entirely, see our Z-Image Turbo in ComfyUI guide—a newer turbo model that targets near-real-time generation on modest GPUs.


Hardware Requirements

VRAM by Precision

PrecisionVRAMQualityGPU Examples
FP16 (full)24-33GBMaximumRTX 4090, A6000
FP812-16GBNear-identicalRTX 4070 Ti, 3060 12GB
GGUF Q812-16GBNear-identicalRTX 4070 Ti
GGUF Q58-10GB95%+ qualityRTX 4060, 3060
GGUF Q4/NF46-8GBGoodRTX 4060, 3060

For a card-by-card breakdown of which precision fits each GPU, see our FLUX VRAM requirements by GPU reference.

High-End (Full Models):

GPUVRAMSpeed
RTX 509032GB~7 sec/image
RTX 409024GB~10-18 sec/image
H10080GB~1.6 sec/image

Mid-Range (Quantized):

GPUVRAMBest Quantization
RTX 4070 Ti Super16GBQ8
RTX 306012GBQ5/Q6
RTX 4060 Ti16GBQ6/Q8

Budget:

GPUVRAMMax Quantization
RTX 30508GBQ4/Q5
GTX 1660 Ti6GBQ3/Q4

Apple Silicon

ChipMemoryTime (1024x1024)
M4 Max32-128GB~85 sec
M3 Max32-128GB~105 sec
M2 Max32-96GB~145 sec

Note: 2-4x slower than NVIDIA. Use Draw Things or Stability Matrix for best Mac support.


Reading articles is good. Building is better.

Free account = 20+ free chapters across 20 courses, with a per-chapter AI tutor. No card. Cancel anytime if you ever upgrade.

ComfyUI Setup

ComfyUI is the most flexible and best-supported front end for FLUX. If you are brand new to node-based workflows, read our complete ComfyUI guide first—it covers the interface, the Manager, and how workflows connect—then come back here for the FLUX-specific model files.

Step 1: Install ComfyUI

git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt

Step 2: Download Required Files

Text Encoders (models/clip/):

FileSizeUse
clip_l.safetensors~250MBRequired
t5xxl_fp16.safetensors~9.4GBHigh VRAM
t5xxl_fp8_e4m3fn.safetensors~4.7GBLow VRAM

VAE (models/vae/):

FileSize
flux_ae.safetensors~335MB

UNET Model (models/unet/):

FileVRAMQuality
flux1-dev.safetensors24GB+Maximum
flux1-dev-fp8.safetensors12-16GBExcellent
flux1-dev-Q8_0.gguf12-16GBExcellent
flux1-dev-Q5_0.gguf8-10GBVery good
flux1-dev-Q4_0.gguf6-8GBGood

Step 3: For GGUF Models (Low VRAM)

  1. Open ComfyUI Manager
  2. Install "ComfyUI-GGUF" node
  3. Restart ComfyUI
  4. Use GGUF-specific workflow

Step 4: Run ComfyUI

# Standard
python main.py

# Low VRAM (8-12GB)
python main.py --lowvram

# Very Low VRAM (6-8GB)
python main.py --lowvram --cpu-text-encoder

Forge WebUI Setup

Note: Automatic1111 does NOT support FLUX. Use Forge instead.

Installation

  1. Download Forge one-click package (CUDA 12.1 + PyTorch 2.3.1)
  2. Extract and run update.bat
  3. Run run.bat

Model Download

Download flux1-dev-bnb-nf4 from Hugging Face:

https://huggingface.co/lllyasviel/flux1-dev-bnb-nf4/tree/main

Place in: stable-diffusion-webui-forge/models/Stable-diffusion/


Python/Diffusers Setup

import torch
from diffusers import FluxPipeline

# Load model
pipe = FluxPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-dev",
    torch_dtype=torch.bfloat16
)

# Memory optimization
pipe.enable_model_cpu_offload()

# Generate image
image = pipe(
    "A photorealistic portrait of a woman, golden hour lighting, "
    "shot on Fujifilm X-T5, 35mm f/1.4",
    num_inference_steps=28,
    guidance_scale=3.5
).images[0]

image.save("output.png")

4-bit Quantization (Low VRAM)

from diffusers import FluxPipeline, BitsAndBytesConfig

quantization_config = BitsAndBytesConfig(load_in_4bit=True)

pipe = FluxPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-dev",
    quantization_config=quantization_config,
    device_map="cpu"
)
pipe.enable_model_cpu_offload()

Prompting Guide

Prompt Structure

Subject + Action + Style + Context

Example Prompts

Photorealistic:

A weathered fisherman with deep wrinkles, wearing a yellow raincoat,
standing on a wooden dock at golden hour, dramatic rim lighting,
shot on Fujifilm X-T5, 35mm f/1.4

Artistic:

A bioluminescent forest with crystalline trees, ethereal mist
rising from an obsidian lake, otherworldly atmosphere,
hyper-detailed fantasy illustration

Typography:

A neon sign reading "OPEN 24 HOURS" in pink and blue,
mounted on a brick wall, rain-slicked street reflections,
night photography, shallow depth of field

Prompting Do's and Don'ts

DoDon't
Write naturallyUse prompt weights
Be specificUse negative prompts
Include camera detailsOverload with keywords
Layer foreground to backgroundDescribe sequential actions

FLUX.1 [dev]

SettingValue
Steps20-30 (25 optimal)
CFG Scale3.5 (art) or 1-3 (photo)
SamplerEuler
Resolution1024x1024
Seed-1 (variety)

FLUX.1 [schnell]

SettingValue
Steps1-4 (up to 8 possible)
CFG Scale4-9
SamplerEuler
Resolution1024x1024

Speed LoRAs

Use HyperFlux or FluxTurbo LoRAs to reduce dev from 25 steps to 4-9:

LoRAStepsQuality
HyperFlux4-890%+
FluxTurbo7-995%+

Memory Optimization

ComfyUI Launch Flags

python main.py \
  --lowvram \
  --cpu-text-encoder \
  --preview-method none \
  --disable-xformers

Flag Reference

FlagEffect
--lowvramAggressive memory management
--cpu-text-encoderOffload T5 to CPU (saves 1-2GB)
--cpu-vaeOffload VAE to CPU
--preview-method noneDisable previews

General Tips

  1. Close background apps (browsers, Discord)
  2. Reduce resolution for testing (768x768)
  3. Keep batch size at 1
  4. Use GGUF Q5 - 95%+ quality at 1/4 memory
  5. Restart ComfyUI between model changes

VRAM Rule of Thumb

GGUF file size ≈ VRAM usage

  • Q8: ~12-13GB file = ~12-13GB VRAM
  • Q5: ~6-8GB file = ~6-8GB VRAM
  • Q4: ~4-6GB file = ~4-6GB VRAM

How do you make FLUX faster on a small GPU? (Nunchaku / SVDQuant)

If GGUF Q4/Q5 still feels slow, the biggest 2026 speedup for local FLUX is Nunchaku, the MIT HAN Lab inference engine that runs FLUX as a true 4-bit (INT4) model using the SVDQuant method. Unlike GGUF—which is mainly about shrinking the file to fit VRAM—Nunchaku is built for raw throughput. For the full low-memory playbook, our guide to running FLUX on a low-VRAM GPU covers tiling, CPU offload, and the 6-8GB tricks in detail.

Measured gains (approximate, vendor/community figures):

SetupThroughputNotes
FLUX.1 dev FP8~1.7 it/sBaseline on RTX 4090
FLUX.1 dev Nunchaku INT4~4.8 it/s~2.8× faster than FP8
NF4 W4A16 baselineNunchaku ~3.0× faster

SVDQuant shrinks the 12B FLUX.1 model ~3.6× and Nunchaku cuts memory ~3.5× versus 16-bit, so an RTX 3080 10GB can generate in under 10 seconds at quality comparable to FP16. To use it: install the ComfyUI-nunchaku plugin (by nunchaku-ai / MIT HAN Lab) through ComfyUI Manager, download the matching Nunchaku INT4 FLUX checkpoint, and load it with the Nunchaku loader node. As of the v1.2.0 release (January 2026) it added native-ComfyUI LoRA support and INT4 support for older 20-series GPUs.

When to pick which:

GoalBest choice
Lowest VRAM / simplest setupGGUF Q4/Q5
Maximum speed at low VRAMNunchaku INT4 (SVDQuant)
Maximum quality, 24GB+ cardFP16 or FP8
Near-instant, free commercialFLUX.1 schnell or FLUX.2 klein 4B

Picking the right card for any of these matters more than the quantization method—see our best GPUs for AI in 2026 breakdown for price-per-image and VRAM-tier guidance before you buy.


FLUX ControlNets

Available Tools

ToolPurposeLocation
CannyEdge-guidedmodels/diffusion_models/
DepthDepth-map controlmodels/diffusion_models/
ReduxImage mixingmodels/style_models/
FillInpaintingmodels/diffusion_models/

Download

Full models from Hugging Face:

  • flux1-canny-dev.safetensors
  • flux1-depth-dev.safetensors

LoRA versions for lower VRAM:

  • flux1-canny-dev-lora.safetensors
  • flux1-depth-dev-lora.safetensors

Redux requires sigclip_vision encoder in models/clip_vision/.


Performance Benchmarks

Generation Speed

GPUResolutionStepsTime
RTX 50901024x102420~7 sec
RTX 40901024x102420~10-18 sec
RTX 4090 (first)1024x102420~41 sec
M4 Max1024x102420~85 sec

Quality vs Speed Trade-off

ModelStepsSpeedQuality
schnell4FastestGood
dev + HyperFlux8FastVery good
dev25ModerateExcellent
dev30SlowerMaximum

Which FLUX model should you run locally in 2026?

With three generations now available, the right pick depends on your VRAM, your license needs, and whether you want speed or fidelity.

Your situationRecommended modelWhy
6-8GB VRAM, any useFLUX.1 dev GGUF Q4/Q5Smallest footprint, mature tooling
8-10GB VRAM, want speedFLUX.1 dev + Nunchaku INT4~3× faster than FP8 at low VRAM
Need free commercial useFLUX.1 schnell or FLUX.2 klein 4BBoth Apache 2.0
12GB card, newest modelFLUX.2 klein 4B~13GB FP16, sub-second, native ComfyUI
24GB card, best 1-image qualityFLUX.1 dev FP16Proven quality, huge LoRA/ControlNet library
32GB+/multi-GPU, frontier featuresFLUX.2 dev (32B)Multi-reference + 4MP editing

The honest takeaway: FLUX.1 [dev] still has the deepest ecosystem of LoRAs, ControlNets, and community workflows, so it remains the safest local default in mid-2026. FLUX.2 [klein] 4B is the model to adopt if you want the newest architecture on a mainstream GPU, and Nunchaku is the upgrade to reach for when speed—not just fitting in VRAM—is the bottleneck.

Key Takeaways

  1. FLUX.1 schnell is Apache 2.0 - Free for commercial use
  2. 8GB GPUs work with GGUF Q4/Q5 quantization
  3. RTX 4090 generates in 10-18 seconds at full quality
  4. Natural language prompting - No weights or negatives
  5. Use FP8 T5 encoder to save 5GB VRAM
  6. Apple Silicon is 2-4x slower but works with MPS
  7. FLUX.2 [klein] 4B (Apache 2.0, Jan 2026) runs on consumer GPUs; FLUX.2 [dev] 32B needs 24GB+ quantized, so most stay on FLUX.1 or klein

Next Steps

  1. Check VRAM requirements for your GPU
  2. Compare with RTX 5090 for upgrades
  3. Learn quantization techniques
  4. Explore local AI tools for LLMs
  5. Set up RAG for text-based AI

FLUX represents the cutting edge of open-source image generation, delivering Midjourney-level quality that runs on consumer hardware. Whether you're using a high-end RTX 4090 for instant generation or an 8GB GPU with quantized models, FLUX enables professional-quality AI art creation without cloud dependencies or API costs.

🎯
AI Learning Path

Generating images locally? Take it further.

From FLUX and ComfyUI setup to building real image pipelines and apps. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once

Liked this? 20 full AI courses are waiting.

From fundamentals to RAG, agents, MCP servers, voice AI, and production deployment with real GitHub repos. First chapter free, every course.

Reading now
Join the discussion

Local AI Master Research Team

Creator of Local AI Master. I've built datasets with over 77,000 examples and trained AI models from scratch. Now I help people achieve AI independence through local AI mastery.

Build Real AI on Your Machine

RAG, agents, NLP, vision, and MLOps - chapters across 20 courses that take you from reading about AI to building AI.

Want structured AI education?

20 courses, 495+ chapters, from $9. Understand AI, don't just use it.

AI Learning Path
Topics in this guide

Comments (0)

No comments yet. Be the first to share your thoughts!

📅 Published: February 6, 2026🔄 Last Updated: June 20, 2026✓ Manually Reviewed

Build Real AI on Your Machine

RAG, agents, NLP, vision, and MLOps - chapters across 20 courses that take you from reading about AI to building AI.

Was this helpful?

LM

Written by the Local AI Master Team

The team behind Local AI Master

We build Local AI Master around practical, testable local AI workflows: model selection, hardware planning, RAG systems, agents, and MLOps. The goal is to turn scattered tutorials into a structured learning path you can follow on your own hardware.

✓ Local AI Curriculum✓ Hands-On Projects✓ Open Source Contributor
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Generating images locally? Take it further.

From FLUX and ComfyUI setup to building real image pipelines and apps. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators