Skip to content
RAG Repo

RedPajama

RedPajama, from Together, arrives in two very different versions. V1 recreated the training recipe set out in the original LLaMA paper, mixing Common Crawl web text with Wikipedia, books, arXiv papers, GitHub code, and Stack Exchange question-and-answer threads into roughly 1.2 trillion tokens with a documented, known composition. It handed the open community a transparent alternative to closed training sets and seeded several early open models.

V2 is a different beast: a web-only corpus of more than 100 trillion tokens, drawn from 84 monthly Common Crawl snapshots across five languages (English, French, Spanish, German, and Italian). Rather than pre-filter, it ships 46 precomputed quality signals for each document, including language- identification scores, repetition and perplexity measures, and heuristic flags, so you set your own thresholds instead of inheriting someone else's editorial choices.

Both versions live on the Hugging Face Hub as JSONL and Parquet, with the pipeline code on GitHub. The datasets library is the natural way in, streaming rather than downloading given the scale. For retrieval with V2, the smart move is to treat the quality signals as your filter: load the metadata, pick thresholds that suit your domain (stricter for a polished knowledge base, looser for breadth), keep only the documents that pass, then deduplicate before you chunk and embed. V1 is easier if you want a ready, balanced mix without building a filter of your own.

The main caveat is that V2 is raw material, not a finished corpus: skip the filtering and you will index spam, boilerplate, and duplicates. On licensing, the pipeline code is Apache 2.0, but the underlying text keeps the licences of its original web sources, so commercial reuse of the content is not automatically clear and needs the same care as Common Crawl itself.

If you would rather not filter, SlimPajama is a cleaned, deduplicated 627-billion-token cut of V1, while Dolma and FineWeb are other filtered Common Crawl derivatives. Reach for RedPajama V2 when you specifically want full control over quality filtering at web scale.

web-crawlpretrainingmulti-sourceopen-reproductionquality-signals

Related sources