GPT-2 Small
Standardize
×no parameters
Subtract each feature’s mean and divide by its standard deviation.
- in
- [B batch, T positions, 768 d]
- out
- [B batch, T positions, 768 d]
Sources2
Direct evidence
The feature statistics are a mean and a standard deviation per feature over valid positions of the validation set, the variance clamped at 10⁻⁴; features are standardized with them.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
With the feature model frozen, its hidden state is computed without gradient, standardized, and passed to the encoder; the same tensor is the target of the feature loss.
The implementation, pinned at revision e18c42acdfb7, not yet public