TheLantern Why does my model sound like the news?
Most tutorials make training a language model look like four steps:
Download a dataset. Load a tokenizer. Create a dataloader. Train the model.
Simple, right?
Real projects rarely start that way. They start with raw text, and raw text is messy. My whole week on LinkedIn was about that mess, so this letter is too.
On Tuesday I wrote about where training really starts. When I began building Qal, my Tigrinya language model, the first hard problem was getting the data into a form the model could actually learn from. Most real datasets go through some version of this:
- Collect the text
- Extract the useful content
- Filter the language or script
- Remove duplicates
- Normalize characters and punctuation
- Remove low-quality text
- Check for sensitive or private content
- Think about the data mixture
- Split carefully into train, validation and test
- Manually inspect samples
- Train a tokenizer and inspect the tokens
That’s 11 steps before training even begins (the tutorials had four).
By the end, you’re working with a dataset you intentionally built. And the model learns from every decision you made: what you kept, what you removed, what you normalized and what you overrepresented.
So how much did all that leave me with?
On Wednesday I shared the size of Qal’s whole training corpus: 70 million tokens. For context, here’s what some modern small language models were trained on:
- Gemma 2 2B: ~2 trillion tokens
- Phi-3 Mini 3.8B: ~3.3 trillion tokens
- SmolLM2 1.7B: ~11 trillion tokens
- Qwen2.5: up to ~18 trillion tokens
For English, 70 million tokens is a rounding error. For Tigrinya, it’s meaningful, and still painfully limited.
With trillions of tokens, scale can absorb a noisy page here or a duplicated paragraph there. With 70 million, those problems stay in the data and start to dominate:
- A duplicate repeats.
- A header becomes signal.
- A page number becomes vocabulary.
- A news-heavy corpus changes the model’s voice.
That last one is the one you can hear. If you tried the Qal demo and it sounded like the evening news, there’s a reason, and on Thursday I explained why.
Qal learned from the public Tigrinya text I could find:
- TLMD: ~2M lines, ~40M tokens
- Tigrinya Sentences: ~715K lines
- An English-Tigrinya Bible corpus: ~262K lines
- TiQuAD: question-answer pairs with context passages
Most of it is news, with a large share from the newspaper Haddas Eritrea. The Bible corpus adds shorter verse-like lines and religious vocabulary, and TiQuAD adds question-answer structure with much less volume. There’s very little casual writing, so the model sees few examples of how people text, ask, joke and explain.
You can see the imbalance in the word clouds:
So Qal learned to sound formal (evening-news formal), because formal public writing is most of what it read. Four datasets don’t automatically give you four balanced signals.
The question I ask now, before anything else, is the one I ended Tuesday’s post on:
“What behavior am I trying to teach the model, and what data actually supports that behavior?”
Part 2 of Building Qal, my blog series on Substack, went live on Thursday with all of it: the sources, the cleaning, duplicate removal, character normalization, the final corpus and the code.
Turns out those four tutorial steps were the easy part. A model’s voice gets decided long before step one.
Maybe one day I’ll teach Qal to text like a normal person 😂
Talk soon,
Fanus
P.S. What’s the smallest dataset you’ve ever trained a model on? Mine was 70M tokens, and it still felt tiny. Reply with your number in the comments or by email. Smallest one wins bragging rights.
this week's sources
$ Get the next one in your inbox
The Lantern goes out once a week, along with each new part of Building Qal. Unsubscribe anytime.