← all repositories
haykgrigo3/TimeCapsuleLLM

Training LLMs to forget the present

TimeCapsuleLLM trains language models exclusively on texts from specific historical eras so they speak with the vocabulary, biases, and blind spots of the period rather than modern hindsight.

2k stars Python Language Models
TimeCapsuleLLM
Not currently ranked — collecting fresh signals.
star history

What it does

TimeCapsuleLLM is a research project that curates period-specific text corpora—currently 90 GB of London writing from 1800 to 1875—and trains small language models from scratch on nothing else. The goal is to isolate the linguistic patterns, knowledge, and cultural assumptions of an era without contamination from modern concepts. Versions range from early nanoGPT prototypes to a 90-billion-token Llama-style model trained through 182 K steps.

The interesting bit

The project treats temporal bias as a feature, not a bug: by deliberately walling off training data, the model hallucinates in historically consistent ways. In one v1 prompt about 1834 London, the output referenced a real protest and Lord Palmerston—a genuine historical connection drawn from a dataset that never mentions smartphones or social media.

Key highlights

  • Built on successive architectures: nanoGPT (v0/v0.5), Microsoft Phi-1.5 (v1), and llamaforcausallm (v2).
  • v2 trained on 136,344 documents totaling 90 GB raw / 112 GB tokenized.
  • Custom tokenizer trained on the cleaned historical corpus to match period vocabulary.
  • Published dataset and bias reports (pronoun, geographic, temporal) available on Hugging Face.
  • Now expanding beyond London under academic supervision at Muhlenberg College and in collaboration with University College London.

Caveats

  • Outputs remain highly hallucinatory; facts are often invented even when the tone feels era-appropriate.
  • Earlier versions suffer from OCR noise (“Digitized by Google”) and tokenization glitches that insert spurious spaces between characters.
  • The repository is primarily data curation and tokenizer preparation; it defers the full training pipeline to upstream projects like nanoGPT.

Verdict

Historians, linguists, and ML researchers studying cultural bias should take a look. Anyone needing a reliable, factually accurate model should steer clear—this is a deliberate anachronism engine, not a trustworthy encyclopedia.

Frequently asked

What is haykgrigo3/TimeCapsuleLLM?
TimeCapsuleLLM trains language models exclusively on texts from specific historical eras so they speak with the vocabulary, biases, and blind spots of the period rather than modern hindsight.
Is TimeCapsuleLLM open source?
Yes — haykgrigo3/TimeCapsuleLLM is open source, released under the MIT license.
What language is TimeCapsuleLLM written in?
haykgrigo3/TimeCapsuleLLM is primarily written in Python.
How popular is TimeCapsuleLLM?
haykgrigo3/TimeCapsuleLLM has 2k stars on GitHub.
Where can I find TimeCapsuleLLM?
haykgrigo3/TimeCapsuleLLM is on GitHub at https://github.com/haykgrigo3/TimeCapsuleLLM.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.