# Weight Matrices

- **Canonical URL:** https://getaimath.com/dictionary/weight-matrices/
- **Topics:** [Parameters, Weights & Model Size](https://getaimath.com/dictionary/category/parameters-weights-and-model-size/)
- **Last updated:** 2026-11-25

## What is Weight Matrices?

**In one sentence:** Weight matrices are grids of numbers that hold the weights connecting one layer of a model to the next.

Most of a neural network's work is multiplying numbers by these grids. In a Transformer, attention and feed-forward layers each have several weight matrices. GPUs are designed to multiply matrices extremely fast.

![What "7B" or "70B Parameters" Means: Brain Size vs. Bag Size — Simple cartoon comparing 3 AI model sizes: Small (3B–8B parameters, fits on a phone or laptop), Medium (30B–70B, needs a strong desktop GPU), and Giant (400B+, lives in a massive data center).](https://getaimath.com/diagrams/parameters-weights-and-model-size.png)
*Napkin Diagram (Parameters, Weights & Model Size): Parameters are the brain cells of an AI model—more parameters mean more knowledge, but need a bigger computer to hold them.*

## What is an example of Weight Matrices?

A layer that connects 4,096 inputs to 4,096 outputs uses a 4,096 by 4,096 weight matrix with about 16.8 million numbers.

## Why does Weight Matrices matter?

Weight matrices are where nearly all of a model's parameters live.

## Related Concepts

- [Weight Initialization](https://getaimath.com/dictionary/weight-initialization/): Weight initialization is how a model's weights are set before training starts.
- [Checkpoint](https://getaimath.com/dictionary/checkpoint/): A checkpoint is a saved copy of a model's weights, and often its training state, at a particular moment.
- [Weight Tying](https://getaimath.com/dictionary/weight-tying/): Weight tying uses the same weights for a model's input word embeddings and its output word predictions.
- [Raw Model Weights](https://getaimath.com/dictionary/raw-model-weights/): Raw model weights are the original trained numbers of a model, usually stored at full or half precision, before any compression.
- [Parameter Sharing](https://getaimath.com/dictionary/parameter-sharing/): Parameter sharing means using the same set of weights in more than one place in a model.
- [FP32](https://getaimath.com/dictionary/fp32/): FP32 is a 32-bit floating point number format that stores numbers with high precision.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/weight-matrices/)
