$npx skillfedfor your agent

optimum

Optimum Library is an extension of the Hugging Face Transformers library, providing a framework to integrate third-party libraries from Hardware Partners and interface with their specific functionality.

Worth itPyPI Artificial IntelligenceReleased Aug 20262.1M downloads / moApachePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — optimum-2.3.0-py3-none-any.whl
v2.3.0 · released 2026-08-04 · Python >=3.9.0 · 5 runtime deps: transformers, torch, packaging, numpy, huggingface_hub

Yes. Optimum is actively maintained, has no known vulnerabilities, and solves a real problem for anyone deploying HuggingFace models on non-standard hardware or needing quantization and export. The permissive Apache license and low install friction make it a low-risk addition. Install the base package for export capabilities, then add hardware-specific extras only when needed.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Hardware-specific features (ONNX Runtime, OpenVINO, Trainium, etc.) require additional optional dependencies installed separately.
  • Low install friction with a pure-wheel distribution.

License · maintenance · safety

Apache (permissive) — Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2026-08-04 (10 days) · last repo commit 2026-08-10 · 3,461 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,055,714 downloads/mo, #3,336 on PyPI

Verify before relying

pip install optimum

from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer

model = ORTModelForSequenceClassification.from_pretrained(
    "model_id", from_transformers=True
)
tokenizer = AutoTokenizer.from_pretrained("model_id")
outputs = model(**tokenizer("Hello world", return_tensors="pt"))
  • Performance gains and latency improvements for specific hardware targets and model sizes
  • Compatibility matrix and tested model architectures beyond Transformers
  • Memory overhead during export and optimization phases
Same gist for agents: .md · .json

What it is and what it does

Optimum is a framework that bridges HuggingFace models and specialized hardware accelerators, enabling efficient inference and training. It wraps Transformers, Diffusers, TIMM, and Sentence-Transformers to provide a unified interface for exporting models to optimized formats (ONNX, OpenVINO, ExecuTorch) and running them on diverse hardware—from Intel Gaudi HPUs and AWS Trainium to NVIDIA GPUs and edge devices. The core library handles the export logic and provides wrapper classes; hardware-specific optimizations are installed as optional extras.

Developers use Optimum when they need to deploy models beyond standard PyTorch inference—whether for quantization, pruning, cross-platform compatibility, or leveraging specialized accelerators. It abstracts away low-level hardware details while keeping the HuggingFace API familiar, so you can export a Transformers model and run it on Intel hardware or AWS instances without rewriting your inference code.

Use it for

  • Export Transformers models to ONNX format for cross-platform deployment and graph optimization
  • Run quantized models on edge devices using ExecuTorch or OpenVINO for reduced latency and memory
  • Accelerate training on AWS Trainium or Intel Gaudi HPUs with minimal code changes to the standard Trainer
  • Deploy optimized models on NVIDIA GPUs via ONNX Runtime with performance tuning
  • Integrate third-party hardware partner libraries (Intel, AWS, AMD) without managing separate APIs

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Optimum is actively maintained, has no known vulnerabilities, and solves a real problem for anyone deploying HuggingFace models on non-standard hardware or needing quantization and export. The permissive Apache license and low install friction make it a low-risk addition. Install the base package for export capabilities, then add hardware-specific extras only when needed.

Install

optimum on PyPI

Before you install

Low install friction with a pure-wheel distribution. Active maintenance with a recent release (10 days old) and steady repository activity. Depends on core libraries like transformers, torch, and huggingface_hub, which are standard in the ML ecosystem.

Requires Python 3.9 or later. Hardware-specific features (ONNX Runtime, OpenVINO, Trainium, etc.) require additional optional dependencies installed separately.

License in practice

Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install optimum

from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer

model = ORTModelForSequenceClassification.from_pretrained(
    "model_id", from_transformers=True
)
tokenizer = AutoTokenizer.from_pretrained("model_id")
outputs = model(**tokenizer("Hello world", return_tensors="pt"))

Verify before relying

  • Performance gains and latency improvements for specific hardware targets and model sizes
  • Compatibility matrix and tested model architectures beyond Transformers
  • Memory overhead during export and optimization phases

Package facts

LicenseApache permissive
Python supportSupports the current Python release >=3.9.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
transformerstorchpackagingnumpyhuggingface_hub
MaintenanceActively maintained 10 days since the last release
Last repo commit
First released
Downloads2,055,714 / month, #3,336 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Artificial Intelligence

Evidence: optimum-2.3.0-py3-none-any.whl

Tags

Capabilities
model optimization and exportaccelerated inference deploymentquantization and pruning toolshardware-specific model accelerationtransformers model optimizationonnx runtime integrationedge device model deployment
Topics
model-optimizationhardware-accelerationmodel-export
PyPI keywords
transformersquantizationpruningoptimizationtraininginferenceonnxonnx runtimeintelhabanagraphcoreneural compressoripuhpu

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “accelerated inference deployment”

  • optimumOptimum provides optimization tools to export and run Transformers,…
  • litert-lm-builderProvides Python tools for building, inspecting, and working with…
  • executorchExecuTorch exports and runs PyTorch models on mobile, embedded, and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also optimum-intel · optimum-onnx · optimum-quanto · onnxslim · onnxruntime-openvino · nvidia-modelopt · executorch · openvino · onnxruntime-genai · onnxruntime-gpu

Further reading