Views
No views yet
black-forest-labs/FLUX.1-Krea-devnunchaku-ai/nunchaku-flux.1-krea-devsvdq-int4_r32-flux.1-krea-dev.safetensorsquant_method: nunchaku_lite, INT4 SVDQ with group size 64, runtime rank 64, 418 SVDQ targets, and 76 AWQ W4A16 targets. The CLIP encoder is copied from the base model and T5 text_encoder_2 is BitsAndBytes 4-bit NF4. Fused QKV modules are split in logical tensor layout; single-block proj_out is merged from attention and MLP projections; low-rank tensors are logically padded to rank 64. INT4 shifted down-projection biases are compensated for signed-unfused Diffusers execution.| Checkpoint | Latency | Max VRAM |
|---|---|---|
| Converted Diffusers Nunchaku Lite INT4 r32 + BNB4 T5 | 26.99 s (stdev 0.03 s) | 16.42 GiB |
nvidia-smi, including allocations outside PyTorch's caching allocator.
kernels package and a Turing, Ampere, Ada, or Blackwell NVIDIA GPU; Hopper is unsupported for INT4 kernels.1import torch
2from diffusers import FluxPipeline
3
4pipe = FluxPipeline.from_pretrained(
5 "lite-infer/flux.1-krea-dev-nunchaku-lite-int4_r32-bnb4-text-encoder",
6 torch_dtype=torch.bfloat16,
7).to("cuda")
8
9image = pipe(
10 prompt='A cinematic photograph of a red fox standing in a misty forest at sunrise, detailed fur, volumetric light',
11 generator=torch.Generator("cuda").manual_seed(0),
12 width=1024,
13 height=1024,
14 num_inference_steps=28,
15 guidance_scale=3.5,
16).images[0]
17image.save("output.png")