FLUX.2 [klein] 9B INT8
Contents
Unofficial; not affiliated with Black Forest Labs.
FLUX.2 [klein] 9B (distilled, 4 steps) for text-to-image, with the transformer weights in INT8 (W8A16). Every component is in BFL's original key layout.
| Path | Component | Format | Original |
|---|---|---|---|
transformer/flux-2-klein-9b-int8.safetensors |
transformer | every linear <name>.weight int8 (out, in) + <name>.weight_scale fp16 (out,); QK-norm scales bf16 |
black-forest-labs/FLUX.2-klein-9b-fp8/flux-2-klein-9b-fp8.safetensors |
vae/ae.safetensors |
VAE (decoder + bn only) |
BFL AutoEncoder keys, bf16 | black-forest-labs/FLUX.2-klein-9B/vae/diffusion_pytorch_model.safetensors |
text_encoder/ |
text encoder | Qwen3-8B-FP8 as published (fp8 e4m3, 128x128 block scales) + tokenizer | Qwen/Qwen3-8B-FP8 |
Processing
- Transformer: quantized from BFL's FP8 checkpoint (each fp8 e4m3 linear times its per-tensor
weight_scale; its bf16 layers as they are), keys unchanged. Symmetric int8 in [-127, 127], one fp16 scale per output channel (scale = absmax / 127, rounded to fp16 before the weights are quantized), round to nearest, no calibration (torchaochoose_qparams_affine/quantize_affine). Dequantize asW = weight * weight_scale[:, None]; activations stay fp16. - VAE: the repo's diffusers VAE (
AutoencoderKLFlux2) with its keys mapped back to BFL'sAutoEncoderlayout (the inverse of diffusers'scripts/convert_flux2_to_diffusers.py); decoder andbnonly, values unchanged. BFL's ownae.safetensorsis only in the gated FLUX.2 [dev] repo. - Text encoder: copied unchanged. FLUX.2 [klein] reads the hidden states of Qwen3 layers 9, 18 and 27.
Licenses
FLUX.2 [klein] 9B (transformer, from its FP8 release; VAE): FLUX Non-Commercial License (the same in both repos), LICENSE.md; non-commercial use only. Attribution Notice in NOTICE. Qwen3-8B-FP8 (text encoder): Apache-2.0, text_encoder/LICENSE.
Sources
black-forest-labs/FLUX.2-klein-9Bat92196c8e11f7b6cf2b7493e037d8c5345c559216(FLUX Non-Commercial License)vae/diffusion_pytorch_model.safetensorsvae/config.jsonLICENSE.md
Qwen/Qwen3-8B-FP8at220b46e3b2180893580a4454f21f22d3ebb187d3(Apache-2.0)config.jsongeneration_config.jsonmodel.safetensors.index.jsonmodel-00001-of-00002.safetensorsmodel-00002-of-00002.safetensorstokenizer.jsontokenizer_config.jsonvocab.jsonmerges.txtLICENSE
black-forest-labs/FLUX.2-klein-9b-fp8at902d9d510b51533e07729f19211414a3648b77d2(FLUX Non-Commercial License)flux-2-klein-9b-fp8.safetensors