Instructions to use stabilityai/sdxl-vae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/sdxl-vae 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-vae", 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
Commit History
-
correct scaling factor
8987d13 -
update diffusers
3d898e2 -
update vae weights
Robin Rombach4eec565
-
Update scaling_factor for SDXL (#4)
- Update scaling_factor for SDXL (622c174bdf80e696015d450354fa1c103c417383) Co-authored-by: madebyollin <madebyollin@users.noreply.huggingface.co>e6e6fee
-
Add Diffusers weights (#3)
- add diffusers weights (c931cf301bb9c9182618768372e9ef343d026407)95f3fcb
-
Initial commit
Co-authored-by: Tim Dockhorn <timudk@users.noreply.huggingface.co>f85c107