Reproduce “QPyTorch: A Low-Precision Arithmetic Simulation Framework” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Tianyi Zhang, Zhiqiu Lin, Guandao Yang, Christopher De Sa
QPyTorch, developed at Cornell University, offers a comprehensive PyTorch-based framework for simulating diverse low-precision arithmetic in deep neural network training. It enables exploration of arbitrary numerical representations, rounding schemes, and mixed-precision configurations, validated with high accuracy and reduced simulation overhead.
Key insights
- The two-kernel design balances efficiency and generality by leveraging PyTorch's optimized full-precision kernels with flexible custom quantization kernels.
- Granular control over numerical formats, rounding modes, and precision settings for different components (weights, activations, gradients) is crucial for effective mixed-precision training research.
- An accessible and efficient simulation framework accelerates the development of low-precision algorithms by reducing reliance on custom hardware and overcoming limitations of existing software tools.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.