Coder Social home page Coder Social logo

Comments (4)

jwnys avatar jwnys commented on September 26, 2024 1

Lowering the n_discard_per_chain sounds like a great idea (I default to 4). It sounds a bit strange to me, though, to change the number of chains based on the backend (this is what will effectively happen, right?). I would rather take the number of chains constant. If you run on CPU, the number of ranks will be high, and so the number of chains per rank low, while the opposite then happens on GPU.

from netket.

gcarleo avatar gcarleo commented on September 26, 2024

Yes I would use a constant number of discarded (not a fraction) but I wouldn't be in favor of having backend dependent defaults,this might be dangerous and give different results unexpectedly

from netket.

alleSini99 avatar alleSini99 commented on September 26, 2024

I super agree about the constant and small number of discards per chain. I would keep the number of chains the same on the different backends, though, since the opposite could generate unexpected behaviours.

from netket.

PhilipVinc avatar PhilipVinc commented on September 26, 2024

Ok, so it seems that there is agreement on a lower n_discard_per_chain. Do we all agree on 10 or is this too large?

About changing n_chains_per_rank dynamically...

  • I am proposing to set the default value of n_chains_per_rank based on the backend (@jwnys , not the n_chains)

Right now the default is 16 chains per rank, which is ok for CPUs (even a bit high in some cases when running under MPI) but completely not ok for GPUs.

The reason I'd like to set this is because the current default is completely useless on GPUs, and I see the defaults as something that newcomers can learn from.

What do you fear might break if we change the number of chains dynamically?

from netket.

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.