AI GLOSSARY · LOCAL AND OPEN MODELS

ONNX (Open Neural Network Exchange)

Markdown version · Wikidata Q55080116

Definition

ONNX, the Open Neural Network Exchange, is an open format for representing machine learning models, with a common set of operators and a common file format so a model can move between frameworks, tools and runtimes.

Also called: ONNX, ONNX model, Open Neural Network Exchange, ONNX format.

In plain language

ONNX is a shared file format for trained AI models, a bit like PDF for documents. A model trained in one toolkit can be saved as an ONNX file and then opened by a different tool that runs it, perhaps on another kind of computer. ONNX Runtime is one such tool. The format does not make a model better or smaller by itself, and a converted model should be tested against the original before you rely on it.

Technical definition

The onnx.ai site describes ONNX as an open format built to represent machine learning models, defining a common set of operators and a common file format. The ONNX documentation introduces its concepts as graphs of nodes with inputs, outputs, initializers and attributes, serialised with protobuf, with operator sets identified by an opset version. ONNX Runtime, per its documentation, is a cross-platform machine-learning model accelerator that works with models from PyTorch, TensorFlow/Keras, TFLite, scikit-learn and other frameworks, and uses execution providers to run parts of a model graph on available hardware.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    The skill's catalogue line says it works out whether an open-weight language model will run on a given GPU, Mac or PC, with a script that computes weight, KV-cache and overhead memory per quantization.
    Why it exercises the concept
    Choosing how and where to run a model locally is the setting where a portable format like ONNX is considered. The catalogue line does not mention ONNX, so this is a contrast case about the sizing decision.
  2. Skill by Hugging Face · Illustrative, not executed

    hf-cli 21/100 · grade FScored · Method v0.2 · How we score

    What you see
    A command-line tool for the Hugging Face Hub, listed in this catalogue without a description.
    Why it exercises the concept
    Models published on the Hub come in several formats. A command-line tool for the Hub is one way an agent could fetch model files. The catalogue gives no description, so read the skill page before relying on it.
  3. Coding tool · Illustrative, not executed

    Claude Code

    What to try
    claude
    What you see
    Claude Code starts an interactive session in your terminal where you can ask the agent to inspect a model file or write a script.
    Why it exercises the concept
    A coding agent can write the conversion and test script for an ONNX export. The reader still has to check that the converted model gives the same answers as the original.

How it shows up when you use agents

ONNX appears when a model has to leave the toolkit it was trained in. You may meet it as a file ending in .onnx in a project, as an export step in a PyTorch or scikit-learn script an agent writes for you, or as ONNX Runtime in an app that runs a model on a laptop or a device rather than a server. It belongs to the world of running models yourself, so it sits next to inference, quantization and edge AI.

What breaks when it is misunderstood: people assume an export reproduces the original model without checking, or that ONNX is a model rather than a container for one. The ONNX documentation identifies operator sets by an opset version, so what a given runtime supports depends on versions. The next action is to ask the coding agent to write a small test that runs the same inputs through the original and the ONNX model and compares the outputs, before shipping the converted file.

Hosted assistants such as Claude, ChatGPT or Gemini are reached through an API, so ONNX does not apply to using them. It matters for model weights you hold yourself.

Common confusions

  • ONNX versus ONNX Runtime. ONNX is the format. ONNX Runtime is one engine that runs ONNX models, and its documentation says it also works with models from several frameworks.
  • ONNX versus a framework such as PyTorch. PyTorch is used to build and train models. ONNX is a way to save and move them between tools.
  • ONNX versus quantization. Quantization changes how numbers in a model are stored. ONNX is a file and operator standard. A model can be one, both or neither.
  • Myth: an ONNX file runs anywhere unchanged. The docs describe operator sets with versions and hardware-specific execution providers, so support depends on the runtime and the hardware.

Terms that mention ONNX (Open Neural Network Exchange)

3 terms mention this one

More in Local and open models

Next steps

  1. local-model-sizing A skill that exercises it.
  2. Quantization Related term.
  3. AI model Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .

This entry is still in review, so it is not listed in search engines yet.

Change log (2)
  • : First version.
  • : Verifier pass: applied verifier corrections to unsourced or overstated claims.