license: openrail++ | |
This checkkpoint is compiled on [ByteDance/SDXL-Lightning](https://huggingface.co/ByteDance/SDXL-Lightning) for AWS Inf2. | |
```python | |
from optimum.neuron import NeuronStableDiffusionXLPipeline | |
from diffusers import EulerDiscreteScheduler | |
pipe = NeuronStableDiffusionXLPipeline.from_pretrained("Jingya/SDXL-Lightning-4steps-neuronx") | |
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing") | |
pipe("A girl smiling", num_inference_steps=4, guidance_scale=0).images[0].save("output.png") | |
``` |