Back to blog
Part 1 of 6LLMsTraining

How does the internet fit inside an LLM?

5 August 2026 | 3 min read | Updated 13 August 2026

Training is like squeezing a huge library into a small suitcase. The pages do not travel with it, but many patterns do.

Pre-training

The internet
a huge library
Guess the next word
billions of times
Trained model
compressed patterns

Like squeezing a library onto a pen drive: the original pages are not stored neatly, but many of their patterns remain.

It starts with a guessing game

Before we can chat with an LLM, it has to be trained. Imagine giving it an enormous library of writing: articles, books, websites, code and other examples of how people use language.

The model plays one game again and again. Hide the next piece of text, make a guess, compare the guess with the real answer, then adjust slightly. Training repeats this across a vast number of examples.

The training loop

Guess, check, adjust, repeat

1

Hide the next piece

2

Let the model guess

3

Compare and adjust

Training improves the model through many small corrections.

The library becomes patterns

The finished model does not carry a tidy copy of every webpage. It is closer to a heavily compressed version of what it saw. Think of squeezing a library onto a small pen drive. You cannot open the original books, but the model has kept many relationships between words and ideas.

It learns that Paris often appears near France, that recipes tend to contain ingredients and steps, and that questions are often followed by answers. Those relationships are held in the model as numbers.

What compression keeps

Pages go in. Patterns come out.

LIB

Original library

individual pages and exact wording

LLM

Trained model

compressed relationships and patterns

The model keeps learned relationships, not a searchable copy of the library.

Compression explains the weak spots

If the training library was packed last year, the model does not automatically know what happened this morning. It needs fresh information from a search tool, document or database.

Compression can also lose detail. A model may reproduce the shape of a fact without preserving the exact fact. That is how a fluent answer can still be wrong.

Two limits to remember

Old library, missing detail

DATE

Cut-off

new events are outside the packed library

?

Lost detail

a plausible pattern may replace an exact fact

Fresh facts need a fresh source, and important details need checking.

Do not take the suitcase literally

There is no tiny library hidden inside the model. The suitcase picture only helps us understand how a lot of training material can shape a much smaller set of learned numbers.

Training gives the model broad patterns. It does not yet teach the model how to behave like a helpful assistant. That comes next.

About the author

I’m Rama, an AI engineer and product builder. I turn complicated AI ideas into explanations and systems that people can understand, trust and use.

More about me

Read next

How does a base model learn to answer us?

A base model can continue text. To make an assistant, people show it what a useful question and answer look like.

Continue reading →