Engineering Leader Guide· a Bicycle Guide

Coming soon · Book Profile

Natural Language Processing with Transformers Building Language Applications with Hugging Face

A hands-on guide for data scientists and machine learning engineers to build, train, and optimize state-of-the-art language applications using transformer models with the Hugging Face ecosystem.

A profile of this book is on the way.

Get the book →

What it’s about

For any data scientist or ML engineer who wants to leverage the revolutionary power of transformer models but feels overwhelmed by their complexity, 'Natural Language Processing with Transformers' provides a clear, practical, and hands-on path to mastery. Written by core contributors at Hugging Face, this book demystifies architectures like BERT and GPT, guiding you through the entire lifecycle of an NLP project. You'll learn to use the Hugging Face ecosystem—Transformers, Datasets, Tokenizers, and Accelerate—to tackle real-world tasks like text classification, named entity recognition, question answering, and text generation. More than just fine-tuning, the book dives into critical production concerns, teaching you how to make models smaller and faster with distillation and quantization, how to handle multilingual data or scenarios with few labels, and even how to train a large language model from scratch on a custom dataset. This is the definitive guide to building production-ready language applications with the coolest technology around.

The through-line

Who it’s for
A data scientist or machine learning engineer who is proficient in Python and deep learning fundamentals. They have seen the impressive results of transformer models like BERT and GPT, but find it daunting to bridge the gap from research papers to applying these complex, state-of-the-art models to their own specific NLP problems and business use cases. They want to build powerful and efficient language applications without spending months reinventing the wheel.
The problem
Building production-ready NLP applications with state-of-the-art transformer models is hard. It requires implementing complex architectures, managing massive datasets, dealing with a fragmented ecosystem of incompatible tools, and optimizing models to meet strict performance and efficiency constraints. They feel overwhelmed by the rapid pace of NLP research and intimidated by the perceived complexity of transformers. They worry they are falling behind and lack a clear, practical path to leverage these powerful technologies in their work.
The plan
  1. Get started quickly by learning the core concepts of transformers and using the high-level `pipelines` from the Hugging Face ecosystem.
  2. Follow hands-on, task-oriented chapters to master fine-tuning transformers for core NLP applications like text classification, named entity recognition, summarization, and question answering.
  3. Learn critical techniques to optimize your models for production, including knowledge distillation, quantization, and graph optimization with ONNX.
  4. Tackle advanced, real-world scenarios like working with few labels, handling multilingual data, and training a large-scale transformer from scratch.
The payoff
Confidently building, training, and deploying sophisticated NLP applications using transformer models. · Solving complex language-based problems at work, from sentiment analysis to review-based QA and code autocompletion. · Becoming proficient in optimizing models for real-world production environments, balancing performance with efficiency.

See our guide

Related profiles we’ve built

Additional reading