Hidden Dimension
What is Hidden Dimension?
In one sentence: The hidden dimension is the number of values used to represent each token inside the model.
Each token is stored as a list of numbers. The length of that list is the hidden dimension, sometimes called the model dimension. A bigger hidden dimension means each token can carry more detail, but the model gets larger and slower.
What does Hidden Dimension look like?
A model with a hidden dimension of 4,096 describes each token with 4,096 numbers.
Why does Hidden Dimension matter?
Hidden dimension is one of the main knobs that sets a model's size.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/hidden-dimension/">Hidden Dimension, explained simply</a> (The AI Math Dictionary)