Downloads · 30 days
0
aws-neuron/stable-diffusion-xl-base-1-0-1024x1024
stable-diffusion-xl-base-1-0-1024x1024 is a text-to-image model from aws-neuron. Use it when you need an image from a text prompt. The card lists the license as openrail++.
This repository contains AWS Inferentia2 and neuronx compatible checkpoints for stabilityai/stable-diffusion-xl-base-1.0. You can find detailed information about the base model on its Model Card.
Downloads · 30 days
0
Access
Public
Updated Nov 7, 2023
Repo size
16.1 GB
Likes
3
Public
Click a slice to open those files.
.neuron7.5 GB · 100%
From the Hugging Face model README
This repository contains AWS Inferentia2 and neuronx compatible checkpoints for stabilityai/stable-diffusion-xl-base-1.0. You can find detailed information about the base model on its Model Card.
Read more in Deploy Stable Diffusion XL on AWS inferentia2 with Amazon SageMaker
from optimum.neuron import NeuronStableDiffusionXLPipeline
# Load pipeline from Hugging Face repository
pipeline = NeuronStableDiffusionXLPipeline.from_pretrained(model_dir, device_ids=[0, 1])
# prompt for generating images
prompt = "a photo of an astronaut riding a horse on mars"
# generate image
image = stable_diffusion(prompt).images[0]
image.save("generated_image.jpg")
This repository contains branches specific to versions of neuronx. When using with optimum-neuron, use the repo revision specific to the version of neuronx you are using, to load the right serialized checkpoints.
compilation arguments
{
"auto_cast": "all",
"auto_cast_type": "bf16"
}
input_shapes
{
"height": 1024,
"width": 1024,
"num_images_per_prompt": 1,
"batch_size": 1
}