There are two ways to export a 🤗 Transformers model to ONNX, here we show both: export with 🤗 Optimum via CLI.