Text-to-Image
Diffusers
Safetensors
English
Russian
LensPipeline
LensPipeline
sdnq
quantized
uint4
static-quantization
ablation
Instructions to use WaveCut/Lens-Turbo-SDNQ-uint4-static with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WaveCut/Lens-Turbo-SDNQ-uint4-static with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("WaveCut/Lens-Turbo-SDNQ-uint4-static", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
File size: 8,731 Bytes
23f4b7d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | {
"benchmark": "model_cpu_offload_cold_warm",
"hardware": "RunPod NVIDIA H100 80GB HBM3 (H100 SXM)",
"mode": "Diffusers enable_model_cpu_offload()",
"cache_state": "warm local HF cache; no download time included",
"process_isolation": "single model per fresh Python process",
"base_resolution": 1024,
"aspect_ratio": "1:1",
"num_inference_steps": 4,
"guidance_scale": 1.0,
"dtype": "torch.bfloat16",
"definitions": {
"load_time_s": "Pipeline load plus enable_model_cpu_offload setup from warm local HF cache; download time excluded.",
"cold_generation": "P01, first generation immediately after fresh process load/offload setup.",
"warm_generation": "P02-P10 after the cold P01 generation."
},
"models": {
"base": {
"hardware": "RunPod NVIDIA H100 80GB HBM3 (H100 SXM)",
"mode": "Diffusers enable_model_cpu_offload()",
"cache_state": "warm local HF cache; no download time included",
"process_isolation": "single model per fresh Python process",
"base_resolution": 1024,
"aspect_ratio": "1:1",
"num_inference_steps": 4,
"guidance_scale": 1.0,
"dtype": "torch.bfloat16",
"kind": "base",
"load": {
"load_time_s": 15.411,
"peak_allocated_gb": 12.582,
"peak_reserved_gb": 13.881,
"end_allocated_gb": 10.185,
"end_reserved_gb": 10.679
},
"summary": {
"cold_time_s": 8.434,
"cold_peak_allocated_gb": 18.945,
"cold_peak_reserved_gb": 19.262,
"warm_avg_time_s": 5.731,
"warm_median_time_s": 5.141,
"warm_avg_peak_allocated_gb": 18.945,
"warm_avg_peak_reserved_gb": 19.267,
"warm_max_peak_allocated_gb": 18.968,
"warm_max_peak_reserved_gb": 19.29
},
"prompts": [
{
"id": "P01",
"title": "Orbital Night Market",
"seed": 101,
"time_s": 8.434,
"peak_allocated_gb": 18.945,
"peak_reserved_gb": 19.262,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.895
},
{
"id": "P02",
"title": "Arctic Research Desk",
"seed": 102,
"time_s": 5.613,
"peak_allocated_gb": 18.949,
"peak_reserved_gb": 19.258,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.893
},
{
"id": "P03",
"title": "Victorian Automaton Repair",
"seed": 103,
"time_s": 4.006,
"peak_allocated_gb": 18.944,
"peak_reserved_gb": 19.271,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.792
},
{
"id": "P04",
"title": "Mars Greenhouse Control Room",
"seed": 104,
"time_s": 7.509,
"peak_allocated_gb": 18.938,
"peak_reserved_gb": 19.258,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.872
},
{
"id": "P05",
"title": "Lost Railway Poster Wall",
"seed": 105,
"time_s": 4.658,
"peak_allocated_gb": 18.939,
"peak_reserved_gb": 19.258,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.872
},
{
"id": "P06",
"title": "Miniature Courtroom Diorama",
"seed": 106,
"time_s": 5.141,
"peak_allocated_gb": 18.942,
"peak_reserved_gb": 19.271,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.792
},
{
"id": "P07",
"title": "Rainy Seoul Book Cafe",
"seed": 107,
"time_s": 5.134,
"peak_allocated_gb": 18.942,
"peak_reserved_gb": 19.271,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.792
},
{
"id": "P08",
"title": "Oceanographic Expedition Map",
"seed": 108,
"time_s": 4.657,
"peak_allocated_gb": 18.942,
"peak_reserved_gb": 19.271,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.792
},
{
"id": "P09",
"title": "Renaissance Lab Notebook",
"seed": 109,
"time_s": 5.944,
"peak_allocated_gb": 18.939,
"peak_reserved_gb": 19.258,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.872
},
{
"id": "P10",
"title": "Russian Provincial Print Shop",
"seed": 110,
"time_s": 8.916,
"peak_allocated_gb": 18.968,
"peak_reserved_gb": 19.29,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.798
}
]
},
"quant": {
"hardware": "RunPod NVIDIA H100 80GB HBM3 (H100 SXM)",
"mode": "Diffusers enable_model_cpu_offload()",
"cache_state": "warm local HF cache; no download time included",
"process_isolation": "single model per fresh Python process",
"base_resolution": 1024,
"aspect_ratio": "1:1",
"num_inference_steps": 4,
"guidance_scale": 1.0,
"dtype": "torch.bfloat16",
"kind": "quant",
"load": {
"load_time_s": 12.371,
"peak_allocated_gb": 12.582,
"peak_reserved_gb": 13.881,
"end_allocated_gb": 10.185,
"end_reserved_gb": 10.679
},
"summary": {
"cold_time_s": 8.44,
"cold_peak_allocated_gb": 15.085,
"cold_peak_reserved_gb": 15.238,
"warm_avg_time_s": 4.976,
"warm_median_time_s": 3.855,
"warm_avg_peak_allocated_gb": 15.084,
"warm_avg_peak_reserved_gb": 15.249,
"warm_max_peak_allocated_gb": 15.104,
"warm_max_peak_reserved_gb": 15.28
},
"prompts": [
{
"id": "P01",
"title": "Orbital Night Market",
"seed": 101,
"time_s": 8.44,
"peak_allocated_gb": 15.085,
"peak_reserved_gb": 15.238,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.872
},
{
"id": "P02",
"title": "Arctic Research Desk",
"seed": 102,
"time_s": 6.726,
"peak_allocated_gb": 15.089,
"peak_reserved_gb": 15.261,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.878
},
{
"id": "P03",
"title": "Victorian Automaton Repair",
"seed": 103,
"time_s": 8.244,
"peak_allocated_gb": 15.081,
"peak_reserved_gb": 15.246,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.775
},
{
"id": "P04",
"title": "Mars Greenhouse Control Room",
"seed": 104,
"time_s": 4.033,
"peak_allocated_gb": 15.079,
"peak_reserved_gb": 15.238,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.874
},
{
"id": "P05",
"title": "Lost Railway Poster Wall",
"seed": 105,
"time_s": 3.836,
"peak_allocated_gb": 15.08,
"peak_reserved_gb": 15.238,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.876
},
{
"id": "P06",
"title": "Miniature Courtroom Diorama",
"seed": 106,
"time_s": 3.845,
"peak_allocated_gb": 15.08,
"peak_reserved_gb": 15.246,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.775
},
{
"id": "P07",
"title": "Rainy Seoul Book Cafe",
"seed": 107,
"time_s": 3.855,
"peak_allocated_gb": 15.08,
"peak_reserved_gb": 15.246,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.773
},
{
"id": "P08",
"title": "Oceanographic Expedition Map",
"seed": 108,
"time_s": 3.841,
"peak_allocated_gb": 15.08,
"peak_reserved_gb": 15.246,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.773
},
{
"id": "P09",
"title": "Renaissance Lab Notebook",
"seed": 109,
"time_s": 3.852,
"peak_allocated_gb": 15.08,
"peak_reserved_gb": 15.238,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.876
},
{
"id": "P10",
"title": "Russian Provincial Print Shop",
"seed": 110,
"time_s": 6.556,
"peak_allocated_gb": 15.104,
"peak_reserved_gb": 15.28,
"end_allocated_gb": 10.221,
"end_reserved_gb": 10.781
}
]
}
}
} |