# Pre-Training

> The Pre-Training is the first and most expensive stage of training a model on huge amounts of general data.

## What is pre-training in LLMs?

The first stage of training where a model learns language, facts and patterns from a huge general dataset, for example by predicting the next token. Produces a base model that is then adapted during post-training.

- Topic: Training & Architecture
- Type: process

## Interview questions

### What is the difference between pre-training and fine-tuning?

Pre-training teaches general language and knowledge from huge data. Fine-tuning adapts the pre-trained model to a specific task with much less data.

### What does a model learn during pre-training?

It learns to predict the next token, and through that it picks up grammar, facts, coding patterns and some reasoning ability.

### What is a base model?

A base model is the result of pre-training only. It continues text well but does not follow instructions reliably until post-training.

## Related cards

- [Post-Training](https://wonderium.dev/ai/post-training.md)
- [Fine-Tuning](https://wonderium.dev/ai/fine-tuning.md)
- [Foundation Model](https://wonderium.dev/ai/foundation-model.md)
- [Knowledge Cutoff](https://wonderium.dev/ai/knowledge-cutoff.md)
- [Dataset](https://wonderium.dev/ai/dataset.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/pre-training
- Last updated: 2026-11-25
