ESPnet-ONNX: Bridging a Gap Between Research and Production

Masao Someki, Yosuke Higuchi, Tomoki Hayashi, Shinji Watanabe
9/20/2022
eess.AS

Official code: espnet/espnet_onnx (169 stars, Python, MIT, last commit 2026-11-11).

Abstract

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).

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

espnet/espnet_onnxOfficial100%
MIT

Onnx wrapper for espnet infrernce model

16925Python, MakefileMar 4, 20222 weeks agoMIT

Similar Papers

Cite this paper

@article{someki2022espnetonnx,
  title  = {ESPnet-ONNX: Bridging a Gap Between Research and Production},
  author = {Masao Someki and Yosuke Higuchi and Tomoki Hayashi and Shinji Watanabe},
  year   = {2022},
  eprint = {2209.09756},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.09756}
}

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/2209.09756.svg)](https://codeofpaper.com/paper/2209.09756)

Discussion