Giter VIP home page Giter VIP logo

Comments (4)

vince62s avatar vince62s commented on August 18, 2024

Just to illustrate what I wrote above.
I measure the BLEU score with a test set belonging to the training data (working on a task specific model). After the first 3 days, BLEU was 60 then continued to increase to 67 on day 6.
I stopped it. restarted it with "reload". 3 hours after the restart BLEU went down to 41.

from dl4mt-tutorial.

orhanf avatar orhanf commented on August 18, 2024

@vince62s the current checkpointing is rather primitive, in the sense that we only reload the model parameters. But they are not the only elements that define the state of training. We also need to reload (hence save) the accumulators/auxiliaries of the step rule that we are using (e.g. moments, iteration number for adam). Another point is the iterator state, everytime you restart training, data iterator restarts from the beginning of the dataset, introducing some bias for those examples.

We will probably work on it soon, or point a reference implementation but please feel free to make a PR about it which will be appreciated.

from dl4mt-tutorial.

vince62s avatar vince62s commented on August 18, 2024

ok, so just to make it clear, the reload will only teka the parameters from the model.npz.pkl file but the model itself model.npz from the previous job is not reloaded, hence rewritten with the new job from scratch ?

from dl4mt-tutorial.

orhanf avatar orhanf commented on August 18, 2024

What i meant by the model is model.npz and it is loaded when you set reload=True, model.npz.pkl is just for the options.

from dl4mt-tutorial.

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.