@@ -11,22 +11,33 @@ specific language governing permissions and limitations under the License.
-->
# How to use the ONNX Runtime for inference
# Quicktour
🤗 Diffusers provides a Stable Diffusion pipeline compatible with the ONNX Runtime. This allows you to run Stable Diffusion on any hardware that supports ONNX (including CPUs), and where an accelerated version of PyTorch is not available.
Start using Diffusers🧨 quickly!
To start, use the [`DiffusionPipeline`] for quick inference and sample generations!
## Installation
```
pip install diffusers
```
- TODO
## Main classes
## Stable Diffusion Inference
### Models
The snippet below demonstrates how to use the ONNX runtime. You need to use `StableDiffusionOnnxPipeline` instead of `StableDiffusionPipeline`. You also need to download the weights from the `onnx` branch of the repository, and indicate the runtime provider you want to use.
### Schedulers
```python
# make sure you're logged in with `huggingface-cli login`