Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

stabilityai
/
stable-diffusion-xl-base-1.0

Text-to-Image
Diffusers
ONNX
Safetensors
StableDiffusionXLPipeline
stable-diffusion
Model card Files Files and versions
xet
Community
252

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
  • Draw Things
  • DiffusionBee
stable-diffusion-xl-base-1.0 / text_encoder_2
12.5 GB
Ctrl+K
Ctrl+K
  • 8 contributors
History: 4 commits
patrickvonplaten's picture
patrickvonplaten
Add flax/jax weights (#95)
76d28af over 2 years ago
  • config.json
    575 Bytes
    License, tags and diffusers updates (#2) almost 3 years ago
  • flax_model.msgpack
    2.78 GB
    xet
    Add flax/jax weights (#95) over 2 years ago
  • model.fp16.safetensors
    1.39 GB
    xet
    License, tags and diffusers updates (#2) almost 3 years ago
  • model.onnx
    1.04 MB
    xet
    onnx-model (#18) almost 3 years ago
  • model.onnx_data
    2.78 GB
    xet
    onnx-model (#18) almost 3 years ago
  • model.safetensors
    2.78 GB
    xet
    License, tags and diffusers updates (#2) almost 3 years ago
  • openvino_model.bin

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    2.78 GB
    xet
    openvino-model (#19) almost 3 years ago
  • openvino_model.xml
    2.79 MB
    xet
    openvino-model (#19) almost 3 years ago