Views
No views yet
[!IMPORTANT] Experimental: This Nunchaku Lite quantized ERNIE-Image-Turbo checkpoint is experimental. APIs, loading behavior may change.
transformer/config.json.| Op | Precision | Group size | Rank | Targets |
|---|---|---|---|---|
svdq_w4a4 | fp4 / NVFP4 runtime | 16 | 32 | 252 |
awq_w4a16 | int4 | 64 | - | 6 |
NunchakuLiteQuantizationConfig and the Nunchaku Lite loader path.1pip install git+https://github.com/huggingface/diffusers
2pip install kernelskernels package.1import torch
2from diffusers import ErnieImagePipeline
3
4pipe = ErnieImagePipeline.from_pretrained(
5 "rootonchair/ERNIE-Image-Turbo-nunchaku-lite-nvfp4",
6 torch_dtype=torch.bfloat16,
7).to("cuda")
8
9image = pipe(
10 prompt="A modern red armchair in a quiet studio, soft window light, realistic product photography",
11 height=1024,
12 width=1024,
13 num_inference_steps=8,
14 guidance_scale=1.0,
15 use_pe=False,
16).images[0]
17
18image.save("ernie-image-turbo-nunchaku-lite-nvfp4.png")num_inference_steps=8guidance_scale=1.0use_pe=False for direct prompt usage, or use_pe=True to enable the inherited prompt enhancersave_pretrained() serialization for Nunchaku Lite models is not supported yet.