Coder Social home page Coder Social logo

Comments (2)

0x0539 avatar 0x0539 commented on May 19, 2024

Note that the TF-Hub checkpoints do not contain LAMB optimizer momentum estimates, so it won't be exactly the same as resuming from a training checkpoint (which we do plan to release at some point). In particular, the momentum estimates will be reset to zero.

That said, it's still probably faster than starting from a randomly-initialized ALBERT :)

If you want to try it, I can think of two ways:

  1. Extract the checkpoint files manually from the TF-Hub module. Look inside the variables/ folder. These files can be copied into your training dir as the .data and .index files of a checkpoint. You may need to create a file called checkpoint that points to them (look inside an ALBERT training directory for the format).
  2. Add a flag to run_pretraining.py for initializing from TF-Hub. It should be similar to this recent commit, which did the same thing but for run_classifier.py. If you want to put together a PR for this, that'd really be helpful.

from albert.

0x0539 avatar 0x0539 commented on May 19, 2024

There's an easier way to get these checkpoints now. See the [Tar file] links in the readme.

from albert.

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.