Live Coding Multi-Head Self-Attention (in zero-dependency Pure Numpy or PyTorch) is the premier benchmark live-coding problem in MLE senior interviews; candidates must implement the full attention pipeline from scratch: 1) Linear Projections: projecting input X∈RB×L×dmodel into Q,K,V; 2) Multi-Head Tensor Reshaping: reshaping and transposing to (B,H,L,dk) where dk=dmodel/H; 3) Scaled Dot-Product Scoring: computing S=dkQKT and applying upper-triangular causal masks with −∞; 4) Numerically Stable Softmax and Value aggregation: Attention(Q,K,V)=softmax(S)V; 5) Multi-head tensor concatenation and final output linear projection WO.