|
Mila
Deep Neural Network Library
|
Transformer-owned shared activation workspace for GemmaBlock (pooling). More...
Public Types | |
| using | MR = typename DeviceTypeTraits<TDeviceType>::memory_resource |
| using | TensorType = Tensor<TPrecision, MR> |
Transformer-owned shared activation workspace for GemmaBlock (pooling).
One slot per block-graph position, shared by every layer: the inference path is strictly sequential, so exactly one block is live at a time and 47/48 of per-layer retained activations are never read again. Slots are sized [B, chunk, max(local, global) width]; components view prefixes (the GQA workspace max-geometry convention). The single stream slot is alias-safe: a block's input is last read at res_1 (mid-block) and only overwritten by its own res_2 at block end.