Parameters
4B
Modality
Image
Auxiliary Parameters
80M
Architecture
Diffusion Transformer
License
Apache 2.0
Release Date
10 Feb 2025
API Pricing (per 1M)
Self-hosted only
Precision
Workload Memory: 4.66 GB
INT4 · 1024x1024
DiT Backbone Weights: 1.86 GB
VAE Decode Workspace: 0.29 GB
Runtime & Graphs: 2.50 GB
1x NVIDIA L4 24GB
4.7 / 21.6 GB usable
1x RTX 3060 12GB
4.7 / 10.8 GB usable
Apple M4 24GB
4.7 / 18.0 GB usable
Determine requirements for your specific workload:
Open in VRAM Calculator
Checkpoint format
FP16
CUDA
>= 11.8
PyTorch
>= 2.1
Transformers
>= 4.40.1
| Architecture | Precision | Attention kernel |
|---|---|---|
Blackwell, Hopper | Native FP16 | FlashAttention-3 |
Ada Lovelace, Ampere | Native FP16 | FlashAttention-2 |
FLUX.2 Klein 4B is a compact 4B parameter diffusion transformer by Black Forest Labs, engineered for high-throughput edge deployment and consumer GPUs with minimal memory consumption.
Attention
Attention Heads
24
Attention Head Dimension
128
Dimensions
Base Precision
FP16
Auxiliary Parameters
80M
Hidden Dimension Size
7,680
Number of Layers
25