AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Catalog / Text

    WikiText-103 (2016)

    103 million words from 28,475 good and featured Wikipedia articles, kept whole.

    Why it matters

    Before it, the standard language-modeling benchmark was Penn Treebank: about a million words, all lower case, with numbers replaced by N and a 10k-word vocabulary. WikiText-103 is a hundred times bigger and keeps case, punctuation, numbers and whole articles, so models can use long context. Perplexity on it tracked the move from LSTMs to Transformers: Transformer-XL reached 18.3, and GPT-2 reported 17.5 without training on it at all.

    Get the data

    # pip install -U huggingface_hub
    hf download Salesforce/wikitext --repo-type dataset \
      --include "wikitext-103-raw-v1/*" \
      --local-dir wikitext
    Year
    2016
    Creators
    Stephen Merity, Caiming Xiong, James Bradbury, Richard Socher (MetaMind / Salesforce)
    Task
    Language modeling (predict the next word)
    Size
    28,595 articles (28,475 for training), ~103M training tokens, ~1.8M lines
    Splits
    train 1,801,350 · validation 3,760 · test 4,358
    Input
    Running text, one paragraph or heading per line
    Labels
    None. The next word is the target.
    License
    CC BY-SA 3.0
    Paper
    Pointer Sentinel Mixture Models

    Samples

    Showing 4 of 16 sampled rows(from 4,358 in the test split)

    Teku – local Indian tracker and independent witness at the trial ; previously the search party 's guide who had abandoned them when they insisted on entering uncharted regions of the jungle , he continued tracking them from a distance before revealing himself .

    The first text to suggest that Nero ordered the execution of an apostle is a letter by Clement to the Corinthians traditional dated to around 96 A.D. The apocryphal Ascension of Isaiah , a Christian writing from the 2nd century says , " the slayer of his mother , who himself ( even ) this king , will persecute the plant which the Twelve Apostles of the Beloved have planted . Of the Twelve one will be delivered into his hands " was interpreted to mean Nero .

    The attention Hitler is receiving , however , renews his strength , and when the trial begins , he brushes aside his " defence attorney " and begins a long speech in four parts in his own defence :

    In the 13th century , Manila consisted of a fortified settlement and trading quarter at the shores of the Pasig River , on top of previous older towns . Manila was then settled by the Indianized empire of Majapahit as referenced in the epic eulogy poem Nagarakretagama which inscribed its conquest by Maharaja Hayam Wuruk . Selurong " षेलुरोन ् ग ् " which is a historical name for the city of Manila is listed in Canto 14 alongside Sulot , which is now Sulu , and Kalka .

    What one record actually looks like (raw JSON, row 759)
    {
      "text": " Teku – local Indian tracker and independent witness at the trial ; previously the search party 's guide who had abandoned them when they insisted on entering uncharted regions of the jungle , he continued tracking them from a distance before revealing himself . \n"
    }

    Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.

    Sampled 2026-11-07 from Salesforce/wikitext at revision b08601e

    Worth knowing

    Related datasets

    Landmark papers