FLUX.2 [klein] base 9B — 4-bit (bitsandbytes NF4)
A quantised copy of black-forest-labs/FLUX.2-klein-base-9B in diffusers format, made for Vision Studio (no-code visual inspection: learning the look of a defect from a few examples and painting new ones onto good parts).
Quantisation: Transformer and text encoder in 4-bit NF4 with double quantisation and bfloat16 compute (bitsandbytes); x_embedder, context_embedder, time_guidance_embed and proj_out stay bfloat16; the VAE stays bfloat16.
Load it like the original; the quantisation is stored in the configs (needs bitsandbytes):
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("benzo86/FLUX.2-klein-base-9B-bnb-nf4", torch_dtype=torch.bfloat16)
License
This model is a derivative of black-forest-labs/FLUX.2-klein-base-9B and is distributed under the same FLUX Non-Commercial
License (see LICENSE.md). Non-commercial use only; read the license before use.