TimeCapsuleLLM: LLM trained only on data from 1800-1875
TL;DR Highlight
Trained from scratch only on 1800–1875 London texts to remove modern bias
Who Should Read
A backend or ML-adjacent developer who wants to train a small LLM from scratch on data from one era or domain
Core Mechanics
- Training from scratch on time-locked data
- Selective Temporal Training (STT) restricts all training data to one historical period.
- It used books, legal documents and newspapers from London, 1800–1875.
- Why not fine-tuning or LoRA
- A pretrained model like GPT-2 already holds modern knowledge that won't go away, according to the author.
- Training from scratch means the model doesn't pretend to be old, it just is.
- Each version scaled data and size
- v0 used about 187MB of data and 16M parameters; v0.5 used about 435MB and 123M.
- v1 used about 6.25GB and 700M; v2 used 90GB (136,344 documents) and 1.2B parameters.
- Up to v0.5 it only matched style
- v0 produced mostly incoherent sentences.
- v0.5 had Victorian style and grammar but a high hallucination rate, and OCR noise ("Digitized by Google") leaked into outputs.
- v1 first linked a real event
- The prompt "It was the year of our Lord 1834" produced London protests, petitions and Lord Palmerston.
- It was the first model to connect a real event with a real figure from the dataset.
- v2mini broke on tokenization
- v2mini-eval1 (15GB sample, 10K steps) output split words like "W ho is Charles D ic ens".
- eval2 (also 10K steps) repeated rheumatism and gout text for the prompt "Charles Darwin".
- Reproduction takes three steps
- Collect period texts and clean headers, footers and OCR errors.
- Build vocab.json and merges.txt with train_tokenizer.py, then train with nanoGPT or similar.
Community Reactions
- Commenters wanted better execution
- One commenter liked the concept but found the execution lacking.
- They asked for the raw dataset, a reproducible run script, data cleaning, chat post-training and a web demo.
- Data skew concern
- A commenter argued surviving records skew toward the few who could record and preserve their thoughts.
- They said the 1834 output reads like a newspaper because newspapers dominate the digitized data.
- Can a time-locked model rediscover science?
- Some commenters suggested training on pre-1900 data to see if it could derive relativity.
- Another commenter flatly said such a model cannot produce new science, claiming expert consensus.
- "Who art Henry" is ungrammatical
- A commenter noted "art" is second person singular, so it equals "who are Henry".
- They saw it as a poor example of period language.
- Related projects and how to run it
- One commenter asked how it differs from the history-llms project.
- Others asked for a way to run it in Ollama, llama.cpp or LM Studio.
How to Apply
- Write a period corpus cleaning script today
- Download a few Project Gutenberg texts and strip headers and footers with regex.
- List recurring phrases like "Digitized by Google" and remove them.
- Filter by time and place before training
- Attach publication year and region metadata to every document.
- Drop out-of-range documents and record how many remain.
- Check tokenizer output first
- Tokenize sample sentences, decode them and compare with the original before training.
- If letters get split apart, stop and fix it, since v2mini showed the damage.
- Build a modern-leakage prompt set
- Prepare about 10 prompts about concepts from after your cutoff.
- Run them on every checkpoint and record whether modern concepts appear.
Try It
# Paste into Claude or ChatGPT (simplified version of TimeCapsuleLLM's data cleaning approach)
The {{document}} below is a scan of an old text from {{period}} {{region}}.
Do the following.
1. List headers, footers, digitization marks like "Digitized by Google", and likely OCR errors.
2. List sentences that look like modern annotations or commentary.
3. Output a cleaned version with those removed. Do not change the original content.
4. Separately note any clues to the publication year.
{{document}}Terminology
Related Papers
Quadrillion-parameter transformers and how to train them
On fixed data, much bigger models with scaled weight decay and ensembling keep loss falling as compute grows.
Astra can read and write weights to improve Qwen
An LLM edited Qwen3.5-0.8B's weights directly, lifting MATH-500 from 7.9% to 48.1%.
Show HN: Qwen3-4B with the AI writing tics trained out
Distilling Qwen3-4B with LoRA cut its AI-writing slop score from 121 to 12.5 per 1000 words
Dust: Pretraining Transformers Without Backpropagation
Adding per-token noise to activations lets transformers pretrain without backpropagation, rivaling backprop.
Show HN: TurboGPT: train 22KiB transformer in 13s
A CUDA C++ project trains a tiny byte-level GPT in under a minute.
I had Gemini train its own replacement for $9
Fine-tuning GLiNER on $9 of Gemini labels reached 0.83 F1 locally.
Learning to solve hard problems in RL for LLMs by never giving up
Cutting compute on easy problems and retrying hard ones in RL raised accuracy on the hardest problems
Training a 3.8B LLM to 0.384 CORE for $998
A 3.8B LLM trained on 8 B200s in 43 hours for $998 scored 0.384 on CORE.