Installation#

To avoid dependency issues, it is recommended to create a new conda/mamba environment.

conda create -n gensbi python=3.12 -y
conda activate gensbi

To install, clone the repository and install dependencies:

pip install gensbi

If a GPU is available, it is advisable to install the cuda version of the package:

pip install gensbi[cuda12]

If you want to run the examples, install the GenSBI-examples repository:

pip install gensbi[examples]

To install all the optional dependencies at once, run:

pip install gensbi[cuda12,examples]

Requirements#

  • Python 3.11+

  • JAX

  • Flax

  • (See pyproject.toml for full requirements)