Nestor G Pestelos Jr · ELI5

Phase 1: Building the Brain

Pre-Training

How an AI reads billions of web pages and books to absorb language, facts, and grammar before learning its actual job.

01 / The Raw Library

Feeding a supercomputer the public internet.

Before an AI can answer questions, engineers feed it trillions of words from encyclopedias, scientific journals, books, code, and web articles.

Wikipedia Books & Papers Open Codebases GPU TRAINING CLUSTER Thousands of GPUs Running for Months Processing 15,000,000,000,000 Tokens
How much data is that?

A human reading continuously for 80 years reads about 80 million words. A modern base model ingests more than 10 trillion words during pre-training. That is equivalent to over 100,000 human lifetimes of reading.

02 / The Guessing Game

Learning by playing fill-in-the-blank.

The computer does not have a human teacher. It learns by looking at a sentence, guessing the next word, and checking if it was right.

"On a sunny day, the sky is [ ? ]" MODEL GUESSES blue: 88% clear: 9% soup: 0.001% Actual next word in text: "blue" Model gets positive feedback for "blue"
Why next-token prediction teaches reasoning

To accurately predict the next word in a mystery novel, a medical study, or a computer program, simple memorization is not enough. The model must implicitly deduce the underlying physics, narrative structure, and deductive logic of the subject matter.

03 / Internal Tuning

Billions of tiny knobs adjust with every mistake.

Every time the model guesses wrong, an algorithm called backpropagation nudges billions of numerical weights to make better guesses next time.

Step 1: Wrong Guess Predicted "green" Step 2: Calculate Error High surprise penalty Step 3: Update Weights Nudge 70B parameters Repeated over trillions of words until the network stabilizes.
What are model parameters?

Parameters (or weights) are numbers that govern how strongly artificial neurons connect. In a 70-billion-parameter model, there are 70,000,000,000 independent mathematical weights being fine-calibrated during training.

04 / The Finished Base Model

Pre-training builds an autocomplete engine, not an assistant.

When pre-training finishes, the model is a walking encyclopedia, but it does not know how to follow user instructions yet.

USER PROMPT "What is the capital of France?" RAW PRE-TRAINED MODEL OUTPUT "...and what is its population?" "Question 2: Capital of Spain?" (Completes like a school quiz, doesn't answer!) To turn this wild autocomplete engine into a helpful assistant, we need Phase 1 Step 2: Fine-Tuning.
Why base models behave this way

A base model only optimizes for the statistical likelihood of what comes next on the web. On the internet, a question is frequently followed by another question (like an exam sheet or FAQ list). It takes fine-tuning to teach the model that it is supposed to answer the question.