Tools

Transformers 5.23 lets developers export a model once and share it on the Hub

Transformers v5.23.0 adds ExportedModel for ONNX Runtime, OpenVINO, Dynamo and ExecuTorch, plus Inkling 2 Small and Liquid AI's LFM3 models.

Published Updated

Grayscale cardboard shipping box with one red strip of packing tape
AI-generated image

TL;DR

  • Every export now returns an ExportedModel that is called like the original model and can be pushed to the Hub [1].
  • On an A100, ONNX Runtime with the TensorRT EP ran EmbeddingGemma2 7.6× faster than eager PyTorch [1].
  • New models include Inkling 2 Small (594B total, 17B active) and Liquid AI's LFM3 and LFM3-VL [1].

Hugging Face released Transformers v5.23.0 on 13 November 2026 with a new export system [1]. Every export now returns an ExportedModel. Developers call it like the original model, with the same arguments and output class, push it to the Hugging Face Hub, and load it back on the target backend’s own runtime [1]. The same API covers Dynamo, ONNX Runtime, OpenVINO and ExecuTorch [1].

Why it matters

For teams that run models outside PyTorch, one API now covers four backends, and it makes an export something that can be saved and shared like a model [1]. An export can live in a subfolder of the model repository, and its export.json file records the config, input shapes, package versions and input and output names [1]. Quantized exports from PT2E, NNCF and ONNX Runtime save and run the same way [1].

Speed figures

According to the release notes, OnnxConfig(ort_fusions=...) rewrites the graph into ONNX Runtime’s fused transformer operations at export time, with cpu, cuda, webgpu and dml as targets [1]. OpenVINO exports now use OpenVINO’s fused CPU kernels, which the notes say makes decode 2.4–3.9× faster than before [1].

On EmbeddingGemma2 with 8 × 128 tokens, ONNX Runtime with the TensorRT execution provider was 7.6× faster than eager PyTorch and 1.4× faster than torch.compile on an A100 [1]. On a Xeon Platinum 8570 CPU, OpenVINO was 4.1× faster than eager PyTorch and 2.2× faster than torch.compile, or 4.9× and 2.6× with int8 weights [1].

Breaking changes

export() now returns an ExportedModel, and the output_path options of OnnxConfig and OpenVINOConfig are removed in favor of save_pretrained [1]. The [audio] extra now installs only torchaudio, soundfile and soxr, dropping librosa and phonemizer [1]. Wav2Vec2ProcessorWithLM and pyctcdecode/kenlm language-model decoding are deprecated [1].

New models

  • Inkling 2 Small from Thinking Machines Lab: a text-and-image model with 594B total and 17B active parameters across 48 mixture-of-experts layers [1].
  • LFM3 and LFM3-VL from Liquid AI: hybrid convolution-and-attention language models, and a vision-language family that takes images and video at native resolution [1].
  • IQuest-Coder-V1: code models in 7B, 14B and 40B sizes; the looped checkpoints are not supported [1].
  • InternLM3, an 8B instruction model from Shanghai AI Laboratory, and Dots 3 Note Preview, which accepts text, image, video and audio [1].

JEV, a decision head, and the new decision pipeline are experimental, and the notes advise caution before using them in production [1].

Sources

Written and checked by AI from the sources below

  1. Transformers v5.23.0 release notesHugging Face (GitHub) ·

Fact-checked by gpt-6.1-sol on · Editorial policy