Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: huggingface/optimum

v2.0.0: Optimum ONNX, TF Lite, BetterTransformer

09 Oct 12:24

Choose a tag to compare

Breaking changes since v1.x

v2.0.0 introduces several breaking changes

1. ONNX integration moved to Optimum ONNX

ONNX export and ONNX Runtime inference related integrations were moved to Optimum ONNX #2298

Installation

How to obtain the same behavior as v1.x

pip install "optimum-onnx[onnxruntime]"

or equivalently

pip install "optimum[onnxruntime]"

🚨 You shouldn't install optimum without an extra if you want to be able to export your model to ONNX, please follow the installation instructions from the documentation 🚨

ONNX Runtime Training

ONNX Runtime Training officially deprecated, more information on this in optimum-onnx v0.0.1 release notes

2. TF Lite export

TF Lite export officially deprecated #2340

3. BetterTransformer

BetterTransformer officially deprecated #2305

Improvements

Optimum pipelines

General improvements

New Contributors

Full Changelog: v1.27.0...v2.0.0

v1.27.0: Last release before v2, Transformers 4.53 support, SmolLM3, VisualBert...

30 Jul 17:15

Choose a tag to compare

πŸš€ Major Upgrades

πŸ”§ Enhancements & Fixes

🧹 Deprecations & v2

  • Deprecated support for TFLite, BetterTransformer, and ONNXRuntime‑Training, these integrations will be fully removed in v2.
  • TensorFlow models export will be removed in v2, consistent with Transformer library dropping TF/JAX support.
  • ONNX and ONNXRuntime integrations will move into the new Optimum‑ONNX package.

New Contributors

Full Changelog: v1.26.1...v1.27.0

v1.26.1: Patch release

13 Jun 10:30

Choose a tag to compare

Add back from_transformers for base model by @echarlaix in #2288

v1.26.0: ColPali, D-FINE, InternLM2

13 Jun 07:54

Choose a tag to compare

ONNX export

New features & enhancements

New Contributors

v1.25.3: Patch release

16 May 14:23

Choose a tag to compare

Full Changelog**: v1.25.2...v1.25.3

v1.25.2: Patch release

15 May 16:30

Choose a tag to compare

What's Changed

Full Changelog: v1.25.1...v1.25.2

v1.25.1: Patch release

15 May 13:40

Choose a tag to compare

What's Changed

Full Changelog: v1.25.0...v1.25.1

v1.25.0: ViTPose, RT-DETR, EfficientNet, Moonshine ONNX

13 May 15:21

Choose a tag to compare

πŸš€ New Features & Enhancements

  • Add ONNX export support for ViTPose, RT-DETR, EfficientNet, Moonshine
  • Infer if the model needs to be exported to ONNX during loading
  from optimum.onnxruntime import ORTModelForCausalLM

  model_id = "meta-llama/Llama-3.2-1B"
- model = ORTModelForCausalLM.from_pretrained(model_id, export=True)
+ model = ORTModelForCausalLM.from_pretrained(model_id)
  • Transformers v4.49, v4.50 and v4.51 compatibility

πŸ‘₯ New Contributors

A huge thank you to our first-time contributors:

What's Changed

v1.24.0: SD3 & Flux, DinoV2, Modernbert, GPTQModel, Transformers v4.48...

30 Jan 16:26

Choose a tag to compare

Release Notes: Optimum v1.24.0

We’re excited to announce the release of Optimum v1.24.0. This update expands ONNX-based model capabilities and includes several improvements, bug fixes, and new contributions from the community.

πŸš€ New Features & Enhancements

  • ORTQuantizer now supports models with ONNX subfolders.
  • ONNX Runtime IO Binding support for all supported Transformers models (no models left behind).
  • SD3 and Flux model support added to ORTDiffusionPipeline enabling latest diffusion-based models.
  • Transformers v4.47 and v4.48 compatibility, ensuring seamless integration with the latest advancements in Hugging Face's ecosystem.
  • ONNX export support extended to various models, including Decision Transformer, ModernBERT, Megatron-BERT, Dinov2, OLMo, and many more (see details).

πŸ”§ Key Fixes & Optimizations

  • Dropped support for Python 3.8
  • Bug fixes in ModelPatcher, SDXL refiner export, and device checks for improved reliability.

πŸ‘₯ New Contributors

A huge thank you to our first-time contributors:

Your contributions make Optimum better! πŸŽ‰

For a detailed list of all changes, please check out the full changelog.

πŸš€ Happy optimizing!

What's Changed

v1.23.3: Patch release

29 Oct 17:44

Choose a tag to compare