Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmark for github.com/awni/transducer #13

Open
ronggong opened this issue Jun 17, 2022 · 5 comments
Open

Add benchmark for github.com/awni/transducer #13

ronggong opened this issue Jun 17, 2022 · 5 comments

Comments

@ronggong
Copy link

github.com/awni/transducer implementation seems use much less memory and run 20x faster than torchaudio RNNT. Is that possible to add this to the benchmarking? Thanks.

@csukuangfj
Copy link
Owner

Sure, I will add that.

One thing to note: It has a specific constraint or requirement: the jonit network consists of only an adder. It is not possible to add nn.Linear or any activation layers to it.

Also, the authors don't provide any WERs for the models trained with it.

@ronggong
Copy link
Author

@csukuangfj I see, interesting. The input logit is (B, T, V) shape in their implementation, it looks like a CTC logit shape. I wonder how he made use of the prediction network output?

@csukuangfj
Copy link
Owner

@ronggong

Actually, what github.com/awni/transducer implements is just a special case of k2's RNN-T loss, which is
called k2.rnnt_loss_simple, see https://github.com/k2-fsa/k2/blob/master/k2/python/k2/rnnt_loss.py#L196

@ronggong
Copy link
Author

ronggong commented Jul 2, 2022

How does the simple rnnt performs compared with a normal joiner with activations and linear transform? Is it much worse?

@csukuangfj
Copy link
Owner

How does the simple rnnt performs compared with a normal joiner with activations and linear transform? Is it much worse?

I don't have such results available. You can either ask awni or do some experiments by yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants