MCTensor:一个高精度多分量浮点深度学习库
MCTensor: A High-Precision Deep Learning Library with Multi-Component Floating-Point
摘要:
在本文中,我们介绍了MCTensor,一个基于PyTorch的库,为DL训练提供通用和高精度的算法。MCTensor的使用方式与PyTorch Tensor相同:我们使用相同的PyTorch接口为MCTensor实现多个基本的矩阵级计算运算符和NN模块。我们的算法实现了高精度计算,并且还受益于经过高度优化的PyTorch浮点算法。我们针对一系列任务评估了MCTensor算法与PyTorch本地算法的对比,其中使用float16的MCTensor模型将匹配或优于具有float32或float64精度的PyTorch模型。
英文摘要:
In this paper, we introduce MCTensor, a library based on PyTorch for providing general-purpose and high-precision arithmetic for DL training. MCTensor is used in the same way as PyTorch Tensor: we implement multiple basic, matrix-level computation operators and NN modules for MCTensor with identical PyTorch interface. Our algorithms achieve high precision computation and also benefits from heavily-optimized PyTorch floating-point arithmetic. We evaluate MCTensor arithmetic against PyTorch native arithmetic for a series of tasks, where models using MCTensor in float16 would match or outperform the PyTorch model with float32 or float64 precision.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。