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

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.

Pretraining a language model requires processing gigabytes or terabytes of text without running out of system RAM. Chapter 5 of the Hugging Face LLM Course teaches you how Apache Arrow memory-mapping works under the hood, how to stream multi-hundred-gigabyte corpora without downloading them to disk, and how to apply parallelized `.map()` and `.filter()` transformations for dataset curation.

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 6 Module 6.1 (Dataset Engineering & Sharding)

Language:English
Access & Link Verification

100% free interactive chapters and code notebooks on Hugging Face.

Status: Verified (2026-11-09)

What You Will Learn from This Resource

  • Load, filter, clean, and shard large text corpora using memory-mapped Arrow tables.
  • Stream web-scale datasets on the fly without exhausting local disk or RAM.
  • Create custom dataset splits and tokenize corpora in parallel batches.

Recommended Prerequisites

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

  • Python, Pandas, and Phase 4 tokenization basics.

Topics & Keywords

DatasetsData EngineeringMemory MappingStreamingPretraining DataHugging Face
Curriculum Integration

How This Resource Fits Into Your AI & LLM Roadmap

Open Interactive Roadmap

Phase-Specific Study Recommendations (1)

Phase 6 · Resource 6.4Practice & Reference

Hugging Face Datasets Course Material

In Phase 6: Train Your Own LLM

Study directly alongside Module 6.1 (Dataset Engineering) to build memory-mapped and streaming data pipelines for `MyLLM v1`.

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:
Phase 4Course Module
Hugging Face
IntermediateFree Learning Material

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.

TokenizersBPEByte-Pair EncodingWordPieceUnigram
Your Status:
Phases 5, 6, 8Recommended StartUniversity Course Materials
Stanford University
AdvancedFree Learning Material

CS336 — Language Modeling from Scratch

Graduate-level Stanford course walking through every aspect of building language models from scratch: Transformer architecture, tokenization, pretraining data pipelines, GPU systems, parallelism, and scaling laws.

Used across:Phase 5 (5.2)Phase 6 (6.1)Phase 8 (8.1)
StanfordCS336Language ModelingPretrainingScaling Laws
Your Status: