Giter Site home page Giter Site logo

Comments (3)

rwitten avatar rwitten commented on September 4, 2024

@aireenmei to give context.

Mostly runtime performance is that both are fast enough to not be your bottleneck but Grain gives determinism guarantees!

from maxtext.

aireenmei avatar aireenmei commented on September 4, 2024

Hi @leandrolcampos,

The biggest benefit of grain is determinism. No matter how your run gets interrupted, you can always recover the same data order from your checkpoint, so your loss curve is reproducible, debuggable.
Other benefits includes:

  • minimal dependency, especially if you don't want to depends on TensorFlow
  • Close to a global shuffle, while the shuffle in tf.data is limited by memory
  • For some transformations, it may be easier to implement in numpy

And like I mentioned with you in another thread under grain repo, I just put up some grain docs: https://github.com/google/grain/tree/main/docs

from maxtext.

leandrolcampos avatar leandrolcampos commented on September 4, 2024

Hi @rwitten and @aireenmei,

Thanks for your answers. They helped me to better understand the PyGrain value proposition. I'm looking forward to use it in my next research projects.

All the best,

from maxtext.

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.