Downloads · 30 days
14
15% of all-time downloads
WaveCut/Boogu-Image-0.1-Turbo-SDNQ-uint4-static
Boogu-Image-0.1-Turbo-SDNQ-uint4-static is a text-to-image model from WaveCut. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
SDNQ 4-bit unsigned static quantization of Boogu/Boogu-Image-0.1-Turbo.
Downloads · 30 days
14
15% of all-time downloads
All-time downloads
95
Public
Parameters
5.5B
23.7 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors23.6 GB · 99%
How the weights are stored.
U85.1B · 94%
From the Hugging Face model README
SDNQ 4-bit unsigned static quantization of Boogu/Boogu-Image-0.1-Turbo.
Source checkpoint: hotfix-20260625 / 47cd26d3c211b030c64ffe60d63b2e17a7c519c2.

Selected recipe: uint4-static-transformer-only.
Only the diffusion transformer is quantized with SDNQ UINT4 static weights. The MLLM instruction encoder, processor, scheduler, VAE, tokenizer assets, and Boogu pipeline code are copied from the upstream checkpoint.
BooguImageTurboPipelinet2itext_guidance_scale=1.0, image_guidance_scale=1.0, empty_instruction_guidance_scale=0.0| Model | Load | Cold gen | Hot mean | VRAM after load | VRAM during gen | VRAM after gen | Torch peak |
|---|---|---|---|---|---|---|---|
| original | 21.405 s | 4.793 s | 1.818 s | 36603 MB | 41979 MB | 41977 MB | 37849.56103515625 MB |
| sdnq | 19.598 s | 5.698 s | 5.183 s | 21855 MB | 27353 MB | 27309 MB | 23709.42724609375 MB |
Raw per-prompt metrics are in benchmark/*.metrics.csv and benchmark/*.metrics.jsonl. The combined summary is in benchmark/summary.json.
These additional SDNQ rows were measured on NVIDIA GeForce RTX 5090, 32607 MB VRAM on a disposable RunPod pod. RTX 3090 and RTX 4090 allocation attempts were unavailable at run time, so RTX 5090 was used as the nearest available consumer-class fallback. Runtime: PyTorch 2.9.1+cu128, CUDA runtime 12.8, NVIDIA driver 580.126.09. For the Turbo text-to-image model, these rows use the same 10 text prompts as the original comparison set.
| Model | Load | Cold gen | Hot mean | VRAM after load | VRAM during gen | VRAM after gen | Torch peak |
|---|---|---|---|---|---|---|---|
| sdnq + model offload | 7.089 s | 36.863 s | 15.197 s | 510 MB | 16370 MB | 636 MB | 15591.90 MB |
| sdnq + sequential offload | 7.203 s | 9.368 s | 5.276 s | 512 MB | 3344 MB | 1806 MB | 2446.29 MB |
Offload metrics are stored as benchmark/sdnq-model-offload.* and benchmark/sdnq-sequential-offload.*.
pip install -U git+https://github.com/boogu-project/Boogu-Image.git sdnq transformers accelerate safetensors huggingface_hub
import sys
import torch
from diffusers.models import AutoencoderKL
from huggingface_hub import snapshot_download
from transformers import AutoModelForImageTextToText, AutoProcessor
from boogu.models.transformers.transformer_boogu import BooguImageTransformer2DModel
from boogu.pipelines.boogu.pipeline_boogu_turbo import BooguImageTurboPipeline
from boogu.schedulers.scheduling_flow_match_euler_discrete_time_shifting import FlowMatchEulerDiscreteScheduler
from sdnq.loader import load_sdnq_model
repo_id = "WaveCut/Boogu-Image-0.1-Turbo-SDNQ-uint4-static"
device = "cuda:0"
repo_dir = snapshot_download(repo_id)
transformer_code_dir = f"{repo_dir}/transformer"
if transformer_code_dir not in sys.path:
sys.path.insert(0, transformer_code_dir)
transformer = load_sdnq_model(
f"{repo_dir}/transformer",
model_cls=BooguImageTransformer2DModel,
dtype=torch.bfloat16,
device="cpu",
dequantize_fp32=False,
use_quantized_matmul=True,
)
pipe = BooguImageTurboPipeline(
transformer=transformer,
vae=AutoencoderKL.from_pretrained(f"{repo_dir}/vae", torch_dtype=torch.bfloat16),
scheduler=FlowMatchEulerDiscreteScheduler.from_pretrained(f"{repo_dir}/scheduler"),
mllm=AutoModelForImageTextToText.from_pretrained(
f"{repo_dir}/mllm",
torch_dtype=torch.bfloat16,
trust_remote_code=True,
),
processor=AutoProcessor.from_pretrained(f"{repo_dir}/processor", trust_remote_code=True),
).to(device)
# Text-to-image models use:
image = pipe(
instruction=["A precise studio photograph of a glass lamp on a dark table"],
negative_instruction="",
empty_instruction="",
height=1024,
width=1024,
num_inference_steps=4,
text_guidance_scale=1.0,
image_guidance_scale=1.0,
empty_instruction_guidance_scale=0.0,
use_dmd_student_inference=True,
dmd_conditioning_sigma=0.001,
generator=torch.Generator(device).manual_seed(42),
).images[0]
For image-editing models, also pass input_image_paths, input_images, align_res, and the same DMD settings used by upstream Boogu Edit Turbo.
You can also download explicitly with hf download WaveCut/Boogu-Image-0.1-Turbo-SDNQ-uint4-static --local-dir ./boogu-sdnq and set repo_dir = "./boogu-sdnq".
{
"dynamic_loss_threshold": null,
"group_size": 0,
"modules": [
"transformer"
],
"name": "uint4-static-transformer-only",
"quant_conv": false,
"quant_embedding": false,
"svd_rank": 32,
"svd_steps": 32,
"use_dynamic_quantization": false,
"use_svd": false,
"weights_dtype": "uint4"
}
transformer/: SDNQ UINT4 static transformer weights and quantization_config.jsonmllm/, processor/, scheduler/, vae/: copied from the upstream checkpointbenchmark/: original and SDNQ metrics, summaries, and prompt outputs metadataassets/original_vs_sdnq_turbo.webp: native-resolution original-vs-SDNQ WebP comparison grid, quality 95prompts.json, quantization_manifest.json, SHA256SUMS