Skip to content
IJK

ONNX Operators, the Exported Graph and What Optimum Adds

By IJK ·

What a Hugging Face post says ONNX defines, what an exported model constructs and what Optimum can be used for.

What ONNX defines

ONNX defines a common set of operators and a common file format to represent deep learning models in a wide variety of frameworks, including PyTorch and TensorFlow. [1]

What export constructs

When a model is exported to the ONNX format, these operators are used to construct a computational graph (often called an intermediate representation) which represents the flow of data through the neural network. [2]

constructoptimized byA common set of operators and file formatacross frameworks including PyTorch and TensorFlowA computational graph on exportan intermediate representation of the data flowOptimumconverting, quantization, graph optimization, acc...
What do operators and Optimum do?

What Optimum does

Optimum can be used for converting, quantization, graph optimization, accelerated training & inference with support for transformers pipelines. [3]

Sources

  1. The Hugging Face source says: ONNX defines a common set of operators and a common file format to represent deep learning models in a wide variety of frameworks, including PyTorch and TensorFlow. Convert Transformers to ONNX with Hugging Face Optimum
  2. The Hugging Face source says: When a model is exported to the ONNX format, these operators are used to construct a computational graph (often called an intermediate representation) which represents the flow of data through the neural network. Convert Transformers to ONNX with Hugging Face Optimum
  3. The Hugging Face source says: Optimum can be used for converting, quantization, graph optimization, accelerated training & inference with support for transformers pipelines. Convert Transformers to ONNX with Hugging Face Optimum

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • onnx
  • optimum
  • model export
  • hugging face