Giter Site home page Giter Site logo

Comments (4)

pbordes avatar pbordes commented on July 19, 2024 1

Ok I got it! thank you very much

from unsupervisedmt.

glample avatar glample commented on July 19, 2024

Hi,

How are you doing the reload? Are you reloading a pretrained model? Or a checkpoint.pth file? In the first case, what you observe is possible (even though the difference seems surprisingly large), since the optimizer weights will also be reset, but in the case of a checkpoint, the loss should be the same before and after the training interruption, since the optimizer is also reloaded.

Maybe could you try to print the weights before and after reloading (both for the model and the optimizer) to see if they are identical?

from unsupervisedmt.

pbordes avatar pbordes commented on July 19, 2024

Hello,
Thank you for your quick answer ! I trained entirely a model (until the stopping criterion) and now I am trying to reload it: do you mean that when a model is trained until the end then the optimizer weights are not saved ? However, the penultimate function called in the main.py is end_epoch() which calls save_checkpoint(), and this function saves optimizer weights ...

from unsupervisedmt.

glample avatar glample commented on July 19, 2024

What is the name of the reloaded file? If it's something like best-bleu_en_fr.pth it will only contain the model. The checkpoint.pth file is to reload experiments that have crashed or have been interrupted for various reasons, and for which you want to resume the training.

from unsupervisedmt.

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.