Archived
A w4a8 linear is fed by rmsnorm then quant_act_i8, two single-row dispatches at a decode batch; in a sandwich-norm model (Gemma 2/3/4) the residual junction in front adds a post-norm, the add and a layer scalar, five dispatches at every junction. rmsnorm_quant_i8 is that chain in one pass over the row, with the junction optional (w_post, scalar and the residual operand). Byte-identical to the chain it replaces: the same row partition (r4d_act_threads) and a bf16 rounding wherever the chain stores. The selftest compares it against the chain at three forms x M 1/8/40.