Created using the following steps.

  1. ONNX export:
optimum-cli export onnx --model runwayml/stable-diffusion-v1-5 sd_v15_onnx/
  1. Push to Hub:
from huggingface_hub import HfApi

repo_id = "sayakpaul/onnx-stable-diffusion-v1-5"
api = HfApi()
api.create_repo(repo_id)
api.upload_folder(folder_path="sd_v15_onnx", repo_id=repo_id)

The ONNX export was performed in an m6i.4xlarge AWS EC2 instance. It is, therefore, recommended to run this model on the same hardware for maximum performance.