Skip to content

How-ToGPU

How to Run FLUX.2 [klein] Locally in ComfyUI

How to run Black Forest Labs' FLUX.2 [klein] image model locally in ComfyUI: pick the 4B or 9B, base or distilled version for your VRAM and licence needs, download the Qwen text encoder, diffusion model and FLUX.2 VAE, put them in the right folders, load the official template and fix common errors.

By , Systems & Technical Editor

5 min read

How to Run FLUX.2 [klein] Locally in ComfyUI

2 [klein] for this guide. The steps, file names and memory figures come from ComfyUI's official FLUX.2 Klein tutorial, the Comfy blog and Black Forest Labs' Hugging Face model cards, all checked on 25 November 2026. Speed figures are the makers' own, measured on an RTX 5090.

FLUX.2 [klein] is a family of compact image models from Black Forest Labs, the company behind FLUX. Each model handles both text-to-image generation and image editing, including edits guided by several reference pictures, and Black Forest Labs releases the 4B models under the Apache 2.0 licence, with open weights available for commercial use. If you're still deciding between it and Stable Diffusion XL, read our SDXL vs FLUX.2 [klein] comparison first. This guide is about getting it running.

What you need

  • A graphics card with enough memory. See the table below. Black Forest Labs' model cards and hardware guidance refer to NVIDIA RTX cards.

  • ComfyUI, updated to a recent version. ComfyUI's tutorial says that if the FLUX.2 Klein workflows aren't in your templates, your ComfyUI is probably out of date. Our guide to installing ComfyUI on Windows covers a fresh install.

  • Disk space for the model files, plus a free Hugging Face account if you want the 9B models.

Step 1: Pick the right FLUX.2 [klein] model

There are four main versions: 4B and 9B sizes, each as a base model and a distilled model. The base models are undistilled and intended for fine-tuning and LoRA training; the distilled models use just four steps, so they're much faster.

Version

Steps

Speed on RTX 5090 (Comfy)

VRAM (Comfy)

Licence

4B distilled

4

~1.2s

8.4GB

Apache 2.0

4B base

50

~17s

9.2GB

Apache 2.0

9B distilled

4

~2s

19.6GB

FLUX Non-Commercial

9B base

50

~35s

21.7GB

FLUX Non-Commercial

Speed and VRAM figures are from the Comfy blog's FLUX.2 [klein] announcement. Black Forest Labs' own model cards give more conservative figures for the full BF16 versions: about 13GB of VRAM for 4B (it names the RTX 3090 and RTX 4070 and above) and about 29GB for 9B (RTX 4090 and above). Neither source explains exactly how its figure was measured, so treat the two as a range rather than a precise requirement.

Our suggestion: start with the 4B distilled model. It's the fastest and least demanding version, and like the 4B base model it's licensed for commercial use under Apache 2.0. Move up to 9B if you have a 24GB card and want to experiment, and remember its licence is for non-commercial use.

Step 2: Download the model files

ComfyUI's tutorial lists these files for the 4B models:

  • Text encoder: qwen_3_4b.safetensors

  • Diffusion model: flux-2-klein-4b-fp8.safetensors (distilled) and/or flux-2-klein-base-4b-fp8.safetensors (base)

  • VAE: flux2-vae.safetensors

For the 9B models, the text encoder is qwen_3_8b_fp8mixed.safetensors, the diffusion models are flux-2-klein-9b-fp8.safetensors and flux-2-klein-base-9b-fp8.safetensors, and the VAE is the same flux2-vae.safetensors. ComfyUI notes that for the 9B diffusion models you need to visit Black Forest Labs' Hugging Face repository and accept the licence agreement before downloading.

The Comfy blog also lists official BF16, FP8 and NVFP4 versions on Hugging Face. The ComfyUI tutorial's file list uses the FP8 diffusion models.

Step 3: Put the files in the right folders

Inside your ComfyUI folder, the files go here:

ComfyUI/models/text_encoders/   qwen_3_4b.safetensors (or qwen_3_8b_fp8mixed.safetensors)
ComfyUI/models/diffusion_models/   flux-2-klein-4b-fp8.safetensors etc.
ComfyUI/models/vae/   flux2-vae.safetensors

If ComfyUI was already running, restart it after copying the files in so the loader nodes can find them.

Step 4: Load the official workflow

  1. Open ComfyUI and go to the Templates browser.

  2. Look for Flux.2 Klein 4B & 9B under Images. There are separate templates for text-to-image, image edit with the base model, and image edit with the distilled model.

  3. If ComfyUI prompts you to download missing models, you can let it, or point the loader nodes at the files you downloaded in Step 2.

  4. Check the three loader nodes: the diffusion model loader should point to your FLUX.2 [klein] file, the text encoder loader to the matching Qwen file, and the VAE loader to flux2-vae.safetensors.

Step 5: Generate or edit an image

For text-to-image, type your prompt into the prompt node and click Run. With the distilled model, leave the step count at the template's four steps; the speed comes from that low step count.

For image editing, use an image edit template, upload your picture to the LoadImage node, and describe the change. Comfy lists style changes, semantic edits, replacing or removing objects, combining several reference images and repeated edits as supported. Templates with two LoadImage nodes are for multi-reference edits, for example putting a product from one photo into a scene from another.

Fixing common problems

  • The templates are missing: update ComfyUI. The tutorial says missing templates or nodes usually mean an outdated version or nodes that failed to load at start-up.

  • Size mismatch errors when loading: a mismatch between files, such as a 4B diffusion model with the 9B text encoder, is a likely cause. Check each loader node against the file lists above, and update ComfyUI if the files are right.

  • Out of memory: switch from 9B to 4B, use the FP8 files from ComfyUI's list, and close other GPU-heavy apps. Our guide to running ComfyUI on low VRAM has more fixes, and our guide to checking VRAM usage in Windows shows what's using your graphics memory.

  • Slow results with a base model: that's expected. Base models use around 50 steps, so for quick work use the distilled versions.

Once it's working, you can add your own styles with LoRAs; see our guide to using LoRAs in ComfyUI. The 4B base model is the one Black Forest Labs suggests for fine-tuning on limited hardware.

Our verdict

FLUX.2 [klein] 4B distilled is the easiest way to try FLUX.2 on your own PC: update ComfyUI, download the Qwen 3 4B text encoder, the FP8 diffusion model and the FLUX.2 VAE, put them in the right folders and load the official template. Comfy puts it at about 8.4GB of VRAM, though Black Forest Labs advises about 13GB for the full-precision files, so a 16GB card is the safe choice. Use the 9B models only on a 24GB card and only for non-commercial work.

The bottom line

FLUX.2 [klein] 4B distilled is the easiest way to try FLUX.2 on your own PC: update ComfyUI, download the Qwen 3 4B text encoder, the FP8 diffusion model and the FLUX.2 VAE, put them in the right folders and load the official template. Comfy puts it at about 8.4GB of VRAM, though Black Forest Labs advises about 13GB for the full-precision files, so a 16GB card is the safe choice. Use the 9B models only on a 24GB card and only for non-commercial work.

Sources

  1. 01ComfyUI documentation: FLUX.2 Klein in ComfyUI
  2. 02Comfy blog: FLUX.2 [klein] 4B & 9B
  3. 03Black Forest Labs: FLUX.2 [klein] 4B model card
  4. 04Black Forest Labs: FLUX.2 [klein] 9B model card

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Windows ML Gets DX CGC: Microsoft's New Way to Run Local AI on Your GPU

News

Windows ML Gets DX CGC: Microsoft's New Way to Run Local AI on Your GPU

Microsoft's Windows ML 2.9.42 Experimental adds DX CGC, a DirectX-based compiler for running AI models on graphics cards, with NVIDIA acceleration first via the 621.24 driver, plus direct loading of GGUF and Hugging Face models. We explain what's new and what it means for local AI on Windows.

Eleanor Shaw5 min

Devstral Small 2 vs Qwen3-Coder: Which Local Coding Model Should You Run?

Versus

Devstral Small 2 vs Qwen3-Coder: Which Local Coding Model Should You Run?

Devstral Small 2 and Qwen3-Coder 30B are popular open coding models for running on your own PC. We compare Devstral's 24B design with Qwen's 3.3B-active mixture of experts, their 15GB and 19GB downloads, context length, image support, tools and licences, and say which suits your GPU.

Callum Reid6 min

How to Run Mistral AI Models Locally on Your PC

How-To

How to Run Mistral AI Models Locally on Your PC

Mistral AI's open models run free on your own PC with Ollama. We explain the Ministral 3 3B, 8B and 14B models, Mistral Small 3.2, Magistral and Devstral Small 2, which one fits your graphics card's VRAM, the commands to run them and the low temperature settings Mistral recommends.

Marcus Thorne6 min

PTM7950 vs Thermal Paste: Is a Phase-Change Pad Worth It?

Versus

PTM7950 vs Thermal Paste: Is a Phase-Change Pad Worth It?

PTM7950 is a phase-change pad that softens at 45°C; Honeywell lists 8.5 W/m·K and 0.04-0.08 °C·cm²/W, with impedance holding after 1,000-hour bake and cycling tests. It suits laptops and GPUs you won't reopen; paste stays simpler for desktop CPUs you reseat often.

Callum Reid6 min