arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2209.15427cs.LGcs.AI
收藏

混合专家模型混合精度神经网络的参数整定

Tuning of Mixture-of-Experts Mixed-Precision Neural Networks

University of Zurich(苏黎世大学)

Fabian Tschopp

摘要:

深度学习已经成为一种有用的数据分析方法,然而到目前为止,分布式计算机软件和嵌入式设备中的主流适应性还很低。通常,在主流应用和设备中添加深度学习推理需要具有适合卷积神经网络的信号处理器的新硬件。这项工作增加了新的数据类型(量化的16位和8位整数,16位浮点)的Caffe,以节省内存和提高现有的商品图形处理器与OpenCL,在日常设备中常见的推理速度。现有的模型可以毫不费力地在混合精度模式下执行。此外,我们提出了一种混合专家模型的变体,以提高图像分类在AlexNet上的推理速度。我们成功地将内存使用量降低到3.29倍,同时在某些设备上将推理速度提高到3.01倍。我们演示了五个简单的例子如何提出的技术可以很容易地应用到不同的机器学习问题。整个管道由模型、示例Python脚本和修改后的Caffe库组成,可作为开源软件使用。

英文摘要:

Deep learning has become a useful data analysis method, however mainstream adaption in distributed computer software and embedded devices has been low so far. Often, adding deep learning inference in mainstream applications and devices requires new hardware with signal processors suited for convolutional neural networks. This work adds new data types (quantized 16-bit and 8-bit integer, 16-bit floating point) to Caffe in order to save memory and increase inference speed on existing commodity graphics processors with OpenCL, common in everyday devices. Existing models can be executed effortlessly in mixed-precision mode. Additionally, we propose a variation of mixture-of-experts to increase inference speed on AlexNet for image classification. We managed to decrease memory usage up to 3.29x while increasing inference speed up to 3.01x on certain devices. We demonstrate with five simple examples how the presented techniques can easily be applied to different machine learning problems. The whole pipeline, consisting of models, example python scripts and modified Caffe library, is available as Open Source software.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑