Meta

Open-sourcing FBGEMM for state-of-the-art server-side inference

Nov 7, 2018Daya S Khudia, Protonu Basu, Summer Deng
Open-sourcing FBGEMM for state-of-the-art server-side inference
SummaryAI, from the source post

This post introduces and open-sources FBGEMM, a high-performance kernel library specifically optimized for server-side inference of deep learning models. It focuses on efficient low-precision calculations (e.g., INT8, FP16) and matrix-matrix multiplications (GEMM), which are critical for fully connected operators in deep learning models. FBGEMM achieves over 2x performance gains compared to the existing production baseline by optimizing for contemporary CPU architectures, exploiting cache locality, and fusing compute with bandwidth-bound operations like packing. It also supports accuracy-loss-minimizing techniques like row-wise quantization and outlier-aware quantization. The library is deployable with Caffe2 and will soon be callable by PyTorch 1.0.

More from the AI Research and Development trail