flowMC
A JAX-based normalizing-flow-enhanced MCMC sampler for probabilistic inference
flowMC is a JAX-based package for normalizing-flow-enhanced Markov chain Monte Carlo (MCMC) sampling. By using normalizing flows as a global proposal, flowMC accelerates convergence for multi-modal and high-dimensional posteriors while running natively on GPU with minimal hyperparameter tuning.
For a quick introduction, see the Quick Start guide.
Installation
The simplest way to install flowMC is through pip:
pip install flowMC
This will install the latest stable release and its dependencies. flowMC is built on JAX. By default, this installs the CPU version of JAX. If you have an NVIDIA GPU, install the CUDA-enabled version:
pip install flowMC[cuda]
If you want to install the latest version of flowMC, you can clone this repo and install it locally:
git clone https://github.com/GW-JAX-Team/flowMC.git
cd flowMC
pip install -e .
We recommend using uv to manage your Python environment.
After cloning the repository, run uv sync to create a virtual environment with all dependencies installed.
Origins
flowMC was originally developed as kazewong/flowMC by Kaze W. K. Wong and others. The original repository is no longer actively maintained; this fork is the active continuation of the project.
Attribution
If you use flowMC in your research, please cite the following papers:
@article{Wong:2022xvh,
author = "Wong, Kaze W. K. and Gabri\'e, Marylou and Foreman-Mackey, Daniel",
title = "{flowMC: Normalizing flow enhanced sampling package for probabilistic inference in JAX}",
eprint = "2211.06397",
archivePrefix = "arXiv",
primaryClass = "astro-ph.IM",
doi = "10.21105/joss.05021",
journal = "J. Open Source Softw.",
volume = "8",
number = "83",
pages = "5021",
year = "2023"
}
@article{Gabrie:2021tlu,
author = "Gabri\'e, Marylou and Rotskoff, Grant M. and Vanden-Eijnden, Eric",
title = "{Adaptive Monte Carlo augmented with normalizing flows}",
eprint = "2105.12603",
archivePrefix = "arXiv",
primaryClass = "physics.data-an",
doi = "10.1073/pnas.2109420119",
journal = "Proc. Nat. Acad. Sci.",
volume = "119",
number = "10",
pages = "e2109420119",
year = "2022"
}
Metadata
Release files for flowMC 0.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flowmc-0.6.5.tar.gz | 2.8 MB | Without provenance | Details for flowmc-0.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flowmc-0.6.5-py3-none-any.whl | Python 3 | none | any | Details for flowmc-0.6.5-py3-none-any.whl |
Total release size: 2.9 MB
Release files / flowmc-0.6.5.tar.gz
| Download URL | flowmc-0.6.5.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b01ac5534f9fe832dcdbb4d1fdcfaf22e6361e0973834a65e6bb7198a7551721
|
|
BLAKE2b-256 checksum How to use checksums |
168aaa2cd30001ebb9b738e5485c955450c32d830bb62686cb83f1e9a19cbca1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / flowmc-0.6.5-py3-none-any.whl
| Download URL | flowmc-0.6.5-py3-none-any.whl |
|---|---|
| Size | 94.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ec89c9c6f0df577be4dd97da3f6f35d5762e5d2ca98af81909b80cce52323a0
|
|
BLAKE2b-256 checksum How to use checksums |
64b5cd6bf2fa908047ea7d6df152e52b947a1e2f09183405cf96ea895a34463a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for flowMC 0.6.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.