QPyTorch: A Low-Precision Arithmetic Simulation Framework

Tianyi Zhang, Zhiqiu Lin, Guandao Yang, Christopher De Sa
10/9/2019
cs.LGstat.ML

Official code: Tiiiger/QPyTorch (290 stars, MIT, last commit 2024-05-20).

Abstract

Low-precision training reduces computational cost and produces efficient models. Recent research in developing new low-precision training algorithms often relies on simulation to empirically evaluate the statistical effects of quantization while avoiding the substantial overhead of building specific hardware. To support this empirical research, we introduce QPyTorch, a low-precision arithmetic simulation framework. Built natively in PyTorch, QPyTorch provides a convenient interface that minimizes the efforts needed to reliably convert existing codes to study low-precision training. QPyTorch is general, and supports a variety of combinations of precisions, number formats, and rounding options. Additionally, it leverages an efficient fused-kernel approach to reduce simulator overhead, which enables simulation of large-scale, realistic problems. QPyTorch is publicly available at https://github.com/Tiiiger/QPyTorch.

View on arXivView PDF

Code Implementations(1)

Tiiiger/QPyTorchOfficial100%
MIT

Low Precision Arithmetic Simulation in PyTorch

29081C, C++Jul 30, 20182 years agoMIT
learninglow-precision

Similar Papers

Cite this paper

@article{zhang2019qpytorch,
  title  = {QPyTorch: A Low-Precision Arithmetic Simulation Framework},
  author = {Tianyi Zhang and Zhiqiu Lin and Guandao Yang and Christopher De Sa},
  year   = {2019},
  eprint = {1910.04540},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.04540}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.04540.svg)](https://codeofpaper.com/paper/1910.04540)

Discussion