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.2.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.2-py3-none-any.whl (158.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: furax-0.10.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4fa47d03b216377e910daf3a65b9bab878046f14e59d29102959318d2f73b277
MD5 224f230f030e0e219951ba9aed31239f
BLAKE2b-256 eae68487e877f0385ca20673549f5f4f42bdcbf9fcde95607eb524e92e89a969

See more details on using hashes here.

Provenance

The following attestation bundles were made for furax-0.10.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: furax-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 158.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6530ce71541a6072e92f17be5266ff0bc7113b7b31da8b68cf7e92d8cfc19b48
MD5 57dca522e99f7cd3278f3d675b15d79c
BLAKE2b-256 7ed16c62ea7b90c8a65f42819ba8ffc875b92c163b67353f83387e583f92553e

See more details on using hashes here.

Provenance

The following attestation bundles were made for furax-0.10.2-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