Smooth-SwiGLU: Key to Stable FP8 Quantization

The Smooth-SwiGLU activation function, a modified SwiGLU, prevents outlier amplification during low-precision quantization, enabling stable FP8 training and boosting throughput by up to 34% in models like Llama2-7B.

The top 3

  1. Smooth-SwiGLU's Origin: Solving FP8 Outlier Amplification: Smooth-SwiGLU emerged to fix a critical instability in FP8 training of large language models, specifically the outlier amplification by the standard SwiGLU activation function that caused training divergence after approximately 200 billion tokens.
  2. Per-Channel Scaling: The Technical Edge for FP8 Stability: Smooth-SwiGLU stabilizes FP8 quantization by using per-channel, affine-scaled modifications and clipping the quadratic branch of the SwiGLU activation. This systematically restricts the activation dynamic range, preventing outlier amplification without altering the function's behavior.
  3. Throughput Boost: Up to 34% Faster FP8 Training: Smooth-SwiGLU enables FP8 training to achieve comparable accuracy to BF16 while delivering up to a 34% throughput improvement. For instance, Llama2-7B models on 256 Intel Gaudi2 accelerators showed this speed gain and a 30% reduction in optimizer memory.

Sources

Open the full topic