ONNX Model Zoo

amd/FLUX.1-dev_io32_amdgpu

By amd · ↓ 0 · ♥ 2 · Updated 2025-04-02

What's in this repo

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

  • 7 ONNX models (.onnx files)
  • 21 files, including 7 .onnx, 5 .data, 4 .json, 1 .md, 1 .png, 1 .txt
  • Last updated 2025-04-02

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-dev - AMD Optimized ONNX

Original Model

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

_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("Result.png");

Inference Result

Intro Image

Model info

text-to-image diffusers
diffusers onnx text-to-image base_model:black-forest-labs/FLUX.1-dev base_model:quantized:black-forest-labs/FLUX.1-dev license:other region:us
↓ 0 ♥ 2

Created: 2025-02-28

Updated: 2025-04-02

View on Hugging Face

Files (21)

.gitattributes
README.md
sample.png
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/vocab.json
tokenizer_2/model.onnx ONNX
tokenizer_2/special_tokens_map.json
tokenizer_2/spiece.model
tokenizer_2/tokenizer.json
transformer/model.onnx ONNX
transformer/model.onnx.data
vae_decoder/model.onnx ONNX
vae_decoder/model.onnx.data
vae_encoder/model.onnx ONNX
vae_encoder/model.onnx.data

Related models