ONNX Model Zoo

amd/FLUX.1-schnell_io32_amdgpu

By amd · ↓ 3 · ♥ 3 · Updated 2025-04-03

What's in this repo

This page lists the files in amd/FLUX.1-schnell_io32_amdgpu, including model.onnx and more.

  • 7 ONNX models (.onnx files)
  • 28 files, including 11 .json, 7 .onnx, 5 .data, 1 .md, 1 .png, 1 .txt
  • Last updated 2025-04-03

ONNX files

File Size Download
text_encoder/model.onnx — Download
text_encoder_2/model.onnx — Download
tokenizer/model.onnx — Download
tokenizer_2/model.onnx — Download
transformer/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

black-forest-labs/FLUX.1-schnell - AMD Optimized ONNX

Original Model

https://huggingface.co/black-forest-labs/FLUX.1-schnell

_io32/16

_io32: model input is fp32, model will convert the input to fp16, perform ops in fp16 and write the final result in fp32

_io16: model input is fp16, perform ops in fp16 and write the final result in fp16

Running

1. Using Amuse GUI Application

Use Amuse GUI application to run it: https://www.amuse-ai.com/

use _io32 model to run with Amuse application

2. Inference Demo

https://github.com/TensorStack-AI/OnnxStack

// csharp example
// Create Pipeline
var pipeline = FluxPipeline.CreatePipeline("D:\\Models\\Flux.1-dev_amdgpu");
// Prompt
var promptOptions = new PromptOptions
{
    Prompt = "a majestic Royal Bengal Tiger on the mountain top overlooking beatiful Lake Tahoe snowy mountains and deep blue lake, deep blue sky, ultra hd, 8k, photorealistic"
};
// Scheduler Options
var schedulerOptions = pipeline.DefaultSchedulerOptions with
{  
    InferenceSteps = 50,
    GuidanceScale = 3.5f,
    SchedulerType = SchedulerType.FlowMatchEulerDiscrete,
};

// Run pipeline
var result = await pipeline.GenerateImageAsync(promptOptions, schedulerOptions);

// Save Image Result
await result.SaveAsync("sample.png");

Inference Result

Intro Image

Model info

text-to-image diffusers
diffusers onnx text-to-image base_model:black-forest-labs/FLUX.1-schnell base_model:quantized:black-forest-labs/FLUX.1-schnell license:apache-2.0 endpoints_compatible diffusers:FluxPipeline region:us
↓ 3 ♥ 3

Created: 2025-02-04

Updated: 2025-04-03

View on Hugging Face

Files (28)

.gitattributes
README.md
model_index.json
sample.png
scheduler/scheduler_config.json
text_encoder/config.json
text_encoder/model.onnx ONNX
text_encoder/model.onnx.data
text_encoder_2/model.onnx ONNX
text_encoder_2/model.onnx.data
tokenizer/merges.txt
tokenizer/model.onnx ONNX
tokenizer/special_tokens_map.json
tokenizer/tokenizer_config.json
tokenizer/vocab.json
tokenizer_2/model.onnx ONNX
tokenizer_2/special_tokens_map.json
tokenizer_2/spiece.model
tokenizer_2/tokenizer.json
tokenizer_2/tokenizer_config.json
transformer/model.onnx ONNX
transformer/model.onnx.data
vae_decoder/config.json
vae_decoder/model.onnx ONNX
vae_decoder/model.onnx.data
vae_encoder/config.json
vae_encoder/model.onnx ONNX
vae_encoder/model.onnx.data

Related models