Hugging FaceJulien SimonAnnouncement
Intel and Hugging Face Partner to Democratize Machine Learning Hardware Acceleration
Summary
Intel has joined Hugging Face's Hardware Partner Program to accelerate Transformer training, fine-tuning, and inference on Intel platforms. Large Transformer models introduce latency bottlenecks in production workloads like search and chatbots, where hardware-level optimization typically requires tedious trial and error. To streamline model optimization, the collaboration introduces Optimum Intel, an open-source library integrating the Intel Neural Compressor for automated quantization, pruning, and distillation. A demonstration applies post-training dynamic quantization to a fine-tuned DistilBERT classification model using a CPU-only PyTorch setup. The quantized model converted 38 Linear and 2 Embedding operators to 8-bit integers, reducing evaluation duration by 1.34x while keeping the accuracy drop within a 5% threshold.
Context
Large Transformer models create production challenges for latency-sensitive applications like search and chatbots. Latency optimization is notoriously difficult for machine learning practitioners, requiring extensive trial and error even with deep hardware and framework knowledge.
Approach / What changed
Hugging Face and Intel released Optimum Intel, an open-source library built on Intel Neural Compressor. It integrates automated accuracy-driven compression techniques such as quantization, pruning, and knowledge distillation directly into Transformer workflows for Intel Xeon CPUs and Habana Gaudi accelerators.
Takeaways
Habana Gaudi accelerators provide up to 40% better price-performance than GPUs for Transformer training.
Optimum Intel builds on Intel Neural Compressor to automate compression methods like quantization, pruning, and distillation across deep learning frameworks.
Dynamic quantization of a DistilBERT model with Optimum Intel converted 38 Linear and 2 Embedding operators to INT8, achieving a 1.34x evaluation speedup with an accuracy drop from 0.574 to 0.546.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.