MLX rms_norm
by Apple · Tool · Text & code
A fast built-in function that applies root-mean-square normalization to arrays, used inside transformer layers when running neural networks on Apple silicon or Linux.
Cost to run
Alternatives
mlx-m5-kernelsFused residual add + RMSNorm reached 131.6 GB/s (0.510 ms/layer on 2048x4096) with 2x better fp16 precision than unfused add + mx.fast.rms_norm