Skip to main content

Operators and solvers for high-performance computing.

Project description

Furax

PyPI version Documentation Status CI Ruff

Docs

Furax: a Framework for Unified and Robust data Analysis with JAX.

This framework provides building blocks for solving inverse problems, in particular in the astrophysical and cosmological domains.

Installation

You should always use a virtual environment to install packages (e.g. venv, conda environment, etc.).

Start by installing JAX for the target architecture.

Furax is available as furax on PyPI, and can be installed with:

pip install furax

Development version

Clone the repository, and navigate to the root directory of the project. For example:

git clone git@github.com:CMBSciPol/furax.git
cd furax

Then, install the package with:

pip install .

Developing Furax

After cloning, install in editable mode and with development dependencies:

pip install -e .[dev]

We use pytest for testing. You can run the tests with:

pytest

To ensure that your code passes the quality checks, you can use our pre-commit configuration:

  1. Install the pre-commit hooks with
pre-commit install
  1. That's it! Every commit will trigger the code quality checks.

Running on JeanZay

Load cuda and and cudnn for JAX

module load cuda/11.8.0 cudnn/8.9.7.29-cuda

Create Python env (only the first time)

module load python/3.10.4 && conda deactivate
python -m venv venv
source venv/bin/activate
# install jax
pip install --upgrade "jax[cuda11_local]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
# install furax
pip install -e .[dev]

launch script

To launch only the pytests

sbatch slurms/astro-sim-v100-testing.slurm

To launch your own script

sbatch slurms/astro-sim-v100-run.slurm yourscript.py

You can also allocate ressources and go into bash mode

srun --pty --account=nih@v100 --nodes=1 --ntasks-per-node=1 --cpus-per-task=10 --gres=gpu:1 --hint=nomultithread bash
module purge
module load python/3.10.4
source venv/bin/activate
module load cuda/11.8.0  cudnn/8.9.7.29-cuda
# Then do your thing
python my_script.py
pytest

Don't leave the bash running !! (I would suggest running script with sbatch)

Specific for nih / SciPol project

The repo is already in the commun WORK folder, the data is downloaded and the environment is ready.

You only need to do this

cd $ALL_CCFRWORK/furax-main

Then launch scripts as you see fit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

furax-0.10.3.tar.gz (15.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

furax-0.10.3-py3-none-any.whl (168.2 kB view details)

Uploaded Python 3

File details

Details for the file furax-0.10.3.tar.gz.

File metadata

  • Download URL: furax-0.10.3.tar.gz
  • Upload date:
  • Size: 15.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for furax-0.10.3.tar.gz
Algorithm Hash digest
SHA256 323afe78a842724a3107be97c5343ee6800e1017dd3207ab24c25f647e644008
MD5 84099dab6242de35bc73a764fe0e0bce
BLAKE2b-256 b77b5d4a278f36d615083d14667173dcff3bf4b4b20aaf30c1ebf3fcc0dfb524

See more details on using hashes here.

Provenance

The following attestation bundles were made for furax-0.10.3.tar.gz:

Publisher: release.yml on CMBSciPol/furax

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file furax-0.10.3-py3-none-any.whl.

File metadata

  • Download URL: furax-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 168.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for furax-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 896729b2de6737fc3fc5f10eb331bc76d213b29814db381e11946c9ec575022f
MD5 6f4ca79119bfbd3143f0a55c5ae0de35
BLAKE2b-256 0a0e680713845c90198ad800594bf721e455d55cce10eca851876d9a7ce5bb95

See more details on using hashes here.

Provenance

The following attestation bundles were made for furax-0.10.3-py3-none-any.whl:

Publisher: release.yml on CMBSciPol/furax

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page