prompt = "A photograph of an astronaut riding a horse on Mars, high resolution, high definition."
generator = torch.Generator(device="cuda").manual_seed(8)
```  
To change the pipelines scheduler, use the [`~ConfigMixin.from_config`] method to load a different scheduler's `pipeline.scheduler.config` into the pipeline.  
<hfoptions id="schedulers">
<hfoption id="LMSDiscreteScheduler">  
[`LMSDiscreteScheduler`] typically generates higher quality images than the default scheduler.  
```py