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
  • BF16
  • H200
Labels
  • Text
  • Image
  • Generation
Build
Baseline PyTorch
Precision
BF16
Runtime
PyTorch (diffusers)
Resolution
1024×1024, 4 steps
Run FLUX.2 [klein] 4B on H200

Generated examples

Ran on NVIDIA H200, during the build

  • Generated example 1

    --prompt

    A studio photograph of a small red ceramic teapot beside a blue cup, soft window light, white background.

    Generated image
    Generated image

    Seed 42 · 1024 × 1024 · 4 steps · 863 ms

  • Generated example 2

    --prompt

    A tiny wooden cabin on a snowy mountain under a clear starry sky, warm light in the windows, watercolor illustration.

    Generated image
    Generated image

    Seed 31415 · 1024 × 1024 · 4 steps · 827 ms

  • Generated example 3

    --prompt

    A yellow lemon beside a green lime on a dark wooden table, close-up food photography, natural side lighting.

    Generated image
    Generated image

    Seed 2026 · 1024 × 1024 · 4 steps · 1064 ms

FLUX.2 [klein] 4B generates an image from a text prompt in four distilled steps. This is the upstream BF16 model served with PyTorch (diffusers) on the NVIDIA H200, at 1024×1024: the reference the Embedl build's images are scored against.

Weights: Black Forest Labs FLUX.2 [klein] 4B, Apache-2.0, pinned at e7b7dc27f91deacad38e78976d1f2b499d76a294. Qwen3-4B text encoder and FLUX.2 VAE: Apache-2.0. Licences, notices and an SHA256 manifest ship beside the weights. Evaluation-only PartiPrompts: Apache-2.0; OpenAI CLIP: MIT. No noncommercial model or dataset is included.

Methodology

  • Latency: Synchronized wall time: text encoder, latent preparation and four-step denoise, VAE decode/postprocess, raster/base64 encoding. 20 teapot-prompt seeds after two warm-ups, plus the 198 evaluation requests after discarding the first two. No prompt embedding cache. Weight loading excluded; filesystem cache uncontrolled.
  • Accuracy: The feasibility plan’s 200 disjoint evaluation prompts/seeds, at release default 1024² (the original plan proposed 512²). Separate upstream and packaged-model processes; pixel comparison and paired CLIPScore. The 32 calibration prompts are unused because no quantization is applied.
  • Server: Offline, non-root subprocess from the public model folder. Real Unix socket discovery, health/metadata, all sizes, fixed seed repeatability, schema/MIME/dimensions/response budget and malformed input checks.

Files

Image Size

Model

docker.io/embedl/models:hf.black-forest-labs.flux-2-klein-4b.bf16.h200.202610180925d9c4

—

Runtime

docker.io/embedl/models:flux2-klein.h200.runtime.amd64.2026101722219c98

—

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