- in
- [B batch, T positions, 768 d]
- out
- [B batch, T positions, 768 d]
- parameters
- 4,723,968
- mode
- generation
Parameters
4,723,968 parameters per instance, across its learned components
| Component | Calculation | Parameters |
|---|---|---|
| LayerNorm | 1,536 | |
| Expansion | 2,362,368 | |
| Contraction | 2,360,064 | |
| Per-instance total | 4,723,968 | |
Derived from the pinned implementation’s constructors and configuration. The checkpoint’s tensors have not been counted. 306,011,162 of these parameters are trained; frozen GPT-2 and the decoder’s mask vector, 124,442,112, are not.
Explanation
The module normalizes its own input; its dropout of 0.1 between the activation and the second layer acts in training only.
Sources1
Direct evidence
The Perceiver blocks’ MLP: LayerNorm, an affine layer, exact GELU, dropout, an affine layer.
The implementation, pinned at revision e18c42acdfb7, not yet public