AIAny
Icon for item

WikiText

Curated English Wikipedia text prepared for language-model training and evaluation, provided in WikiText-2 and WikiText-103 variants. Preserves original case, punctuation and numbers; offers raw and tokenized splits for long-range language modeling under a CC BY‑SA license.

Introduction

The core insight: WikiText packages verified Good and Featured Wikipedia articles into researcher-friendly train/validation/test splits so models can learn and be evaluated on long-range, natural encyclopedia text rather than short, heavily preprocessed corpora.

What Sets It Apart
  • Full-article source: built from Good and Featured Wikipedia articles, yielding over 100 million tokens across configurations, which helps models learn longer-term dependencies compared with heavily truncated corpora. This is why WikiText-103 is ~110× larger than the classic PTB corpus and WikiText-2 is >2× larger.
  • Two scales and two variants: offered as WikiText-2 and WikiText-103, each with “raw” (original tokens) and non-raw (vocabulary-limited with <unk> substitution) versions, letting you choose between character/byte-level and word-level experiments.
  • Practical dataset metadata: explicit train/validation/test splits (e.g., wikitext-103 train: 1,801,350 examples; validation: 3,760; test: 4,358; wikitext-2 train: 36,718 examples) and measured download/generated sizes make budgeting and benchmarking easier.
  • Minimal preprocessing: preserves case, punctuation and numbers to better reflect real-world text distributions used in language modeling.
Who It's For and Tradeoffs

Great fit if you need an English-language benchmark for language-model pretraining, perplexity evaluation, or experiments that rely on long-range context (researchers comparing architectures or sequence lengths). Look elsewhere if you need domain-specific, multilingual, or privacy-filtered corpora—WikiText is encyclopedia text and inherits topical and stylistic biases of Wikipedia. Also note the licensing (CC BY‑SA / GFDL) requires attribution and share‑alike considerations for derivative datasets or commercial redistribution.

Where It Fits

Use WikiText for baseline LM training, ablation studies on context length, or masked/language-modeling benchmarks. For large-scale production pretraining you may combine it with web-scale crawls or domain data; for low-resource languages or non-encyclopedic domains, choose more targeted corpora instead.

Information

  • Websitehuggingface.co
  • OrganizationsSalesforce
  • AuthorsStephen Merity, Caiming Xiong, James Bradbury, Richard Socher
  • Published date2022/03/02

Categories

More Items

Hugging Face

A curated collection of Spanish, Portuguese, and English texts for language-model training focused on Latin America. The Hugging Face release contains about 143 million records; the full pretraining corpus is approximately 296.5 billion tokens.

Hugging Face

Provides 6,095 competitive-programming examples with solutions and reasoning traces generated by DeepSeek-V4.1-Flash-1017. Intended for supervised fine-tuning and reasoning distillation; generated reasoning and code still need independent verification.

Hugging Face

Pairs Three.js scene prompts with curated reasoning traces, HTML/JavaScript outputs, and rendered references. Its family-held-out validation split helps test generalization beyond examples closely related to the training data.