Run this model with HF Jobs
Run stabilityai/stable-diffusion-xl-base-1.0 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Add flax/jax weights
#95
by patrickvonplaten - opened
Files changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:80269e53c9d09b1f19c6227cf903a5032878ed31ea8b49b8ecfa7808b81568d9size 492248682123version https://git-lfs.github.com/spec/v1oid sha256:dc025fc8d206bafd2ebf2f2cbf0b6f791c314612b5613c3737bf368236ac657fsize 2778657095123version https://git-lfs.github.com/spec/v1oid sha256:0b98927b43cc771954a394ed19c08ecd3064a09e6e28b1d762270978ba6a9533size 10269915611123version https://git-lfs.github.com/spec/v1oid sha256:1857495e1d4e28140013764ffd620f6aa1fb0311dd43d7cf083f72704c69e3eesize 334623853text_encoder/flax_model.msgpackAdded+3
text_encoder_2/flax_model.msgpackAdded+3
unet/diffusion_flax_model.msgpackAdded+3
vae/diffusion_flax_model.msgpackAdded+3