Installation¶
augax supports Python >= 3.9. We recommend using miniforge or pixi.
Installing a released version¶
augax is available on PyPI and can be installed with:
pip install augax
JAX is a core dependency and is always installed.
Installing from source¶
For development, clone the repository and install in editable mode:
git clone https://github.com/knaaptime/augax.git
cd augax
conda env create -f environment.yml
conda activate augax
pip install -e . --no-deps
Verifying the installation¶
import jax
jax.config.update("jax_enable_x64", True)
import augax
key = jax.random.PRNGKey(0)
h = jax.numpy.ones(5)
z = jax.numpy.zeros(5)
print(augax.pg_sample(h, z, key))
!!! note
augax requires 64-bit mode (jax_enable_x64 = True). A
RuntimeError is raised if x64 is not enabled.