Reproduce “8-bit Optimizers via Block-wise Quantization” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Tim Dettmers, Mike Lewis, Sam Shleifer, Luke Zettlemoyer
FAIR and the University of Washington developed the first practical 8-bit optimizers, leveraging block-wise dynamic quantization and a stable embedding layer. These optimizers match the performance of their 32-bit counterparts across diverse deep learning tasks while significantly reducing GPU memory footprint by up to 8.5 GB for 1.5B parameter models and slightly accelerating training.
Key insights
- Block-wise quantization effectively isolates outliers, preserving precision for the majority of values and ensuring that the maximum value in each block is quantized without error, which is crucial for large model stability.
- Dynamic quantization, a non-linear approach, is essential for accurately representing the wide and non-uniform magnitude range of optimizer states, particularly for the second moment in Adam.
- The embedding layer is a primary source of instability in NLP models when using low-precision optimizers, necessitating specialized handling such as maintaining its optimizer states in 32-bit precision.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.