# Model Width

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

## What is Model Width?

**In one sentence:** Model width is how big each layer is, mostly set by the hidden dimension and number of attention heads.

A wider model can handle more information in each layer at once. Width and depth together decide the model's size. Wider layers also suit GPUs well because they can do lots of math in parallel.

![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 Width?

A model with a hidden dimension of 8,192 is wider than one with 4,096.

## Why does Model Width matter?

Builders balance width and depth to get the best model for their compute budget.

## Related Concepts

- [Model Depth](https://getaimath.com/dictionary/model-depth/): Model depth is how many layers, or Transformer blocks, a model has stacked on top of each other.
- [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.
- [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.
- [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.
- [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-width/)
