Instructions to use mit-han-lab/svdq-int4-flux.1-schnell with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mit-han-lab/svdq-int4-flux.1-schnell with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mit-han-lab/svdq-int4-flux.1-schnell", 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
| base_model: black-forest-labs/FLUX.1-schnell | |
| base_model_relation: quantized | |
| datasets: | |
| - mit-han-lab/svdquant-datasets | |
| language: | |
| - en | |
| library_name: diffusers | |
| license: apache-2.0 | |
| pipeline_tag: text-to-image | |
| tags: | |
| - text-to-image | |
| - SVDQuant | |
| - FLUX.1-schnell | |
| - FLUX.1 | |
| - Diffusion | |
| - Quantization | |
| - ICLR2025 | |
| **This repository has been deprecated and will be hidden in December 2025. Please use https://huggingface.co/nunchaku-tech/nunchaku-flux.1-schnell.** | |
| ## Citation | |
| ```bibtex | |
| @inproceedings{ | |
| li2024svdquant, | |
| title={SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Models}, | |
| author={Li*, Muyang and Lin*, Yujun and Zhang*, Zhekai and Cai, Tianle and Li, Xiuyu and Guo, Junxian and Xie, Enze and Meng, Chenlin and Zhu, Jun-Yan and Han, Song}, | |
| booktitle={The Thirteenth International Conference on Learning Representations}, | |
| year={2025} | |
| } | |
| ``` |