Skip to main content
Primary: Phase 4Course ModuleIntermediateFree Learning Material
Hugging Face

Tokenizers — Hugging Face LLM Course

Dedicated technical module diving deep into subword tokenization algorithms: Byte-Pair Encoding (BPE), WordPiece, Unigram, normalization, pre-tokenization, and building tokenizers from scratch.

Chapter 6 of the Hugging Face LLM Course focuses exclusively on the internals of modern tokenizers. It walks step by step through the tokenization pipeline (normalization, pre-tokenization, model, post-processing) and compares BPE, WordPiece, and Unigram algorithms with code implementations—making it the ideal companion to Milestone #7 (Custom BPE Tokenizer).

Resource Tracking

Course status is tracked independently from roadmap topic checkboxes so you can mark external courses without altering your topic mastery percentage.

Suggested Learning Position

Phase 4 Module 4.2 Dedicated Tokenization Reference

Language:English
Access & Link Verification

100% free interactive module with runnable code notebooks on Hugging Face.

Status: Verified (2026-11-09)

What You Will Learn from This Resource

  • Implement the Byte-Pair Encoding (BPE) merge algorithm and vocabulary construction.
  • Compare BPE, WordPiece, and SentencePiece/Unigram subword tokenizers.
  • Train a custom tokenizer on a raw text corpus and inspect token fertility.

Recommended Prerequisites

Review these foundations before starting so you get the most out of this material:

  • Python strings, UTF-8 basics, and Phase 4 Module 4.1.

Topics & Keywords

TokenizersBPEByte-Pair EncodingWordPieceUnigramHugging Face
Curriculum Integration

How This Resource Fits Into Your AI & LLM Roadmap

Open Interactive Roadmap

Phase-Specific Study Recommendations (1)

Phase 4 · Resource 4.5Practice & Reference

Tokenizers — Hugging Face LLM Course

In Phase 4: NLP & Language Modeling

Study directly alongside Module 4.2 when implementing your Custom BPE Tokenizer (Milestone #7).

Continue Exploring
Browse Full Library
Phase 4Recommended StartInteractive Course
Hugging Face
IntermediateFree Learning Material

Hugging Face LLM Course

Comprehensive open interactive course covering Transformer models, tokenization pipelines, datasets, fine-tuning, and the open-source LLM ecosystem.

Hugging FaceNLPLanguage ModelingTokenizationTransformers
Your Status:
Phases 3, 4, 5Recommended StartVideo Series
Andrej Karpathy
IntermediateFree Learning Material

Neural Networks: Zero to Hero

A code-first introduction to neural networks covering automatic differentiation, backpropagation, language models, and GPT implementations.

Used across:Phase 3 (3.1)Phase 4 (4.3)Phase 5 (5.1)
Andrej KarpathyMicrogradMakemoreBackpropagationAutograd
Your Status:
Phase 6Course Module
Hugging Face
IntermediateFree Learning Material

Hugging Face Datasets Course Material

Dedicated course chapter on loading, slicing, filtering, deduplicating, streaming, and memory-mapping massive text datasets using Apache Arrow and Hugging Face Datasets.

DatasetsData EngineeringMemory MappingStreamingPretraining Data
Your Status: