ONNX Model Zoo

imgailab/sdxl-onnx-cpu

By imgailab · ↓ 0 · ♥ 0 · Updated 2025-08-08

What's in this repo

This page lists the files in imgailab/sdxl-onnx-cpu, including model.onnx and more.

  • 5 ONNX models (.onnx files)
  • 24 files, including 13 .json, 5 .onnx, 2 .onnx_data, 2 .txt, 1 .md
  • Last updated 2025-08-08

ONNX files

File Size Download
text_encoder/model.onnx — Download
text_encoder_2/model.onnx — Download
unet/model.onnx — Download
vae_decoder/model.onnx — Download
vae_encoder/model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

sdxl-onnx-fp32

ONNX optimized version of stabilityai/stable-diffusion-xl-base-1.0 with FP32 precision for maximum compatibility.

Available Components

  • unet: FP32 optimized
  • vae_decoder: FP32 optimized
  • vae_encoder: FP32 optimized
  • text_encoder: FP32 optimized
  • text_encoder_2: FP32 optimized

Usage

Basic CPU Usage

from optimum.onnxruntime import ORTStableDiffusionPipeline

# Models use FP32 for maximum compatibility
pipe = ORTStableDiffusionPipeline.from_pretrained(
    "Mitchins/sdxl-onnx-fp32",
    provider="CPUExecutionProvider"
)

result = pipe("a red apple on a table")
result.images[0].save("output.png")

GPU Usage (CUDA)

pipe = ORTStableDiffusionPipeline.from_pretrained(
    "Mitchins/sdxl-onnx-fp32",
    provider="CUDAExecutionProvider"
)

Performance Benefits

  • Compatibility: Works reliably on CPU and GPU
  • Speed: ONNX runtime optimizations
  • Stability: No type mismatch issues
  • Quality: Full FP32 precision

File Structure

All models are FP32 for compatibility:

unet/

  • model.onnx (3.9MB + 9794.1MB data) - FP16 precision

vae_decoder/

  • model.onnx (188.9MB) - FP16 precision

vae_encoder/

  • model.onnx (130.4MB) - FP16 precision

text_encoder/

  • model.onnx (469.7MB) - FP16 precision

text_encoder_2/

  • model.onnx (0.8MB + 2649.9MB data) - FP16 precision

Generated: 2025-08-08 11:05 UTC with onnxruntime 1.22.1

Model info

onnx region:us
↓ 0 ♥ 0

Created: 2025-08-08

Updated: 2025-08-08

View on Hugging Face

Files (24)

.gitattributes
README.md
model_index.json
scheduler/scheduler_config.json
text_encoder/config.json
text_encoder/model.onnx ONNX
text_encoder_2/config.json
text_encoder_2/model.onnx ONNX
text_encoder_2/model.onnx_data
tokenizer/merges.txt
tokenizer/special_tokens_map.json
tokenizer/tokenizer_config.json
tokenizer/vocab.json
tokenizer_2/merges.txt
tokenizer_2/special_tokens_map.json
tokenizer_2/tokenizer_config.json
tokenizer_2/vocab.json
unet/config.json
unet/model.onnx ONNX
unet/model.onnx_data
vae_decoder/config.json
vae_decoder/model.onnx ONNX
vae_encoder/config.json
vae_encoder/model.onnx ONNX

Related models