GithubHelp home page GithubHelp logo

Comments (7)

csukuangfj avatar csukuangfj commented on July 19, 2024 2

You can find an example usage about unpruned + pruned loss in
https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/pruned_transducer_stateless2/model.py#L72

It uses a so-called "model warmup". The basic idea is that it first uses the unpruned version to make the model converge and applies the pruned version gradually.


Also, I was wondering what is the best way to understand the pruned loss other than reading the code?

We will post the paper soon.

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024 1

Also, I was wondering what is the best way to understand the pruned loss other than reading the code?

The paper is online now:
https://arxiv.org/abs/2206.13236

Screen Shot 2022-07-03 at 10 17 46

from fast_rnnt.

Anwarvic avatar Anwarvic commented on July 19, 2024

Thanks for your quick response. Yeah, I can see that clearly in https://github.com/k2-fsa/icefall/blob/7100c33820c8c478e07d3435e25e4f1543b6eec7/egs/librispeech/ASR/pruned_transducer_stateless2/train.py#L557

But assuming I used the pruned_loss as shown here, model convergance is expected to be slow... right??

from fast_rnnt.

csukuangfj avatar csukuangfj commented on July 19, 2024

model convergance is expected to be slow... right

It depends on what optimizer you are using, and what model and what LR scheduler you are using.

The model, optimizer, and LR scheduler in icefall are specifically tuned for pruned RNN-T training.

from fast_rnnt.

danpovey avatar danpovey commented on July 19, 2024

Are you also including the simple_loss in your loss function? You need to include that so it trains the associated parameters and learns reasonable pruning bounds. As Fangjun mentioned, it makes sense to use only the simple loss during a warmup period.

from fast_rnnt.

Anwarvic avatar Anwarvic commented on July 19, 2024

Hey @danpovey @csukuangfj, thank you for your quick responses... You are my safety net here 😃

I've added the warmup functionality to my code the same way it was implemented here. Now, I'm gonna re-train the model and see if that improves the convergence. Will update this thread once it's done.

from fast_rnnt.

Anwarvic avatar Anwarvic commented on July 19, 2024

Since the paper is out now, I'm gonna close this issue. Much appreciated!

from fast_rnnt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.