# Model Depth

- **Canonical URL:** https://getaimath.com/dictionary/model-depth/
- **Topics:** [Transformer Architecture](https://getaimath.com/dictionary/category/transformer-architecture/)
- **Last updated:** 2026-11-25

## What is Model Depth?

**In one sentence:** Model depth is how many layers, or Transformer blocks, a model has stacked on top of each other.

A deeper model can build more steps of understanding, one layer on top of another. But deeper models are slower, because each layer must finish before the next starts, and they can be harder to train.

![Transformers & Attention: The Smart Highlighter — Simple cartoon diagram showing how a Transformer reads a whole sentence at once and shines a bright highlighter beam from the word "IT" back to "trophy" so it knows what "IT" means.](https://getaimath.com/diagrams/transformer-architecture.png)
*Napkin Diagram (Transformer Architecture): Older AI read word-by-word and often lost track of earlier words; a Transformer highlights which words connect to which.*

## What is an example of Model Depth?

Llama 3 8B has 32 layers, while bigger models can have 80 or more.

## Why does Model Depth matter?

Depth is one of the two main ways to make a model bigger, along with width.

## Related Concepts

- [Intermediate Dimension](https://getaimath.com/dictionary/intermediate-dimension/): The intermediate dimension is the larger size that the feed-forward network expands each token to before shrinking it back.
- [Model Width](https://getaimath.com/dictionary/model-width/): Model width is how big each layer is, mostly set by the hidden dimension and number of attention heads.
- [Hidden State](https://getaimath.com/dictionary/hidden-state/): A hidden state is the list of numbers representing a token at some point inside the model.
- [Architecture Configuration](https://getaimath.com/dictionary/architecture-configuration/): An architecture configuration is the list of design settings that define a model's structure, like its number of layers, hidden size and attention heads.
- [Hidden Dimension](https://getaimath.com/dictionary/hidden-dimension/): The hidden dimension is the number of values used to represent each token inside the model.
- [Transformer Block](https://getaimath.com/dictionary/transformer-block/): A Transformer block is one repeated layer of a Transformer, usually made of attention, a feed-forward network, normalization and residual connections.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/model-depth/)
