Instructions to use doji-tech/tiny-stable-diffusion-xl-pipe-single-file with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use doji-tech/tiny-stable-diffusion-xl-pipe-single-file with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("doji-tech/tiny-stable-diffusion-xl-pipe-single-file", 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
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("doji-tech/tiny-stable-diffusion-xl-pipe-single-file", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Tiny random Stable Diffusion XL pipeline (single file)
Random weights, for tests only. The images it makes are noise.
The weights of doji-tech/tiny-stable-diffusion-xl-pipe-onnx
(the dummy components of the diffusers test tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl.py) in one
tiny-sdxl.safetensors file, in the layout of the original Stability AI checkpoints. The folders hold the diffusers
configs and tokenizers, so the repository also serves as the config of from_single_file:
StableDiffusionXLPipeline.from_single_file("tiny-sdxl.safetensors", config="doji-tech/tiny-stable-diffusion-xl-pipe-single-file")
The regression tests of tools.doji.diffusers use it.
tools/tiny_pipelines/make_tiny_sdxl_single_file.py in that repository makes it.
- Downloads last month
- 73