Skip to content

Releases: huggingface/optimum

v2.2.0: Transformers v5 Support & Deprecation Cleanup

Choose a tag to compare

@echarlaix echarlaix released this 09 Jun 20:47

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.2.0

v2.1.0: Transformers v5 compatibility and full transition to GPTQModel

Choose a tag to compare

@IlyasMoutawwakil IlyasMoutawwakil released this 19 Dec 10:50

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0: Optimum ONNX, TF Lite, BetterTransformer

Choose a tag to compare

@echarlaix echarlaix released this 09 Oct 12:24

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...

Choose a tag to compare

@IlyasMoutawwakil IlyasMoutawwakil released this 30 Jul 17:15

🚀 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

Choose a tag to compare

@echarlaix echarlaix released this 13 Jun 10:30

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

v1.26.0: ColPali, D-FINE, InternLM2

Choose a tag to compare

@echarlaix echarlaix released this 13 Jun 07:54

ONNX export

New features & enhancements

New Contributors

v1.25.3: Patch release

Choose a tag to compare

@echarlaix echarlaix released this 16 May 14:23

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

v1.25.2: Patch release

Choose a tag to compare

@IlyasMoutawwakil IlyasMoutawwakil released this 15 May 16:30

What's Changed

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

v1.25.1: Patch release

Choose a tag to compare

@IlyasMoutawwakil IlyasMoutawwakil released this 15 May 13:40

What's Changed

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

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

Choose a tag to compare

@echarlaix echarlaix released this 13 May 15:21

🚀 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