RepositoryPythonUSHoa Kỳ
huggingface

huggingface/optimum

🚀 Accelerate inference and training of 🤗 Transformers, Diffusers, TIMM and Sentence Transformers with easy to use hardware optimization tools

3.5ksao
727fork
259issue
8lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: graphcore

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: habana

#1 Repository của tuần

4
TINIX TRENDING·Chủ đề: intel

#4 Repository của tuần

⚡ Optimum — Bộ công cụ tối ưu phần cứng cho cả hệ sinh thái HuggingFace

Xuất mô hình, chạy inference, quantization — trên bất kỳ phần cứng nào — chỉ với một thư viện.

Optimum là phần mở rộng chính thức của HuggingFace cho Transformers, Diffusers, TIMM và Sentence Transformers, cung cấp bộ công cụ tối ưu hóa để huấn luyện và triển khai mô hình trên nhiều nền tảng phần cứng khác nhau. Dự án không giới hạn ở một loại accelerator duy nhất mà bao phủ từ GPU NVIDIA, Intel, AMD đến AWS Inferentia và Intel Gaudi — chỉ cần thay đổi tham số cài đặt pip.

✨ Điểm nổi bật

  • Hỗ trợ đa nền tảng: ONNX, ONNX Runtime, OpenVINO, NVIDIA TensorRT-LLM, AMD Instinct, AWS Inferentia, Intel Gaudi (HPU), FuriosaAI — mỗi nền tảng có gói cài đặt riêng biệt
  • Xuất mô hình linh hoạt: Hỗ trợ xuất Transformers, Diffusers, Sentence Transformers, TIMM sang ONNX và tối ưu đồ thị cùng quantization
  • Cài đặt đơn giản: pip install optimum cho chức năng cơ bản, thêm optimum[onnxruntime], optimum[openvino], optimum[habana]... để bật accelerator cụ thể
  • Hai chế độ sử dụng: Tối ưu và export vừa lập trình được, vừa có thể dùng qua command line
  • OpenVINO tích hợp sẵn: Tối ưu, quantize và triển khai mô hình trên phần cứng Intel mà không cần viết code thấp cấp
  • NVIDIA TensorRT-LLM: Chạy qua Docker huggingface/optimum-nvidia để tận dụng tối đa GPU NVIDIA
  • Tách biệt ONNX: Tính năng ONNX đã chuyển sang gói riêng optimum-onnx, giữ cho thư viện chính gọn nhẹ

💡 Vì sao đáng chú ý

Optimum giải quyết bài toán phân mảnh phần cứng trong hệ sinh thái HuggingFace. Thay vì mỗi nhà phát triển phải tự viết code export và tối ưu cho từng nền tảng, Optimum cung cấp một API thống nhất — chuyển đổi mô hình từ Transformers sang ONNX, OpenVINO hay TensorRT chỉ với vài dòng lệnh. Điều này rút ngắn đáng kể thời gian từ prototype đến triển khai thực tế.

Dự án đặc biệt hữu ích khi cần triển khai mô hình trên phần cứng không phải GPU tiêu chuẩn — Intel Gaudi, AWS Inferentia hay AMD Instinct — nơi mà việc tối ưu thủ công sẽ rất phức tạp. Với hệ thống dependency theo accelerator, người dùng chỉ cài đúng gì cần dùng, tránh lãng phí tài nguyên.


#ONNX #Transformers #Inference #Quantization #OpenVINO #HuggingFace #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
156.6M
Jun 1, 2026
Modeltext-ranking
cross-encoder/ms-marco-MiniLM-L6-v2

Cross-Encoder for MS Marco This model was trained on the MS Marco Passage Ranking(https://github.com/microsoft/MSMARCO-Passage-Ranking) task. The model can be used for Information Retrieval: Given a query, encode the query will all possible passages...

♥0
52.2M
Aug 9, 2026
Modeltext-generation
openai-community/gpt2

GPT-2 Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in this paper(https://d4mucfpksywv.cloudfro...

♥0
30.7M
Feb 19, 2024
Modelfill-mask
google-bert/bert-base-uncased

BERT base model (uncased) Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in this paper(https://arxiv.org/abs/1810.04805) and first released in this repository(https://github.com/google-resear...

♥0
32.4M
Feb 19, 2024
Modelfeature-extraction
BAAI/bge-small-en-v1.5

FlagEmbedding Model List | FAQ | Usage | Evaluation | Train | Contact | Citation | License More details please refer to our Github: FlagEmbedding(https://github.com/FlagOpen/FlagEmbedding). If you are looking for a model that supports more languages,...

♥0
41.7M
Feb 22, 2024
Modelsentence-similarity
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2

sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic se...

♥0
24.4M
Jan 28, 2026
RepositoryPython
vllm-project/vllm

A high-throughput and memory-efficient inference and serving engine for LLMs

98.0k
Dec 2, 2026
RepositoryPython
hiyouga/LlamaFactory

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

76.3k
Dec 1, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026