📄️ From PyTorch
Prerequisites
📄️ From Huggingface
Hugging Face Transformers
📄️ From SavedModel (Tensorflow)
If you’re starting with a model saved in TensorFlow’s SavedModel format, you can easily convert it to ONNX using the tf2onnx library.
📄️ From Keras (Tensorflow)
If you’ve built your model using the Keras API (e.g. tf.keras.Model), you can export it to ONNX directly using tf2onnx. This is a good option when your model is already instantiated in memory (not saved to disk yet) and you want quick conversion.
📄️ From Other Model Formats
To ensure your ONNX model runs successfully in our system, your exported model must meet two key requirements: