Text-to-Image
Diffusers
Safetensors
LensPipeline
lens
sdnq
uint4
static-quantization
ablation
model-cpu-offload
Instructions to use WaveCut/Lens-SDNQ-uint4-static with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WaveCut/Lens-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-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
| { | |
| "hardware": "RunPod NVIDIA H100 80GB HBM3 (H100 SXM)", | |
| "mode": "full GPU, pipe.to('cuda')", | |
| "base_resolution": 1440, | |
| "aspect_ratio": "1:1", | |
| "num_inference_steps": 20, | |
| "guidance_scale": 5.0, | |
| "dtype": "torch.bfloat16", | |
| "models": { | |
| "base": { | |
| "load": { | |
| "load_time_s": 17.641, | |
| "peak_allocated_gb": 22.342, | |
| "peak_reserved_gb": 22.471, | |
| "end_allocated_gb": 22.342, | |
| "end_reserved_gb": 22.471 | |
| }, | |
| "summary": { | |
| "avg_time_s": 15.357, | |
| "median_time_s": 14.346, | |
| "avg_peak_allocated_gb": 27.462, | |
| "avg_peak_reserved_gb": 31.756, | |
| "max_peak_allocated_gb": 27.467, | |
| "max_peak_reserved_gb": 31.965 | |
| }, | |
| "prompts": [ | |
| { | |
| "id": "P01", | |
| "title": "Midnight Library Weather Station", | |
| "seed": 301, | |
| "time_s": 19.518, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.74, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.74, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p01_base.png" | |
| }, | |
| { | |
| "id": "P02", | |
| "title": "Desert Observatory Treaty Room", | |
| "seed": 302, | |
| "time_s": 16.986, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.74, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.74, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p02_base.png" | |
| }, | |
| { | |
| "id": "P03", | |
| "title": "Arctic Submarine Greenhouse", | |
| "seed": 303, | |
| "time_s": 13.903, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.719, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.719, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p03_base.png" | |
| }, | |
| { | |
| "id": "P04", | |
| "title": "Long English Museum Labels", | |
| "seed": 304, | |
| "time_s": 14.439, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.719, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.719, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p04_base.png" | |
| }, | |
| { | |
| "id": "P05", | |
| "title": "Tokyo Rooftop Repair Diner", | |
| "seed": 305, | |
| "time_s": 14.253, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.74, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.74, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p05_base.png" | |
| }, | |
| { | |
| "id": "P06", | |
| "title": "Russian Provincial Print Shop", | |
| "seed": 306, | |
| "time_s": 16.744, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.467, | |
| "peak_reserved_gb": 31.965, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.965, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p06_base.png" | |
| }, | |
| { | |
| "id": "P07", | |
| "title": "Ocean Cartography Bakery", | |
| "seed": 307, | |
| "time_s": 13.918, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.74, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.74, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p07_base.png" | |
| }, | |
| { | |
| "id": "P08", | |
| "title": "Long English Train Notice Wall", | |
| "seed": 308, | |
| "time_s": 13.906, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.74, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.74, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p08_base.png" | |
| }, | |
| { | |
| "id": "P09", | |
| "title": "Orbital Botanical Courtroom", | |
| "seed": 309, | |
| "time_s": 16.204, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.719, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.719, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p09_base.png" | |
| }, | |
| { | |
| "id": "P10", | |
| "title": "Byzantine Data Center Chapel", | |
| "seed": 310, | |
| "time_s": 13.703, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 27.461, | |
| "peak_reserved_gb": 31.74, | |
| "end_allocated_gb": 22.377, | |
| "end_reserved_gb": 31.74, | |
| "image": "/workspace/lens_sdnq_work/generated/base/p10_base.png" | |
| } | |
| ] | |
| }, | |
| "quant": { | |
| "load": { | |
| "load_time_s": 14.605, | |
| "peak_allocated_gb": 18.446, | |
| "peak_reserved_gb": 18.516, | |
| "end_allocated_gb": 18.446, | |
| "end_reserved_gb": 18.516 | |
| }, | |
| "summary": { | |
| "avg_time_s": 17.937, | |
| "median_time_s": 17.813, | |
| "avg_peak_allocated_gb": 23.533, | |
| "avg_peak_reserved_gb": 27.699, | |
| "max_peak_allocated_gb": 23.538, | |
| "max_peak_reserved_gb": 27.712 | |
| }, | |
| "prompts": [ | |
| { | |
| "id": "P01", | |
| "title": "Midnight Library Weather Station", | |
| "seed": 301, | |
| "time_s": 24.105, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.532, | |
| "peak_reserved_gb": 27.682, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.682, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p01_quant.png" | |
| }, | |
| { | |
| "id": "P02", | |
| "title": "Desert Observatory Treaty Room", | |
| "seed": 302, | |
| "time_s": 18.565, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.532, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p02_quant.png" | |
| }, | |
| { | |
| "id": "P03", | |
| "title": "Arctic Submarine Greenhouse", | |
| "seed": 303, | |
| "time_s": 17.882, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.532, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p03_quant.png" | |
| }, | |
| { | |
| "id": "P04", | |
| "title": "Long English Museum Labels", | |
| "seed": 304, | |
| "time_s": 17.848, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.533, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p04_quant.png" | |
| }, | |
| { | |
| "id": "P05", | |
| "title": "Tokyo Rooftop Repair Diner", | |
| "seed": 305, | |
| "time_s": 17.779, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.532, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p05_quant.png" | |
| }, | |
| { | |
| "id": "P06", | |
| "title": "Russian Provincial Print Shop", | |
| "seed": 306, | |
| "time_s": 18.136, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.538, | |
| "peak_reserved_gb": 27.615, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.615, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p06_quant.png" | |
| }, | |
| { | |
| "id": "P07", | |
| "title": "Ocean Cartography Bakery", | |
| "seed": 307, | |
| "time_s": 14.828, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.532, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p07_quant.png" | |
| }, | |
| { | |
| "id": "P08", | |
| "title": "Long English Train Notice Wall", | |
| "seed": 308, | |
| "time_s": 14.826, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.532, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p08_quant.png" | |
| }, | |
| { | |
| "id": "P09", | |
| "title": "Orbital Botanical Courtroom", | |
| "seed": 309, | |
| "time_s": 17.74, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.533, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p09_quant.png" | |
| }, | |
| { | |
| "id": "P10", | |
| "title": "Byzantine Data Center Chapel", | |
| "seed": 310, | |
| "time_s": 17.665, | |
| "image_size": [ | |
| 1440, | |
| 1440 | |
| ], | |
| "peak_allocated_gb": 23.532, | |
| "peak_reserved_gb": 27.712, | |
| "end_allocated_gb": 18.448, | |
| "end_reserved_gb": 27.712, | |
| "image": "/workspace/lens_sdnq_work/generated/quant/p10_quant.png" | |
| } | |
| ] | |
| } | |
| } | |
| } |