liveBook · Manning

Colossal Clean Crawled Corpus

As explained in Deep Learning with R, Third Edition

C4 is a large web-derived text dataset used for training and evaluating language models.

The Colossal Clean Crawled Corpus (C4) is a web-derived text dataset released by Google in 2020. Its roughly 750 GB scale supports language-model pretraining, although a practical mini-GPT exercise uses less than 1% of the corpus. section 16.2

A small C4-based training pipeline typically:

  • Downloads and extracts a reduced dataset containing 50 text shards, each about 75 MB. section 16.2

How Deep Learning with R, Third Edition covers it

How deep it goes
Explains downloading, inspecting, tokenizing, and batching a small subset, stopping short of processing the full 750 GB corpus.
Examples
Uses mini-C4 shards, a sample crawl document, SentencePiece token IDs, and fixed-length training sequences.
What you can do after
Apply it via R and Keras by downloading a subset, training a tokenizer, and preparing data for Transformer pretraining.
How it connects
Connects web corpora with GPT, SentencePiece, subword tokenization, and Transformer pretraining.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with R, Third Edition. The section links point to the parts of the book it draws on.