Skip to main content

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

Release files for ecojax 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ecojax 1.1
File Size Uploaded
ecojax-1.1.tar.gz 45.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ecojax 1.1
File Interpreter ABI Platform
ecojax-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 101.6 kB

Release files / ecojax-1.1.tar.gz

Download URL ecojax-1.1.tar.gz
Size 45.6 kB
Tags Source
SHA-256 checksum
How to use checksums
88277b57eb5253121e6c5da2a404cd00af08102889c0b3e5474d067006ed184f
BLAKE2b-256 checksum
How to use checksums
96e1da3cc9fce8d45668b20bcacc80442d0376b7bc9d9cec253553251e417ded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.11

Release files / ecojax-1.1-py3-none-any.whl

Download URL ecojax-1.1-py3-none-any.whl
Size 56.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c71a2a1fecab3f90bf709dccf4b8c7273df0315d47b8b85b00f9535dd29fa99
BLAKE2b-256 checksum
How to use checksums
c9c055bd7ec472d7159b9818619cf28ef205cf46d9e1476053b3db8a432d69a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page