Sampler › Denoiser
learned
One of 12 blocks: self-attention and an MLP on the latents, each normalized, then scaled and shifted by the time, and each update gated by the time before it is added.
All 24 steps
- in
- [B batch, T positions, 768 d] [B batch, 768 features]
- out
- [B batch, T positions, 768 d]
- parameters
- 10,626,816 · × 12 blocks = 127,521,792
Parameters
10,626,816 parameters per block, across its learned components
| Component | Calculation | Parameters |
|---|---|---|
| Time projection | 3,543,552 | |
| LayerNorm | 768 | |
| Self-attention | 2,359,296 across its components | 2,359,296 |
| LayerNorm | 768 | |
| MLP | 4,722,432 across its components | 4,722,432 |
| Per-instance total | 10,626,816 | |
Across 12 independent blocks: parameters.
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.
Sources4
Direct evidence
A block owns two gain-only LayerNorms, a fused query–key–value projection and an output projection without bias, an MLP of the configured kind, and, with modulation, an affine layer from the time condition to six vectors, initialized at zero.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
A block normalizes, modulates by the time condition’s shift and scale, projects to queries, keys and values, rotates queries and keys, attends over all positions with softcap, and adds the projected output scaled by a gate; the MLP branch does the same with its own shift, scale and gate.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
The denoiser’s stack applies the blocks in order and then the output layer, each with the time condition.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
Diffusion: self-conditioning on, `t_min` 0.05 and `eps` 10⁻⁵; the adaptive time sampler has 100 bins, a minimum weight of 0.0001, an EMA of 0.9 and updates every 5,000 steps; the denoiser’s EMA decay is 0.9999; scheduler `tanh` with d = 3, solver `euler`, `ode_sampling` false, N = 128 by default; the denoiser has 12 blocks of width 768 with 12 heads, time conditioning `adaln`, a standard MLP, softcap 50 and self-conditioning by concatenation; the timestep embedding’s `max_period` is 10.
The implementation, pinned at revision e18c42acdfb7, not yet public