Overview of FP8 Quantization-Aware Training (QAT) for ERNIE 4.5
release/v1.5FP8 QAT is a method designed to enable efficient training of ERNIE 4.5 models (such as the 300B models) with significantly reduced hardware requirements.
Key Benefits
- Resource Efficiency: Enables SFT (Supervised Fine-Tuning) full-parameter tuning of 300B models using only 16 Hopper 80G GPUs. This represents approximately 17% of the hardware resources typically required for traditional BF16 mixed-precision training.
- Inference Performance: Supports tensor-wise static W8A8 FP8 inference without requiring quantization calibration. This method achieves a 1.17x speedup compared to block-wise dynamic FP8 quantization inference.
Memory Management Strategy
To minimize GPU memory consumption, the approach employs the following strategy:
- Model Parameters: Stored in FP8.
- Optimizer Moments and Gradients: Use BF16.
- Optimizer States: All optimizer states are offloaded to pinned memory to further reduce GPU memory usage.