Instructions to use stabilityai/stable-diffusion-xl-base-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-xl-base-1.0 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/stable-diffusion-xl-base-1.0", 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
Processes Killed when Compiling in Ubuntu 22.04
#119
by luissimoes - opened
Currently trying to run a PoC using this, but when it starts compiling for CPU at some point it gets killed.
Log:
Compiling the vae_decoder to CPU ...
Compiling the unet to CPU ...
Compiling the text_encoder to CPU ...
Compiling the vae_encoder to CPU ...
Compiling the text_encoder_2 to CPU ...
Killed
After retrying multiple times the processes get killed at different points of the compiling process.
What can be causing this?
Ubuntu 22.04 and 8 CPUs with average usage of 15%.
Was due to lack of enough memory.
luissimoes changed discussion status to closed