Modifications: the original weights were quantized (e.g. W4A4 / FP4 / INT4 / FP8) and
repackaged for the QuantFunc inference engine — a "modification" under Apache-2.0 §4(b).
Upstream license: the base model is licensed under the Apache License 2.0, included here as LICENSE-APACHE; the upstream copyright and attribution notices are retained.
This derivative: the QuantFunc quantization & packaging are additionally provided under the QuantFunc Model License (see LICENSE).
This repository is not affiliated with or endorsed by the upstream model authors.
Disclaimer: Derived from FLUX.2 [klein] by Black Forest Labs. This is not an official Black Forest Labs product and is not endorsed by or affiliated with BFL. "FLUX" is a trademark of Black Forest Labs.
⚡ FLUX.2 Klein 4B — pre-quantized for speed. The lighter, fast Klein variant for text-to-image and reference-based editing, running 2x–11x faster with the QuantFunc plugin.
This series ships the distilled (4-step) and base (28-step) FLUX.2 Klein 4B transformers across three GPU tiers — 50x FP4 (Blackwell), 40x INT4+FP8 (Ada/Hopper), 30x-below INT4+INT8 (RTX 30 and below) — so every card gets the fastest path it can run.
Pre-quantized FLUX.2 Klein 4B model series by QuantFunc, Lighting backend. Text-to-image and reference-based image editing.
✨ Both the distilled AND the non-distilled (base) model are supported, and the series ships three GPU tiers so every card gets the best path it can run:
50x (Blackwell, FP4) · 40x (RTX 40 / Ada & Hopper, INT4 + FP8) · 30x-below (RTX 30 and below, INT4 + INT8).
Overview
FLUX.2 Klein is Black Forest Labs' Flux.2 family. The 4B variant (the lighter, fast variant, transformer K=3072). QuantFunc ships, pre-quantized:
Base / non-distilled transformer — the full 28-step model with classical CFG (--guidance-scale 4.0), highest quality.
…each in 3 hardware tiers (below). Distilled and base share the same base-model — only the transformer file differs.
Hardware tiers (pick by GPU)
FP4 needs Blackwell (SM120); FP8 needs Ada (SM89) or Hopper (SM90) — e.g. RTX 40 / L40 / H100 / H200; INT4/INT8 run everywhere (Ampere/Turing, e.g. RTX 30/20, A100). So:
Tier
GPUs
attention + FFN
modulation/embedders/head
base-model
50x
Blackwell (SM120+) — RTX 50 series, B100/B200/GB200, RTX PRO Blackwell
FP4
FP8
klein-4b-series-50x-above-base-model (FP4 text encoder)
Status: ✓ All weights uploaded; the VAE includes both encoder and decoder. Every tier × {distilled, base} is visually validated to generate correctly.
Distilled (4-step) vs Base (28-step)
Transformer
Source
Steps
Guidance
Best for
klein-4b-<tier>-lighting.safetensors
Klein distilled
4
none (guidance-distilled)
Fastest
klein-4b-base-<tier>-lighting.safetensors
Klein base
28
--guidance-scale 4.0 (classical CFG)
Highest quality
Inference
bash
1# 50x — Blackwell (RTX 50 / B-series). Distilled, 4-step:2quantfunc --model-dir klein-4b-series-50x-above-base-model \3 --transformer transformer/klein-4b-50x-lighting.safetensors \4 --model-backend lighting --auto-optimize --steps 4\5 --prompt "a cute cat on a windowsill, watercolor style" --output out.png
67# 40x — RTX 40 / Ada or Hopper (H100/H200). Base 28-step (classical CFG):8quantfunc --model-dir klein-4b-series-50x-below-base-model \9 --transformer transformer/klein-4b-base-40x-lighting.safetensors \10 --model-backend lighting --auto-optimize --steps 28 --guidance-scale 4.0\11 --prompt "a cute cat on a windowsill, watercolor style" --output out.png
1213# 30x-below — RTX 30 and below. Distilled, 4-step:14quantfunc --model-dir klein-4b-series-50x-below-base-model \15 --transformer transformer/klein-4b-30x-below-lighting.safetensors \16 --model-backend lighting --auto-optimize --steps 4\17 --prompt "a cute cat on a windowsill, watercolor style" --output out.png
--auto-optimize picks the VRAM/attention/compression strategy for your GPU. The ComfyUI Lighting plugin auto-selects the matching tier + precision-config.
The pre-quantized weights are derived from FLUX.2 Klein. Users must comply with the original Black Forest Labs FLUX.2 license. The QuantFunc inference engine and plugins are licensed separately.
Community
Join our community for support, updates, and discussions: