question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RNNT modified_adaptive_expansion_search is too slow.

See original GitHub issue

Hi, I try to use modified_adaptive_expansion_search with beam_size 5 to recognize one wav, which costs 52.9s, while ALSD costs 0.87S. why the speed is so slow.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
b-flocommented, Apr 21, 2022

Hi,

Can you give information? recipe, architecture, units, etc?

Nevertheless, I’m assuming you are modeling BPE or use a big vocab size? If so, the issue is known for ESPnet1 and due to select_k_expansions(...), see here

mAES: Fixed select_top_k_candidates loop taking a long time with a big vocab size. It also improves decoding time in general.

I’ll fix it in ESPnet1 when I have time, for the moment please either use the changes from PR #4032 or use another time-synchronous algorithm.

0reactions
b-flocommented, Apr 24, 2022

It shouldn’t make a difference in practice but yes, it should be recombine_hyps + sorted instead of sorted + recombine_hyps (pruning should be applied at the end anyway). Will change that in #4032.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NeMo ASR Configuration Files - NVIDIA Documentation Center
NeMo ASR Configuration Files#. This section describes the NeMo configuration file setup that is specific to models in the ASR collection.
Read more >
[1705.08639] Fast-Slow Recurrent Neural Networks - arXiv
Here, we address this challenge by proposing a novel recurrent neural network (RNN) architecture, the Fast-Slow RNN (FS-RNN).
Read more >
IMPROVING RNN TRANSDUCER MODELING FOR END-TO ...
we propose better model structures so that we obtain RNN-T mod- ... be slow if small minibatch is used, therefore reducing memory cost....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found