Operators and solvers for high-performance computing.
Project description
Furax
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:
- Install the pre-commit hooks with
pre-commit install
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file furax-0.9.tar.gz.
File metadata
- Download URL: furax-0.9.tar.gz
- Upload date:
- Size: 4.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f3587caf9a1435f3e70fdbd68d13c035d3c9eb681d58f17356cd24de3f20b4
|
|
| MD5 |
30b2ce1f5def10261c981f5e9d142287
|
|
| BLAKE2b-256 |
1cc35f97de97e81bb372a75f75989d87f26d72138967fb6464c775ecc0daadce
|
Provenance
The following attestation bundles were made for furax-0.9.tar.gz:
Publisher:
release.yml on CMBSciPol/furax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
furax-0.9.tar.gz -
Subject digest:
e9f3587caf9a1435f3e70fdbd68d13c035d3c9eb681d58f17356cd24de3f20b4 - Sigstore transparency entry: 312079701
- Sigstore integration time:
-
Permalink:
CMBSciPol/furax@035a72a4fef7b314b834501565c8686677ac5b70 -
Branch / Tag:
refs/tags/v0.9 - Owner: https://github.com/CMBSciPol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@035a72a4fef7b314b834501565c8686677ac5b70 -
Trigger Event:
release
-
Statement type:
File details
Details for the file furax-0.9-py3-none-any.whl.
File metadata
- Download URL: furax-0.9-py3-none-any.whl
- Upload date:
- Size: 58.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a1925b9e4277244c293b93232f21825a3283671c6bca6f7e5890addde0d41ec
|
|
| MD5 |
35febd8bc3242c78f74e85bd9a68c5a5
|
|
| BLAKE2b-256 |
039d800ae22f6fc87d6d690218da375ad362a5194a9faf77bea9a187c28089ca
|
Provenance
The following attestation bundles were made for furax-0.9-py3-none-any.whl:
Publisher:
release.yml on CMBSciPol/furax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
furax-0.9-py3-none-any.whl -
Subject digest:
9a1925b9e4277244c293b93232f21825a3283671c6bca6f7e5890addde0d41ec - Sigstore transparency entry: 312079715
- Sigstore integration time:
-
Permalink:
CMBSciPol/furax@035a72a4fef7b314b834501565c8686677ac5b70 -
Branch / Tag:
refs/tags/v0.9 - Owner: https://github.com/CMBSciPol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@035a72a4fef7b314b834501565c8686677ac5b70 -
Trigger Event:
release
-
Statement type: