Views
No views yet
model.language_model.layers.*.mlp.down_proj.weight.1024x1024 size is snapped by O1 to 2048x2048.| Model | Best for | Avg gen s | Gen time vs BF16 | Peak alloc GiB | VRAM saved | Param storage GiB | Storage saved | Quantized layers | Quantized params B |
|---|---|---|---|---|---|---|---|---|---|
| Original BF16 | Baseline quality/reference | 28.91 | - | 17.38 | - | 16.40 | - | - | 0.00 |
| Dynamic UINT4 threshold 1e-2, fixed | Fast balanced | 30.62 | +6% | 10.88 | +37% | 9.87 | +40% | int5:31, uint4:265 | 5.10 |
| Static UINT4 + SVD r32, o/down BF16 guard | Safe default | 32.30 | +12% | 10.74 | +38% | 9.71 | +41% | uint4:296 | 5.10 |
| Static UINT4 + SVD r32, down_proj BF16 | Minimal fix | 32.62 | +13% | 9.94 | +43% | 8.92 | +46% | uint4:332 | 5.71 |
| Static UINT4 + SVD r32, last 8 o/down BF16 | Lowest VRAM | 33.38 | +15% | 8.26 | +52% | 7.23 | +56% | uint4:352 | 6.98 |
| Static UINT4 + SVD r32, last 16 o/down BF16 | Memory/quality | 33.11 | +15% | 8.97 | +48% | 7.94 | +52% | uint4:336 | 6.44 |
HiDream-ai/HiDream-O1-Image407e54f7dc519bab53c9686f03489043065b0f81uint4_svd_r32_fp32scale_skip_odown{"uint4": 296}{"uint4": 5101350912}32.30s10.74 GiB9.71 GiB33.29s10.95 GiBcomparison/ is a pairwise original BF16 output next to this quantized variant with the same prompt, seed, and sampler settings.1pip install sdnq torch transformers diffusers accelerate einops pillow scipy torchvision
2git clone https://github.com/HiDream-ai/HiDream-O1-Image
3cd HiDream-O1-Image1import torch
2import sdnq
3from transformers import AutoProcessor
4from models.qwen3_vl_transformers import Qwen3VLForConditionalGeneration
5
6model_id = "WaveCut/HiDream-O1-Image-SDNQ-uint4-svd-r32"
7processor = AutoProcessor.from_pretrained(model_id)
8model = Qwen3VLForConditionalGeneration.from_pretrained(
9 model_id,
10 dtype=torch.bfloat16,
11 device_map="cuda",
12).eval()quantization_config.json - saved SDNQ config.quantization_summary.json - quantized layer/parameter/storage summary.benchmark_summary.json - matrix metrics plus 10-demo generation metrics.comparison/00.jpg ... comparison/09.jpg - pairwise original vs quantized comparisons.comparison/contact_sheet.jpg - compact overview of all 10 comparisons.