AI engineering glossary · LLM training alignment

What is pretraining?

Pretraining (also called Pre-training): The first and most expensive stage of building a large language model, where the network learns from a huge unlabelled text collection by repeatedly predicting missing or next pieces of text. It produces a general-purpose model that knows grammar, facts and patterns, and is later specialised by fine-tuning and alignment.

Level: beginnerTopic: LLM training alignment

Pretraining: an example

A team trains a model on trillions of tokens of web pages, books and code for weeks on thousands of GPUs; the result can continue any text but does not yet follow instructions well.

Related terms

More LLM training alignment terms

Where you learn it

Pretraining is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.