Hugging FaceBritney MullerExplainer
Machine Learning Experts - Lewis Tunstall
Summary
In this interview with Britney Muller, Hugging Face machine learning engineer Lewis Tunstall discusses his background, his book Natural Language Processing with Transformers, and tooling optimizations for deploying transformer models. Tunstall notes that large model parameter sizes often lead to high latency, making off-the-shelf transformers impractical for responsive applications like chatbots. To resolve this issue, he developed single-line export tooling within the transformers library to convert models into the ONNX format. This conversion enables engineers to run PyTorch models in TensorFlow or on specialized hardware, achieving faster latency and higher throughput. Tunstall also recounts co-authoring the O'Reilly book with Leandro von Werra and Thom Wolf, collaborating on the Hugging Face Course, and training a GPT-2 model named code parrot on Python code.
Context
Off-the-shelf transformer models possess large parameter counts that cause high latency and sluggish responses, presenting significant deployment challenges for production applications such as chatbots.
Approach / What changed
Tunstall implemented a single-line export feature in the transformers library that converts PyTorch models into the ONNX format, allowing deployment to TensorFlow or dedicated hardware to optimize latency and throughput.
Takeaways
Transformer parameter sizes cause latency issues in production applications like chatbots when using unoptimized models.
The Hugging Face transformers library added one-line export functionality to convert PyTorch models to the ONNX format for deployment on dedicated hardware.
Tunstall co-authored the book Natural Language Processing with Transformers after identifying an information gap in learning materials for the architecture.
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.