Have you seen these:

  
      huggingface.co
  
  
    

Hugging Face – On a mission to solve NLP, one commit at a time. 5



  
  
    
    
  
  


https://huggingface.co/transformers/serialization.html 10

  
      github.com
  
  
    huggingface/transformers/blob/master/notebooks/04-onnx-export.ipynb 16
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "colab_type": "text",
    "id": "jBasof3bv1LB"
   },
   "source": [
    "<h1><center>How to export 🤗 Transformers Models to ONNX ?<h1><center>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "[ONNX](http://onnx.ai/) is open format for machine learning models. It allows to save your neural network's computation graph in a framework agnostic way, which might be particulary helpful when deploying deep learning models.\n",
    "\n",
    "Indeed, businesses might have other requirements _(languages, hardware, ...)_ for which the training framework might not be the best suited in inference scenarios. In that context, having a representation of the actual computation graph that can be shared accross various business units and logics across an organization might be a desirable component.\n",
    "\n",


  This file has been truncated. show original