Skip to content
Search models or paste a model link. Press Enter to search.

FLUX.2 [klein] 4B

black-forest-labs/FLUX.2-klein-4B
Left and right arrow keys switch the vendor.
black-forest-labs/flux-2-klein-4b architecture graph
black-forest-labs/flux-2-klein-4b architecture graph
  • huggingface
  • FP8
  • H200
Labels
  • Text
  • Image
  • Generation
Build
Embedl-optimized
Precision
FP8 + BF16 + FP16
Runtime
TensorRT 10.16 with Embedl optimizations
Resolution
512×512, 4 steps
Run FLUX.2 [klein] 4B on H200

Generated by this build

Ran on H200, this build

  • seed 42

    --prompt

    A red ceramic teapot and a blue cup on a sunlit wooden table.

    Generated image
    Generated image

    Seed 42 · 512 × 512 · 4 steps

  • seed 314

    --prompt

    A tiny observatory on a mossy hill under a clear starry sky, watercolor illustration.

    Generated image
    Generated image

    Seed 314 · 512 × 512 · 4 steps

  • seed 2718

    --prompt

    A neatly arranged collection of colorful glass marbles on white paper, studio photograph.

    Generated image
    Generated image

    Seed 2718 · 512 × 512 · 4 steps

FLUX.2 [klein] 4B is Black Forest Labs' text-to-image model: it generates a 512×512 image from a text prompt in four distilled steps.

Checkpoint e7b7dc27f91deacad38e78976d1f2b499d76a294, Apache-2.0; Qwen3-4B and the VAE are Apache-2.0.

Methodology

  • Latency: 200 held-out prompts after three warm-ups, 512×512, batch 1, four distilled steps, guidance 1.0; synchronized wall time from prompt to encoded PNG, no embedding cache.
  • Accuracy: 200 PartiPrompts with fixed seeds and identical explicit noise in the upstream BF16 reference. CLIP ViT-B/32 CLIPScore (100×max(cosine, 0)); paired delta -0.118, 95% CI [-0.263, 0.024]. CLIP-FID on generated sets against BF16: an exploratory comparison at n=200, not real-image FID.
  • Memory: peak RSS of the serving process; TensorRT device bytes from a separate untimed allocator pass, including I/O buffers but not CUDA context.
  • Baseline TensorRT: the upstream model in BF16/FP16 on TensorRT, same settings, same device: not measured yet. The BF16 PyTorch build on this page is at 1024×1024 and isn't comparable.
  • Precision: the denoising transformer uses Embedl Deploy FP8, calibrated on 32 disjoint PartiPrompts; the Qwen3-4B text encoder stays BF16 and the VAE FP16.

Files

Image Size

Model

docker.io/embedl/models:hf.black-forest-labs.flux-2-klein-4b.fp8-embedl.h200.202610181752280b

—

Runtime

docker.io/embedl/models:flux2-klein.runtime.amd64.2026101814283371

—

Variants

Every build of FLUX.2 [klein] 4B on H200.

Variant Precision Speed Runtime
FP8 126.38 ms
Latency: Prompt to PNG, median
TensorRT 10.16 with Embedl optimizations
flux2-klein.runtime.amd64.2026101814283371

huggingface_bf16_pytorch

BF16 900 ms
Latency: PartiPrompts, 198 warm prompts, median
PyTorch (diffusers)
flux2-klein.h200.runtime.amd64.2026101722219c98