Loops, not size11 minThinking Machines' Inkling 2 Mini runs its middle layers three times per token, activates just 3.4B parameters and ships under Apache 2.0 in a 20GB file. In hands-on tests it built a playable subway shooter its trillion-scale predecessor couldn't. Here's how looping works, the full test results and what hardware you need.Read now →

What Happens When You Train an AI Only on 1.1 Million YouTube Transcripts? A $27 Experiment Found Out
One engineer trained identical 230M-parameter language models on YouTube transcripts, Wikipedia and Stack Exchange for roughly $90 total, then compared them on science and common-sense tests. The surprise: data mattered more than anything else. Here's the whole build, the results and what it teaches.
Every big AI model you've used was trained on a huge slice of the internet. Code. Books. Math. Forum arguments. Somewhere in there, probably, somebody's family lasagna recipe.
Training one costs millions of dollars.
So one hobbyist engineer asked a funny question: what happens if you train a language model on nothing but YouTube? No web crawl, no books. Just 1.1 million video transcripts, with a budget of about $100.
The experiment produced a pair of outcomes that sound contradictory. The models were, by modern standards, pretty dumb. And yet they revealed something important about the thing that matters most in AI: the data.
Here's the whole build, step by step, with the numbers, the shortcuts, the results and what it teaches about how language models really work.
The setup: three identical brains, three different diets
The plan was clean and scientific. Build three identical language models, same architecture, same size, same training budget. Feed each a different dataset:
- Model one: 1.1 million YouTube video transcripts
- Model two: the full English Wikipedia
- Model three: Stack Exchange and Stack Overflow, the question-and-answer sites programmers relied on before AI assistants
Because everything else is held constant, any difference in behavior has to come from the data. Then run them through science exams and common-sense tests and see which, if any, makes sense.
The self-imposed budget: $100. For comparison, frontier labs spend nine figures. That forced one rule on everything that followed: make the code fast, because every second of rented GPU time costs money.
Problem one: where do you get 1.1 million transcripts?
There were two options.
Option A: download hundreds of thousands of videos, extract the audio, and run a speech-recognition model such as Whisper over all of it. That's an enormous amount of compute for a $100 project.
Option B: someone already did that.
He picked B. And the "someone" is real: Common Pile, a roughly 8-terabyte collection of public-domain and openly licensed text assembled by EleutherAI and collaborators. One of its pieces is a YouTube subset of about 1.13 million videos from more than 2,000 manually curated channels, totaling over 470,000 hours of speech, transcribed with Whisper. Only videos released under a Creative Commons license are included.
That licensing detail matters. AI training data is one of the most contested issues in technology, with lawsuits over scraped books, images and code. Common Pile exists to show that a capable model can be built entirely on legal, openly licensed text. EleutherAI used it to train Comma v0.1, a pair of 7-billion-parameter models, and reported performance competitive with similar models trained on unlicensed data.
The same corpus also supplied the Stack Exchange text. For Wikipedia, he downloaded the latest dump, stripped the markup with a standard extraction tool, and wrote a short script to remove leftover XML tags. By his own account, that took a whole day of work.
The transcripts themselves are a fascinating mix: lectures, vlogs, chess commentary, hardware tutorials, a one-hour class on a math topic. Spoken language, in other words, with all its rambling.
Problem two: the code was far too slow
This experiment is part of a longer project: building a language model from scratch, which the builder named Anton, with the eventual goal of a one-billion-parameter model. The first version was written in plain NumPy, a numerical library that runs on the CPU. That's perfect for learning the math underneath, since you write every operation by hand. It is terrible for speed.
He did some quick arithmetic:
- 1.1 million transcripts is roughly half a million hours of speech.
- That's about 5 billion tokens (the word-pieces models read).
- The NumPy code processed about 500 tokens per second.
- 5 billion divided by 500 is about 10 million seconds, or four months, for the small first version.
- The new version was about 80 times bigger, so the same approach would have taken roughly 20 years.
Twenty years isn't a budget. It's a joke. The fix had three layers.
Step 1: move to PyTorch and a GPU
He converted the code to PyTorch, the standard deep-learning library, so it could run on a graphics card. The syntax is similar; a linear layer looks nearly the same in both.
But he set himself rules to keep the project educational:
- No pre-built PyTorch layers. Build them.
- No pre-built optimizers. In one case, replacing a single line of library code meant writing about 60 lines to implement the AdamW optimizer himself.
- No pre-built flash attention. Build that too.
The one thing he let the library do was autograd, the system that automatically computes gradients. Without it, he'd need to derive and code every gradient by hand.
The conversion took about 300 lines and roughly a day. Even a basic GPU should reach around 10,000 tokens per second, turning 20 years into about a week.
Step 2: swap in modern architecture parts
Still not fast enough, and he also wanted a better model. Version one resembled the original GPT design, which he compared to a vintage car: pretty, and it works, but dated. So he swapped parts for the modern equivalents that most current open models use:
- Rotary positional embeddings (RoPE). The older approach encoded a token's absolute position with sine and cosine waves. RoPE encodes the relative distance between tokens, which tends to generalize better to longer contexts, handy when videos keep getting longer.
- SwiGLU feed-forward layers. The feed-forward block gets a gating mechanism and a smoother activation function. Why does it work better? He quoted the original paper's famously candid explanation: the authors "offer no explanation as to why these architectures seem to work," and attribute their success, "as all else, to divine benevolence." In other words, it works empirically; nobody fully knows why.
- RMSNorm instead of LayerNorm. Simpler, faster and with fewer parameters.
Step 3: the hardest part, writing flash attention
The core operation in a transformer is multi-head attention, the step where tokens "communicate" with each other. By default it builds enormous matrices that eat GPU memory and run slowly.
The fix is FlashAttention, an algorithm that computes the same result while avoiding storing those giant matrices. Normally using it is a single line in PyTorch.
He didn't take the single line. He spent two weeks learning how to write his own GPU kernels, studying a GPU programming language called Triton, profiling memory, and learning mixed-precision training, ultimately producing roughly 600 lines of code. The honest result: his version was still slower than PyTorch's, but it matched the memory use, which was the main goal.
After all the optimizations, on an A100 GPU, a full pass over the 5 billion tokens took about eight hours. The code had gone from 20 years to a working day.
The models: small, cheap and real
Meet Anton v2:
- 230 million parameters
- 12 transformer blocks
- 1,024-dimensional embeddings
- A 1,024-token context window
Training each model on 5 billion tokens cost:
- YouTube transcripts: about $27
- Stack Exchange/Stack Overflow: about $29
- Wikipedia: about $31
- Total: roughly $90, within budget.
The compute ran on a serverless GPU platform where you pay only for the seconds used. That matters for a clumsy builder: when his flash-attention code crashed three seconds after launch, it cost cents rather than a full hour's rental.
The fun part: who wrote what?
Then he asked each model to complete the same sentence: "Hi, my name is Anton."
- The YouTube model wrote that it was a PhD student at a Scottish university studying computer science, a perfectly plausible human introduction, with a wrong geography detail.
- The Wikipedia model gave a pseudo-etymology: that the name came from two old German names, then wandered off to a hill and an oak forest. Nonsense, but written exactly like an encyclopedia.
- The Stack Overflow model began with "I just wanted to say thank you for the response. It was very well thought out," which is how people reply on a help forum.
Each model had absorbed the voice of its data. It knew how to continue text in the style it had seen, and nothing else. The YouTube model, asked whether you should like the video and subscribe to the creator, said something like: the subscribe button is right there.
Anton 2.1: all the data together
The obvious next question: what if you combine everything?
Anton 2.1 kept the same architecture but trained on 15 billion tokens: YouTube, Wikipedia and Stack Overflow, plus open-source books, scientific articles and Creative Commons web crawl text. It trained for about 15 hours on an H100, costing roughly $60, a bit over budget, but call it a bonus round.
How do you test a tiny model?
Here's a truth that surprises newcomers: models this small can't really chat. Asked "what is 2 plus 2?", both Anton 2.1 and GPT-2 stumbled. For a model under a billion parameters trained for under $100, that's normal.
So how do you evaluate it? Rather than asking the model to produce an answer, researchers use log-likelihood scoring. Give the model a multiple-choice question and look at the probability it assigns to each answer option. Pick the one it considers most likely. It's a standard approach for small models because their open-ended answers are too noisy.
He ran a set of common benchmarks, including:
- SciQ, with thousands of science exam questions
- Social IQa, which tests social common sense
- HellaSwag-style everyday-language completion
The results
Unsurprisingly, Anton 2.1 beat all the single-source models. It saw three times more data, and more variety.
But the head-to-head comparisons are the interesting part, because the architecture was identical across the three originals:
- On science questions, the combined model beat the YouTube-only model by a lot. One example: asked what happens when mammals raise their hair with tiny skin muscles, the combined model answered "goosebumps" (correct); the YouTube-only model said "bleeding."
- On everyday language and common-sense tests, the YouTube-trained model actually beat the Wikipedia and Stack Overflow ones. Spoken transcripts are full of ordinary reasoning about daily life, and that's what those questions measure.
So: same brain, different diet, different strengths. Wikipedia produced encyclopedic writing, Stack Overflow produced help-forum replies, and YouTube produced conversational common sense.
How does it compare with GPT-2?
At roughly $60 and 15 billion tokens, Anton 2.1 landed around the level of GPT-2 small, which has about 124 million parameters, so Anton is nearly double the size. The builder noted GPT-2 reportedly used far more training text, and, unlike Anton, wasn't restricted to openly licensed data. Against GPT-3 small, he said it was a different story, though Anton beat it on some science benchmarks.
Treat that comparison carefully. Small-model benchmarks are noisy, the two models were trained and evaluated under different conditions, and "around GPT-2 level" is a rough statement, not a precise ranking. Even so, getting there for the price of a nice dinner for two would have been remarkable only a few years ago.
What the experiment teaches
1. Data shapes behavior more than you'd think. The models differed in nothing but their data, yet each had a distinct personality and different strengths. That's a miniature version of why labs guard their training mixtures so jealously.
2. Domain matters for what a model is good at. A model trained only on code Q&A is great at sounding like a forum. A model trained only on transcripts sounds like a talker.
3. Optimization is as important as ideas. The jump from 20 years to eight hours came from engineering, not new science: GPUs, efficient attention, modern layers.
4. Open data is genuinely usable. A reasonable small model can be trained entirely on Creative Commons and public-domain text.
5. Scale is a different world. A 230M model with a 1,024-token window is a toy next to today's frontier systems. The gap between "toy" and "ChatGPT-like" is mostly parameters, data volume, and post-training that teaches the model to follow instructions.
Practical takeaways
- Want to learn how LLMs work? Build a tiny one. Writing the layers yourself teaches more than any tutorial.
- Rent compute by the second. Serverless GPUs make small experiments cheap, especially when you're debugging.
- Start with open datasets. Common Pile and similar corpora come with documented licenses.
- Test with multiple-choice log-likelihood. It's the fair way to measure tiny models.
- Change one variable at a time. The three-model design is the right way to learn what the data does.
Counterpoints and limits
- It's one experiment. Single runs, small models, and noisy benchmarks mean the conclusions are suggestive, not definitive.
- YouTube transcripts are messy. Automatic speech recognition errors, filler words and repeated phrases all end up in the training text.
- Licensing is only part of the ethics debate. Creative Commons permits many uses, but creators and communities still argue about consent for AI training.
- Small models can sound fluent while being wrong, as the Scottish PhD student shows.
- Cost claims depend on the cheapest path. The $27 figure excludes the weeks of engineering time and the earlier experiments.
FAQ
Can you really train a language model for under $100? A small one, yes. Roughly 230 million parameters on 5 billion tokens cost about $27-$31 per model on rented A100 time. It won't match modern chatbots.
Is it legal to train on YouTube transcripts? This dataset only includes videos released under a Creative Commons license. Other YouTube content has different terms, and laws on AI training vary by country.
Why did the YouTube model do better on common-sense tests? Spoken language covers everyday situations and social reasoning, which is exactly what those tests probe. That is an interpretation, not a proven cause.
What is log-likelihood evaluation? Instead of asking for an answer, you compare the probabilities a model assigns to each multiple-choice option and pick the highest.
What comes next? The builder plans a larger, one-billion-parameter model, multi-GPU training and instruction tuning so it can answer questions properly.
The bottom line
A tiny model, a $90 budget and three kinds of text produced a lesson that big labs know well and rarely say out loud: the data is the personality. Same architecture, different diet, different mind.
The experiment also shows how far the cost curve has fallen. Ideas like RoPE, SwiGLU and FlashAttention, once the frontier, are now building blocks a determined individual can implement in weeks. The models are still small and still dumb. But for the price of a few lunches, anyone can now train a language model from scratch, watch it learn to talk, and finally see what's inside the machine.
Sources
- EleutherAI: The Common Pile v0.1
- Hugging Face: common-pile/youtube dataset card
- Hugging Face blog: Announcing the Common Pile and Comma v0.1
- Shazeer: GLU Variants Improve Transformer (arXiv 2002.05202)
- Su et al.: RoFormer, rotary position embedding (arXiv 2104.09864)
- Dao et al.: FlashAttention (arXiv 2205.14135)
- Radford et al.: Language Models are Unsupervised Multitask Learners (GPT-2)





