Instructions to use stabilityai/sdxl-turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/sdxl-turbo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download text_encoder/model.fp16.safetensors from stabilityai/sdxl-turbo: direct link, hf CLI and curl.
- Browser
- Download file 246 MB
-
https://huggingface.co/stabilityai/sdxl-turbo/resolve/2c4b5b9e8c65b03b4cd101620ca468508e51f677/text_encoder/model.fp16.safetensors
- Command line
-
hf download hf://stabilityai/sdxl-turbo@2c4b5b9e8c65b03b4cd101620ca468508e51f677/text_encoder/model.fp16.safetensors
-
curl -L -o model.fp16.safetensors https://huggingface.co/stabilityai/sdxl-turbo/resolve/2c4b5b9e8c65b03b4cd101620ca468508e51f677/text_encoder/model.fp16.safetensors
246 MB
- Xet hash:
- 645ba23540a1ce97d9c44332759ded7c2b5b8449914b8890eefd73d88e6e0229
- Size of remote file:
- 246 MB
- SHA256:
- 660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.