huggingface/optimum
🚀 Accelerate inference and training of 🤗 Transformers, Diffusers, TIMM and Sentence Transformers with easy to use hardware optimization tools observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 28.0
- age_days: 1870
- days_rel: 29
- days_push: 9
- n_releases_24m: 17
Adoption not part of the score
3469 stars · 673 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Optimum is a Hugging Face library that extends Transformers, Diffusers, timm, and Sentence Transformers with hardware-specific optimization tools for faster training and inference. It provides drop-in model classes and export/quantization utilities targeting accelerators like ONNX Runtime, OpenVINO, TensorRT-LLM, AMD, AWS Neuron, and Habana Gaudi.
Use cases
- speed up huggingface transformer inference
- convert pytorch model to onnx
- quantize a model to int8 for faster inference
- run transformers on intel openvino
- fine-tune models on habana gaudi or aws trainium
- accelerate stable diffusion inference on gpu
- export transformers model to tensorrt-llm
When to choose
- you use the Hugging Face ecosystem and want faster inference or training on specific hardware
- you need model export to ONNX, OpenVINO, or TensorRT-LLM with minimal code changes
- you want post-training quantization or pruning of Transformers/Diffusers models
- you deploy on partner accelerators like Habana Gaudi, AWS Inferentia/Trainium, or AMD NPUs
When to avoid
- you only run small models on CPU where optimization overhead isn't worth it
- you need a runtime-agnostic serving solution rather than a Python optimization library
- your hardware has no Optimum integration and you'd rather use the vendor's native tooling directly
Facets
library · maturity active
machine-learning llm-inference llm-training gpu-computing cli machine-learning deep-learning large-language-models developer-tools gpu-computing python cross-platform huggingface transformers onnx onnxruntime openvino quantization model-optimization tensorrt-llm habana-gaudi aws-neuron diffusers hardware-acceleration gpu docker
10 sources
- readme: https://github.com/huggingface/optimum · fetched 2026-08-28 · 3fdf543a3c22
- homepage: https://huggingface.co/docs/optimum/main/ · fetched 2026-08-29 · 0745352332df
- site_page: https://huggingface.co/docs · fetched 2026-08-29 · bdec26667b98
- site_page: https://huggingface.co/docs/optimum/main/en/installation · fetched 2026-08-29 · c0d18670e822
- site_page: https://huggingface.co/docs/optimum/main/en/quicktour · fetched 2026-08-29 · 6a05f7280f6a
- site_page: https://huggingface.co/docs/optimum/main/en/notebooks · fetched 2026-08-29 · cbab2bebf550
- site_page: https://huggingface.co/docs/optimum/main/en/concept_guides/quantization · fetched 2026-08-29 · 52b134c39cb5
- site_page: https://huggingface.co/docs/optimum/installation · fetched 2026-08-29 · c0d18670e822
- site_page: https://huggingface.co/docs/optimum/v1.27.0/index · fetched 2026-08-29 · 68fd994cb0d2
- registry_pypi: https://pypi.org/pypi/optimum/json · fetched 2026-08-29 · 7d2ddc4f22b6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| huggingface/optimum | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="huggingface/optimum")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem