★ Reading this for free? Get 25 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once
AI Tools

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

March 17, 2026
18 min read
Barsha Mohapatra

Want to go deeper than this article?

Free account unlocks the first chapter of all 25 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 FP8 or GGUF Q8 entirely in VRAM (full FP16 needs the text encoders offloaded). 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 = the first chapter of all 25 courses, with a per-chapter AI tutor. No card.

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 Series B at a $3.25B post-money valuation, announced December 1, 2025 (BFL press release; covered by Tech.eu the same day)
  • A multi-year image-model contract with Meta reported at $140M (Bloomberg, September 9, 2025; neither company confirmed the figure)
  • 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 (as of November 2, 2026 the bfl.ai licensing page sells self-hosting licences through its sign-in dashboard or Contact Sales and publishes no price)

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 (BFL lists RTX 3090/4070 and above; 12GB cards need a GGUF or FP8 build), and—being step-distilled to roughly 4 steps—is quoted by BFL at under 0.5 seconds per image on modern hardware. 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 per BFL; RTX 3090/4070 and above (12GB cards via GGUF/FP8)
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-10GBClose to FP16RTX 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 (not timed by us; what decides it)
RTX 509032GBFP16 dev fits entirely in VRAM; fastest consumer option
RTX 409024GBFP8 or GGUF Q8 stays resident; FP16 needs text-encoder offload
H10080GBFull FP16 with room to spare; data-center card

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-128GBNot timed by us; newest GPU cores and highest bandwidth of the three
M3 Max32-128GBNot timed by us; expect slower than M4 Max
M2 Max32-96GBNot timed by us; expect slower than M3 Max

Note: expect several times slower than a discrete NVIDIA card. Use Draw Things or Stability Matrix for best Mac support.


Own it instead of renting it

Run this on your own machine and stop paying every month

Pay once and keep it. No renewal, no per-token bill, and nothing you feed it ever leaves your hardware.

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-8Some loss of fine detail at the lowest step counts
FluxTurbo7-9Closer to full-step dev; compare on your own prompts

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 - close to FP16 output at a fraction of the 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.

Published gains (from the Nunchaku README, checked November 2, 2026; we have not timed it ourselves):

SetupThroughputNotes
FLUX.1 dev BF161× (baseline)On a 16GB laptop RTX 4090 it needs CPU offloading
FLUX.1 dev Nunchaku INT48.7× the BF16 baselineSame laptop GPU; no offloading needed
NF4 W4A16 baseline1×Nunchaku ~3× faster

Per the same README, SVDQuant cuts the 12B FLUX.1-dev model's memory 3.6× versus BF16 while keeping visual fidelity, which is what lets 10-16GB cards hold the whole model without offloading. 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. If you expect to move from stills into motion later, size the card against our best GPU for AI video generation by VRAM tier instead—video models are far less forgiving of an 8GB budget than FLUX is.


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

We have not timed FLUX on these cards, and seconds-per-image swings with sampler, attention kernel, precision and resolution, so the table records what decides speed on each rather than a number:

GPUResolutionStepsWhat to expect
RTX 5090 (32 GB)1024x102420FP16 dev fits entirely in VRAM; the fastest consumer option
RTX 4090 (24 GB)1024x102420FP8 or GGUF Q8 stays resident; FP16 needs text-encoder offload
RTX 4090 (first run)1024x102420First image also pays model load and compile time; later runs are much quicker
M4 Max1024x102420Runs via PyTorch MPS; expect it to be several times slower than a discrete RTX card

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 NF4 per the Nunchaku README
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.

Two licence questions come up constantly. If you want a FLUX-family base without a filtering obligation, our guide to uncensored / unfiltered local models explains why FLUX.1 [dev] and [schnell] ship no runtime filter while the FLUX.2 [dev] licence requires content filters or manual review. And if you are weighing a non-FLUX model in the same weight class, Krea 2 (open weights since June 22, 2026; a 12.9B transformer with Raw and 8-step Turbo checkpoints) runs natively in ComfyUI, under a community licence with revenue and seat limits.

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 keeps FP8 / GGUF Q8 fully in VRAM for full-quality local generation
  4. Natural language prompting - No weights or negatives
  5. Use FP8 T5 encoder to save 5GB VRAM
  6. Apple Silicon is several times 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
Once your hardware is sorted

Go from one-off images to a real workflow

The Local Image Generation course covers ComfyUI, SDXL and FLUX properly — plus 24 more courses on running AI on your own hardware.

$149 once unlocks everything, forever — about $0.27/chapter for life. Prefer to spread it out? Pro is $79/year (saves 27%) or $8.99/month.
Secure checkout by Lemon Squeezy — your card never touches this siteInstant access the moment you payFirst chapter of every course is free — try before you buy

Liked this? 25 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
TagsFLUXImage GenerationComfyUIStable DiffusionAI ArtLocal AI

Barsha Mohapatra

Local AI Master writes hands-on courses and hardware guides for running AI on machines you own. Content is checked against current releases and corrected when readers tell us it is wrong.

Build Real AI on Your Machine

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

Want the structured version?

Hands-on courses on local AI, from $8.99 a month. The first chapter of each is free.

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: November 2, 2026✓ Manually Reviewed

Build Real AI on Your Machine

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

Was this helpful?

Barsha Mohapatra

Written by

Barsha Mohapatra

Founder and Editor, Local AI Master · Founder, Little AI Master

Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.

📚
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