Code Monkey home page Code Monkey logo

Comments (4)

ravi-mosaicml avatar ravi-mosaicml commented on July 19, 2024

@anisehsani curious about the status of this one? If we can get this merged in, then I think we should be able to remove Event.INIT and move the Event.TRAINING_START right before all the ddp wrapping begins. This would help clean up the trainer, as then no events would fire in __init__.

from composer.

dblalock avatar dblalock commented on July 19, 2024

Not positive, but I think the path to getting this working cleanly is to make it easy to add_param_group to the optimizer after its construction (but still before ddp). And to default to adding all the model's params to a group. As long as the optimizer's defaultdict has the same hparams as would have been used when passing params in at __init__, this should end up with equivalent behavior (in theory).

The more comprehensive solution, which would also enable dynamic factorization, quantization, channel pruning (?), etc, is to work around DDP needing the params and their shapes frozen, which would solve this as a special case. But that's probably a lot harder.

from composer.

ravi-mosaicml avatar ravi-mosaicml commented on July 19, 2024

This issue presents an interesting API challenge:

optimizers depends on the model
schedulers depends on the optimizers and steps_per_epoch

It may make sense to wait until after #146 is implemented, as then steps_per_epoch would no longer required to initialize schedulers

from composer.

ravi-mosaicml avatar ravi-mosaicml commented on July 19, 2024

Closing for #249 and #157

from composer.

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.