Optimum documentation

Overview

You are viewing v1.7.3 version. A newer version v1.17.1 is available.
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Overview

🤗 Optimum handles the export of PyTorch or TensorFlow models to ONNX in the exporters.onnx module. It provides classes, functions, and a command line interface to perform the export easily.

Supported architectures:

  • AST
  • Audio Spectrogram Transformer
  • Albert
  • Bart
  • Beit
  • Bert
  • BlenderBot
  • BlenderBotSmall
  • Bloom
  • Camembert
  • CLIP
  • CodeGen
  • ConvBert
  • ConvNext
  • Data2VecAudio
  • Data2VecText
  • Data2VecVision
  • Deberta
  • Deberta-v2
  • Deit
  • Detr
  • DistilBert
  • Donut-Swin
  • Electra
  • Flaubert
  • GPT-2
  • GPT-J
  • GPT-Neo
  • GPT-NeoX
  • OPT
  • GroupVit
  • Hubert
  • IBert
  • LayoutLM
  • LayoutLM-v3
  • Levit
  • LongT5
  • M2-M100
  • Marian
  • MBart
  • MobileBert
  • MobileVit
  • MobileNet v1
  • MobileNet v2
  • MPNet
  • MT5
  • Nystromformer
  • Pegasus
  • Perceiver
  • PoolFormer
  • RegNet
  • ResNet
  • Roberta
  • Roformer
  • Segformer
  • SEW
  • SEW-D
  • Speech2Text
  • Splinter
  • SqueezeBert
  • Stable Diffusion
  • Swin
  • T5
  • TROCR
  • UniSpeech
  • UniSpeech SAT
  • Vit
  • Wav2Vec2
  • Wav2Vec2 Conformer
  • WavLM
  • Whisper
  • XLM
  • XLM-Roberta
  • Yolos