Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
"""FLUX.3 Image Klein (step-distilled), BFL's native bf16 layout -- `model.safetensors` and its byte-identical ComfyUI repackage `flux3-image-klein-bf16.safetensors`.
Captured on 2026-10-16 with `scripts/capture_state_dict_fixture.py`,
which reads the header only, from
`black-forest-labs/flux-3-image-klein-comfy/diffusion_models/flux3_image_klein_sd_bf16.safetensors`.
The repository renamed that file to `flux3-image-klein-bf16.safetensors` on 2026-10-17; it is the same LFS object as
`black-forest-labs/flux-3-image-klein/model.safetensors`.
Subsetting rule: `content_mode_blocks.image` index 0, `content_mode_blocks.image_cond` index 0, `single_blocks` index 0, `txt_mode_blocks` index 0, plus every key outside a stack. Values are `(shape, dtype)`.
Every single-file and GGUF FLUX.3 build uses these names. The FLUX.3 loaders read the transformer's structure from it (widths, head
width, feedforward width, the flow-map embedder `ref_time_in`) and convert it to diffusers' `Flux3Transformer2DModel`; a key or shape
changed by a re-upload shows up here as a missing or unexpected parameter.
"""
state_dict_keys: dict[str, tuple[list[int], str]] = {
"content_mode_blocks.image.0.attn_out.weight": ([3072, 3072], "BF16"),
"content_mode_blocks.image.0.k_proj.weight": ([3072, 3072], "BF16"),
"content_mode_blocks.image.0.mlp_in.weight": ([18432, 3072], "BF16"),
"content_mode_blocks.image.0.mlp_out.weight": ([3072, 9216], "BF16"),
"content_mode_blocks.image.0.norm.key_norm.scale": ([128], "BF16"),
"content_mode_blocks.image.0.norm.query_norm.scale": ([128], "BF16"),
"content_mode_blocks.image.0.q_proj.weight": ([3072, 3072], "BF16"),
"content_mode_blocks.image.0.v_proj.weight": ([3072, 3072], "BF16"),
"content_mode_blocks.image_cond.0.attn_out.weight": ([3072, 3072], "BF16"),
"content_mode_blocks.image_cond.0.k_proj.weight": ([3072, 3072], "BF16"),
"content_mode_blocks.image_cond.0.mlp_in.weight": ([18432, 3072], "BF16"),
"content_mode_blocks.image_cond.0.mlp_out.weight": ([3072, 9216], "BF16"),
"content_mode_blocks.image_cond.0.norm.key_norm.scale": ([128], "BF16"),
"content_mode_blocks.image_cond.0.norm.query_norm.scale": ([128], "BF16"),
"content_mode_blocks.image_cond.0.q_proj.weight": ([3072, 3072], "BF16"),
"content_mode_blocks.image_cond.0.v_proj.weight": ([3072, 3072], "BF16"),
"early_stream_modulations.image.lin.weight": ([9216, 3072], "BF16"),
"early_stream_modulations.image_cond.lin.weight": ([9216, 3072], "BF16"),
"early_stream_modulations.txt.lin.weight": ([9216, 3072], "BF16"),
"emb_in.image.weight": ([3072, 128], "BF16"),
"emb_in.image_cond.weight": ([3072, 128], "BF16"),
"final_layer.image.adaLN_modulation.1.weight": ([6144, 3072], "BF16"),
"final_layer.image.linear.weight": ([128, 3072], "BF16"),
"ref_time_in.in_layer.weight": ([3072, 256], "BF16"),
"ref_time_in.out_layer.weight": ([3072, 3072], "BF16"),
"single_blocks.0.attn_out.weight": ([3072, 3072], "BF16"),
"single_blocks.0.k_proj.weight": ([3072, 3072], "BF16"),
"single_blocks.0.mlp_in.weight": ([18432, 3072], "BF16"),
"single_blocks.0.mlp_out.weight": ([3072, 9216], "BF16"),
"single_blocks.0.norm.key_norm.scale": ([128], "BF16"),
"single_blocks.0.norm.query_norm.scale": ([128], "BF16"),
"single_blocks.0.q_proj.weight": ([3072, 3072], "BF16"),
"single_blocks.0.v_proj.weight": ([3072, 3072], "BF16"),
"single_stream_modulations.image.lin.weight": ([9216, 3072], "BF16"),
"single_stream_modulations.image_cond.lin.weight": ([9216, 3072], "BF16"),
"single_stream_modulations.txt.lin.weight": ([9216, 3072], "BF16"),
"time_in.in_layer.weight": ([3072, 256], "BF16"),
"time_in.out_layer.weight": ([3072, 3072], "BF16"),
"txt_in.weight": ([3072, 20480], "BF16"),
"txt_mode_blocks.0.attn_out.weight": ([3072, 3072], "BF16"),
"txt_mode_blocks.0.k_proj.weight": ([3072, 3072], "BF16"),
"txt_mode_blocks.0.mlp_in.weight": ([18432, 3072], "BF16"),
"txt_mode_blocks.0.mlp_out.weight": ([3072, 9216], "BF16"),
"txt_mode_blocks.0.norm.key_norm.scale": ([128], "BF16"),
"txt_mode_blocks.0.norm.query_norm.scale": ([128], "BF16"),
"txt_mode_blocks.0.q_proj.weight": ([3072, 3072], "BF16"),
"txt_mode_blocks.0.v_proj.weight": ([3072, 3072], "BF16"),
}