ESPnet-ONNX:弥合研究与生产之间的差距
ESPnet-ONNX: Bridging a Gap Between Research and Production
摘要:
在深度学习领域,研究人员通常专注于发明新的神经网络模型和改进基准。相比之下,应用程序开发人员感兴趣的是制作适合于实际产品的模型,这涉及优化模型以实现更快的推断以及使模型适应各种平台(例如,C++和Python)。在这项工作中,为了填补两者之间的差距,我们建立了一个有效的程序来优化基于PyTorch的研究型部署模型,以ESPnet为例,ESPnet是一个广泛使用的语音处理工具包。我们为ESPnet引入了不同的技术,包括将模型转换为ONNX格式,融合图中的节点,以及量化参数,这些技术在各种任务中导致大约1.3-2的$\times$加速(即,ASR、TTS、语音翻译和口语理解),同时保持其性能,无需任何额外的培训。我们的ESPnet-ONNX将在https://github.com/espnet/espnet_onnx上公开发布
英文摘要:
In the field of deep learning, researchers often focus on inventing novel neural network models and improving benchmarks. In contrast, application developers are interested in making models suitable for actual products, which involves optimizing a model for faster inference and adapting a model to various platforms (e.g., C++ and Python). In this work, to fill the gap between the two, we establish an effective procedure for optimizing a PyTorch-based research-oriented model for deployment, taking ESPnet, a widely used toolkit for speech processing, as an instance. We introduce different techniques to ESPnet, including converting a model into an ONNX format, fusing nodes in a graph, and quantizing parameters, which lead to approximately 1.3-2$\times$ speedup in various tasks (i.e., ASR, TTS, speech translation, and spoken language understanding) while keeping its performance without any additional training. Our ESPnet-ONNX will be publicly available at https://github.com/espnet/espnet_onnx
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。