A framework for simulating ecosystems in JAX.
Project description
EcoJAX
This repository aims to provide a simple and modular codebase to run experiments on large neural-agents ecological models using JAX.
Your browser does not support the video tag.
Installation
Clone the repository and create a virtual environment. The repo work (at least) in python 3.10 to 3.12.
git clone git@github.com:tboulet/EcoJAX.git
cd EcoJAX
python -m venv venv
source venv/bin/activate # on Windows, use `venv\Scripts\activate.bat`
Install JAX
On linux (note your CUDA version may vary) :
pip install jax[cuda12_pip]==0.4.24 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
On Windows :
pip install jax[cpu]==0.4.24
Install the requirements
pip install -r requirements.txt
Eventually install the package in editable mode
pip install -e .
Usage
To run any experiment, run the run.py
file with the desired configuration. We use Hydra as our configuration manager.
python run.py
To use a specific configuration, use the --config-name
argument.
python run.py --config-name=my_config
You can modify a specific argument thanks to Hydra's override system.
python run.py path.to.arg.in.config=new_value
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file ecojax-1.1.tar.gz
.
File metadata
- Download URL: ecojax-1.1.tar.gz
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88277b57eb5253121e6c5da2a404cd00af08102889c0b3e5474d067006ed184f |
|
MD5 | 30f8e038efcee4e2a26d0ca636ac78a9 |
|
BLAKE2b-256 | 96e1da3cc9fce8d45668b20bcacc80442d0376b7bc9d9cec253553251e417ded |
File details
Details for the file ecojax-1.1-py3-none-any.whl
.
File metadata
- Download URL: ecojax-1.1-py3-none-any.whl
- Upload date:
- Size: 56.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c71a2a1fecab3f90bf709dccf4b8c7273df0315d47b8b85b00f9535dd29fa99 |
|
MD5 | 240d21364a56581b0ab83d1354aa88fe |
|
BLAKE2b-256 | c9c055bd7ec472d7159b9818619cf28ef205cf46d9e1476053b3db8a432d69a8 |