qmetrics.net

Optimum

Hugging Face hardware optimization tools for transformer models

Optimum screenshot

Optimum extends Transformers, Diffusers, TIMM, and Sentence Transformers with tools to export, quantize, and run models efficiently on specific hardware.

Overview

Optimum is an extension of Hugging Face Transformers, Diffusers, TIMM, and Sentence Transformers. It provides optimization tooling so training and inference on targeted hardware stay efficient while keeping the familiar Transformers-style APIs.

Accelerated inference covers several ecosystems. Models can be exported to ONNX and run with ONNX Runtime, optimized with OpenVINO on Intel hardware, deployed with ExecuTorch for on-device PyTorch inference, and tuned for Intel Gaudi HPUs, AWS Inferentia, and NVIDIA TensorRT-LLM. Export, graph optimization, and quantization can be done programmatically or from the command line. ONNX-related workflows have moved to a dedicated optimum-onnx package.

Accelerated training wraps the standard Transformers Trainer for hardware such as Intel Gaudi accelerators, AWS Trainium, and ONNX Runtime tuned for GPUs. Optional pip extras pull in accelerator-specific dependencies for OpenVINO, Habana, Neuron, AMD, FuriosaAI, and related stacks.

Optimum is distributed as a collection of packages aligned with hardware partners and open-source integrations, including ONNX Runtime, ExecuTorch, and Torch FX graph transforms, so teams can adopt specialized platforms without rewriting their model workflows.

Key features

  • ONNX export and ONNX Runtime classes
  • OpenVINO model optimization
  • ExecuTorch edge inference export
  • Intel Gaudi training wrappers
  • AWS Trainium and Inferentia support
  • NVIDIA TensorRT-LLM integration
  • Quanto quantization backend
  • Hardware-specific pip extras

Use cases

  • Faster transformer inference on CPUs
  • Edge deployment of Hugging Face models
  • Intel OpenVINO production pipelines
  • Cloud accelerator training jobs
  • Model quantization workflows

Tags

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0