ONNX Model Zoo

paralaif/MagicPrompt-Stable-Diffusion-ONNX

By paralaif · ↓ 3 · ♥ 0 · Updated 2025-12-10

What's in this repo

This page lists the files in paralaif/MagicPrompt-Stable-Diffusion-ONNX, including model.onnx, model_bnb4.onnx, model_fp16.onnx and more.

  • 8 ONNX models (.onnx files)
  • 18 files, including 8 .onnx, 7 .json, 1 .md, 1 .txt
  • Last updated 2025-12-10

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_bnb4.onnx — Download
onnx/model_fp16.onnx — Download
onnx/model_int8.onnx — Download
onnx/model_q4.onnx — Download
onnx/model_q4f16.onnx — Download
onnx/model_quantized.onnx — Download
onnx/model_uint8.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

MagicPrompt-Stable-Diffusion (ONNX)

This is an ONNX version of Gustavosta/MagicPrompt-Stable-Diffusion. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js

See the pipeline documentation for text-generation: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextGenerationPipeline


MagicPrompt - Stable Diffusion

This is a model from the MagicPrompt series of models, which are GPT-2 models intended to generate prompt texts for imaging AIs, in this case: Stable Diffusion.

🖼️ Here's an example:

This model was trained with 150,000 steps and a set of about 80,000 data filtered and extracted from the image finder for Stable Diffusion: "Lexica.art". It was a little difficult to extract the data, since the search engine still doesn't have a public API without being protected by cloudflare, but if you want to take a look at the original dataset, you can have a look here: datasets/Gustavosta/Stable-Diffusion-Prompts.

If you want to test the model with a demo, you can go to: "spaces/Gustavosta/MagicPrompt-Stable-Diffusion".

💻 You can see other MagicPrompt models:

⚖️ Licence:

MIT

When using this model, please credit: Gustavosta

Thanks for reading this far! :)

Model info

text-generation transformers.js
transformers.js onnx gpt2 text-generation base_model:Gustavosta/MagicPrompt-Stable-Diffusion base_model:quantized:Gustavosta/MagicPrompt-Stable-Diffusion license:mit region:us
↓ 3 ♥ 0

Created: 2025-12-10

Updated: 2025-12-10

View on Hugging Face

Files (18)

.gitattributes
README.md
config.json
generation_config.json
merges.txt
onnx/model.onnx ONNX
onnx/model_bnb4.onnx ONNX
onnx/model_fp16.onnx ONNX
onnx/model_int8.onnx ONNX
onnx/model_q4.onnx ONNX
onnx/model_q4f16.onnx ONNX
onnx/model_quantized.onnx ONNX
onnx/model_uint8.onnx ONNX
quantize_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models