-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMAUS (Ensemble Microcanonical Adjusted-Unadjusted Sampler) #766
base: main
Are you sure you want to change the base?
Conversation
I unmarked this as a draft, even though there's still some rough edges, just in case @junpenglao or anyone else wanted to give high level feedback over the main changes (e.g. should I rearrange the files and put everything in one file, etc). I see I have also somehow added spaces to a bunch of files, not sure how this happened or how to fix... |
This should be ready to review @junpenglao . I realize it's a large PR, so let me know if anything can be done to make it easier. Confusingly, the new test passes locally, but fails on CI. I don't understand what has changed (the random seed seems to be the same). |
Great work, let me take a look this week. |
The latest release of JAX seems to change some of the seeding output, try either a new random key or in crease the number of samples. |
This is in essence a tuning scheme for running multiple chains in parallel (ensemble). The key trick is to use MCLMC without MH (i.e. unadjusted) first in order to very quickly find the typical set, and then to use MH for the steps you actually count. The details are in how to decide when to switch between these two phases, and how to tune the hyperparameters using estimates from the ensemble of chains.
The upshot is that the method is fast, even compared to other ensemble methods: sampling book: TODO
Changes:
run_eca
,eca_step
andensemble_execute_fn
. These are helper functions for running batches (ensembles) of chains, optionally across multiple nodesA few important guidelines and requirements before we can merge your PR:
main
commit;pre-commit
is installed and configured on your machine, and you ran it before opening the PR;