Skip to main content

Hugging Face Transformers Tutorial for NLP in Python

Learn Hugging Face Transformers by building a support-message router in Python: pipelines, tokenizers, models, datasets and fine-tuning with the Trainer, then evaluating, sharing, speeding up and serving the model. Beginner-friendly parts, all on your own computer.

1 part · 30 min read

Start with Part 1
  1. Install Transformers and Run Your First Pipeline

    · 30 min read

    Start a Hugging Face Transformers project in Python: what Transformers, the Hub and pipelines are, install Transformers 5.24.1 and PyTorch 2.15.0 with uv, run your first pipeline on your GPU, and build the first version of a support-message router with zero-shot classification.