Text-to-Image
Diffusers
Safetensors
ErnieImagePipeline
ernie-image
sdnq
quantized
uint4
static
quantized-matmul
Instructions to use WaveCut/ERNIE-Image-Turbo-SDNQ-uint4-static with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WaveCut/ERNIE-Image-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/ERNIE-Image-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 Settings
- Draw Things
- DiffusionBee
| { | |
| "label": "sdnq_uint4_static_qmm_peoff", | |
| "model": "WaveCut/ERNIE-Image-Turbo-SDNQ-uint4-static", | |
| "settings": { | |
| "num_inference_steps": 8, | |
| "guidance_scale": 1.0, | |
| "use_pe": false, | |
| "use_quantized_matmul": true | |
| }, | |
| "load": { | |
| "name": "load_pipeline", | |
| "seconds": 71.84191872179508, | |
| "gpu_start_mib": 5, | |
| "gpu_end_mib": 10172, | |
| "gpu_peak_mib": 10172, | |
| "torch_peak_allocated_mib": 9724, | |
| "torch_peak_reserved_mib": 9738 | |
| }, | |
| "generations": [ | |
| { | |
| "name": "generate_00-cyrillic-poster", | |
| "seconds": 16.100811071693897, | |
| "gpu_start_mib": 10172, | |
| "gpu_end_mib": 15254, | |
| "gpu_peak_mib": 15254, | |
| "torch_peak_allocated_mib": 12172, | |
| "torch_peak_reserved_mib": 14734, | |
| "prompt_id": "00-cyrillic-poster", | |
| "title": "Cyrillic event poster", | |
| "seed": 41001, | |
| "width": 1024, | |
| "height": 1024, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/00_00-cyrillic-poster.png" | |
| }, | |
| { | |
| "name": "generate_01-long-text-bakery-ad", | |
| "seconds": 12.50448851287365, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15376, | |
| "gpu_peak_mib": 15376, | |
| "torch_peak_allocated_mib": 12237, | |
| "torch_peak_reserved_mib": 14856, | |
| "prompt_id": "01-long-text-bakery-ad", | |
| "title": "Long text product ad", | |
| "seed": 41002, | |
| "width": 896, | |
| "height": 1200, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/01_01-long-text-bakery-ad.png" | |
| }, | |
| { | |
| "name": "generate_02-technical-diagram", | |
| "seconds": 5.990650795400143, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15282, | |
| "gpu_peak_mib": 15282, | |
| "torch_peak_allocated_mib": 12236, | |
| "torch_peak_reserved_mib": 14762, | |
| "prompt_id": "02-technical-diagram", | |
| "title": "Technical diagram", | |
| "seed": 41003, | |
| "width": 1200, | |
| "height": 896, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/02_02-technical-diagram.png" | |
| }, | |
| { | |
| "name": "generate_03-four-panel-comic", | |
| "seconds": 12.322725795209408, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15258, | |
| "gpu_peak_mib": 15258, | |
| "torch_peak_allocated_mib": 12172, | |
| "torch_peak_reserved_mib": 14738, | |
| "prompt_id": "03-four-panel-comic", | |
| "title": "Four-panel comic", | |
| "seed": 41004, | |
| "width": 1024, | |
| "height": 1024, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/03_03-four-panel-comic.png" | |
| }, | |
| { | |
| "name": "generate_04-public-domain-painter-fusion", | |
| "seconds": 12.018585503101349, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15336, | |
| "gpu_peak_mib": 15336, | |
| "torch_peak_allocated_mib": 12171, | |
| "torch_peak_reserved_mib": 14816, | |
| "prompt_id": "04-public-domain-painter-fusion", | |
| "title": "Painterly style fusion", | |
| "seed": 41005, | |
| "width": 1024, | |
| "height": 1024, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/04_04-public-domain-painter-fusion.png" | |
| }, | |
| { | |
| "name": "generate_05-dashboard-ui", | |
| "seconds": 12.297656044363976, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15390, | |
| "gpu_peak_mib": 15390, | |
| "torch_peak_allocated_mib": 12193, | |
| "torch_peak_reserved_mib": 14870, | |
| "prompt_id": "05-dashboard-ui", | |
| "title": "Dense UI dashboard", | |
| "seed": 41006, | |
| "width": 1376, | |
| "height": 768, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/05_05-dashboard-ui.png" | |
| }, | |
| { | |
| "name": "generate_06-glass-still-life", | |
| "seconds": 12.412498839199543, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15334, | |
| "gpu_peak_mib": 15334, | |
| "torch_peak_allocated_mib": 12171, | |
| "torch_peak_reserved_mib": 14814, | |
| "prompt_id": "06-glass-still-life", | |
| "title": "Glass and reflections", | |
| "seed": 41007, | |
| "width": 1024, | |
| "height": 1024, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/06_06-glass-still-life.png" | |
| }, | |
| { | |
| "name": "generate_07-botanical-field-guide", | |
| "seconds": 11.883425869047642, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15358, | |
| "gpu_peak_mib": 15358, | |
| "torch_peak_allocated_mib": 12236, | |
| "torch_peak_reserved_mib": 14838, | |
| "prompt_id": "07-botanical-field-guide", | |
| "title": "Field guide plate", | |
| "seed": 41008, | |
| "width": 896, | |
| "height": 1200, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/07_07-botanical-field-guide.png" | |
| }, | |
| { | |
| "name": "generate_08-restaurant-menu-board", | |
| "seconds": 12.256571784615517, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15254, | |
| "gpu_peak_mib": 15254, | |
| "torch_peak_allocated_mib": 12172, | |
| "torch_peak_reserved_mib": 14734, | |
| "prompt_id": "08-restaurant-menu-board", | |
| "title": "Menu board text", | |
| "seed": 41009, | |
| "width": 1024, | |
| "height": 1024, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/08_08-restaurant-menu-board.png" | |
| }, | |
| { | |
| "name": "generate_09-isometric-city-map", | |
| "seconds": 8.654480040073395, | |
| "gpu_start_mib": 10278, | |
| "gpu_end_mib": 15298, | |
| "gpu_peak_mib": 15298, | |
| "torch_peak_allocated_mib": 12236, | |
| "torch_peak_reserved_mib": 14778, | |
| "prompt_id": "09-isometric-city-map", | |
| "title": "Isometric map", | |
| "seed": 41010, | |
| "width": 1200, | |
| "height": 896, | |
| "image": "sdnq_uint4_static_qmm_peoff/images/09_09-isometric-city-map.png" | |
| } | |
| ] | |
| } | |