Giter Club home page Giter Club logo

Comments (6)

jsspencer avatar jsspencer commented on August 19, 2024 1

That's the correct thing to do. pmean is a collective reduce (ie like MPI_AllReduce instead of MPI_Reduce, if you're familiar with MPI) and the result is sharded all devices. The logging call requires the data on the host, which transfers the array back, resulting in an array of length num_devices, with elements, as you say, indentical due to the pmean. The same thing is done in several places during the main training loop.

from ferminet.

dpfau avatar dpfau commented on August 19, 2024

That does make sense - might be just a small change from the internal version that we never tested. We'd be happy to look at a PR.

from ferminet.

jsspencer avatar jsspencer commented on August 19, 2024

Sorry, these crept in when removing a small internal dependency and as a typo respectively. Happy to take a look at a PR, equally happy to release an updated version early next week with fixes.

from ferminet.

connection-on-fiber-bundles avatar connection-on-fiber-bundles commented on August 19, 2024

Got it. Will work on a fix PR then

from ferminet.

connection-on-fiber-bundles avatar connection-on-fiber-bundles commented on August 19, 2024

By the way, for case 2 (the logging one),I got confused by the error message. It should be the case that constants.pmap always returns an array (of the same values in this case) whose size is equal to num_devices. It's just that when the array is of size 1, then logging can handle it automatically while if the size the greater than 1, it would complain. So I simply take the first element in my PR.

from ferminet.

jsspencer avatar jsspencer commented on August 19, 2024

Fixed in #17. Thanks for spotting this and sending the patch!

from ferminet.

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.