std1.0.0-beta-7 SafeC docs

std :: ml::gpu_mps

Function std::mps_linear_attn_state_bytes

#include <std/ml/gpu_mps.h> source ยท definition

unsigned long mps_linear_attn_state_bytes(unsigned long numHeads, unsigned long headDim)

Size of a linear-attention state: numHeads * (headDim^2 + headDim) floats (per head, S^T as [headDim][headDim] then z).