ONNX Model Zoo

shivak/gpt-oss-20b-onnx-hybrid

By shivak · ↓ 0 · ♥ 1 · Updated 2025-08-11

What's in this repo

This page lists the files in shivak/gpt-oss-20b-onnx-hybrid, including model_jit.onnx.

  • 1 ONNX models (.onnx files)
  • 14 files, including 7 .json, 2 .bin, 1 .md, 1 .jinja, 1 .onnx, 1 .data
  • Last updated 2025-08-11

ONNX files

File Size Download
model_jit.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

Hybrid inference (AMD NPU+GPU) for gpt-oss-20b

This is a version of gpt-oss-20b set up for hybrid NPU+GPU inference on AMD Ryzen AI hardware. (Lots of MatMuls are scheduled on the NPU). This should make it run faster than GPU-only implementations such as llama.cpp.

NOTE: this doesn't yet run on Ryzen AI. gpt-oss-20b uses MoEs with the Swiglu activation, which were added just recently to onnxruntime. AMD still needs to rebuild onnxruntime-genai-directml-ryzenai. Then, you should be able to run it in Lemonade.

How this was made

gpt-oss-20b-onnx converted gpt-oss-20b to ONNX, making sure to translate the MoE code to a QMoE ONNX operator. I took that and ran it through model_generate for hybrid inference, while editing out various bugs/incompatibilities. In particular, the hybrid_llm_gqo pass is removed (it doesn't support a bias term in the GQO MatMul) and the matmulnbits pass is skipped just for the LM head (its dimensions are incompatible). I didn't perform any further quantization.

Model info

onnx safetensors openai_moe base_model:openai/gpt-oss-20b base_model:quantized:openai/gpt-oss-20b license:apache-2.0 region:us
↓ 0 ♥ 1

Created: 2025-08-09

Updated: 2025-08-11

View on Hugging Face

Files (14)

.gitattributes
README.md
chat_template.jinja
config.json
genai_config.json
generation_config.json
model.safetensors.index.json
model_jit.bin
model_jit.onnx ONNX
model_jit.onnx.data
model_jit.pb.bin
special_tokens_map.json
tokenizer.json
tokenizer_config.json

Related models