Views
No views yet
black-forest-labs/FLUX.2-klein-9B, quantized with
diffuse-compressor. It
loads with a plain from_pretrained call — no runtime graph patches and no extra
runtime package.quant_method: nunchaku_lite, NVFP4 SVDQ with group size
16, rank 32, 144 SVDQ targets and 3 AWQ W4A16 targets. Six outer linears (embedders, norm_out.linear, proj_out) stay
in bf16, and the text_encoder component is BitsAndBytes 4-bit NF4 with bf16
compute. QKV projections are not fused, so this trades some speed for loading
through the stock Diffusers graph. Calibrated on 128 prompts at
4 steps, 1024x1024.| Checkpoint | Latency | Max VRAM |
|---|---|---|
| This repo — Nunchaku Lite NVFP4 r32 + BNB4 text encoder | 2.48 s (stdev 0.00 s) | 8.32 GiB |
| Nunchaku Lite INT4 r32 + BNB4 text encoder | 9.96 s (stdev 0.12 s) | 8.09 GiB |
| FLUX.2 Klein 9B dense bf16 | 4.41 s (stdev 0.02 s) | 20.16 GiB |

kernels package and DIFFUSERS_TRUST_REMOTE_KERNELS=true,
plus a Diffusers build with the nunchaku_lite quantizer. NVFP4 needs
a Blackwell or newer NVIDIA GPU; Hopper is unsupported. On Turing through Ada use the INT4 build instead.1import torch
2from diffusers import Flux2KleinPipeline
3
4pipe = Flux2KleinPipeline.from_pretrained(
5 "lite-infer/flux.2-klein-9b-nunchaku-lite-nvfp4_r32-bnb4-text-encoder",
6 torch_dtype=torch.bfloat16,
7).to("cuda")
8
9image = pipe(
10 prompt="A glass robot tending orchids in a sunlit greenhouse, cinematic lighting, highly detailed",
11 generator=torch.Generator("cuda").manual_seed(12345),
12 width=1024,
13 height=1024,
14 num_inference_steps=4,
15 guidance_scale=1.0,
16).images[0]
17image.save("output.png")