Giter VIP home page Giter VIP logo

Comments (6)

guillaumekln avatar guillaumekln commented on May 22, 2024

The learning rate is only updated at the end of an epoch. So it will complete epoch 6 first, then a first decay will be applied.

from opennmt.

vince62s avatar vince62s commented on May 22, 2024

well if I specify start_epoch 6 end_epoch 9 start_decay 5 decay_rate 0.5
without continue it should decay right away, no ?
Otherwise we have to manually adapt the initial learning rate.

from opennmt.

guillaumekln avatar guillaumekln commented on May 22, 2024

Why are you not using -continue in this case?

I believe the current behavior is correct. For example if -start_decay 2 -start_epoch 6 are set, do you expect the code to replay to entire decay history?

from opennmt.

vince62s avatar vince62s commented on May 22, 2024

then to avoid confusion, if continue is not set and if you load from an existing model, I f would suggest we throw an error if start_decay_at if less or equal to start_epoch.
if you reset the lr and decay, I don't exactly undertstand the possibility to start from epoch X when load an existing model. do you see my point?

from opennmt.

guillaumekln avatar guillaumekln commented on May 22, 2024

Unless I'm missing something, that is reason we introduced the -continue option, to continue exactly where a checkpoint left off.

When you don't use -continue, it is actually a new training which uses the parameters from a checkpoint independently from their optimization history. It has other use cases like if you want to change the data and set a higher learning rate or change the optimization method.

from opennmt.

vince62s avatar vince62s commented on May 22, 2024

ok best to discuss this on the forum.

from opennmt.

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.