Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluation
Quantization techniques can reduce the size of Deep Neural Networks and improve inference latency and throughput by taking advantage of high throughput integer instructions. In this paper we review the mathematical aspects of quantization parameters and evaluate their choices on a wide range of neural network models for different application domains, including vision, speech, and language. We focus on quantization techniques that are amenable to acceleration by processors with high-throughput integer math pipelines. We also present a workflow for 8-bit quantization that is able to maintain accuracy within 1% of the floating-point baseline on all networks studied, including models that are more difficult to quantize, such as MobileNets and BERT-large.
I NTEGER Q UANTIZATION FOR D EEP L EARNING I NFERENCE : P RINCIPLES AND E MPIRICAL E VALUATION Hao Wu1 Patrick Judd1 Xiaojie Zhang1 Mikhail Isaev2∗ Paulius Micikevicius1 1 2 NVIDIA Georgia Institute of Technology arXiv:2004.09602v1…
related reading
- [1806.08342] Quantizing deep convolutional networks for efficient inference: A whitepaperarxiv.org
- [2106.08295] A White Paper on Neural Network Quantizationarxiv.org
- lec06.pdfdropbox.com
- Quantization · Hugging Facehuggingface.co
- A Visual Guide to Quantization - by Maarten Grootendorstnewsletter.maartengrootendorst.com
- 2112.10769arxiv.org
- Achieving FP32 Accuracy for INT8 Inference Using Quantization Aware Training with NVIDIA TensorRT | NVIDIA Technical Blogdeveloper.nvidia.com
- Quantization from the ground upngrok.com
- Efficient LLM inferencefinbarrtimbers.substack.com
- The 4-bitter Lesson | humans&humansand.ai
- lec05.pdfdropbox.com
- A Guide to Quantization in LLMs | Symbl.aisymbl.ai