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]
What Optimum does
Optimum can be used for converting, quantization, graph optimization, accelerated training & inference with support for transformers pipelines. [3]
Sources
- 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
- 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
- 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