Gradient LabSign up free

ML glossary › Pretraining

What is pretraining in machine learning?

The first, huge training run where a model learns to predict the next token on vast amounts of text.

Where it shows up

Transformers and LLMs

Pretraining

pretraining starts with an enormous collection of text: books, websites, articles and code, adding up to trillions of tokens.

See pretraining in motion. The lesson animates it step by step, free.

Open the lesson