Installation
Quick Start
Requirements
- Python 3.9 or later
- JAX 0.4.0 or later
- NumPy, Matplotlib
Installation Options
Standard Installation
For CPU-only usage:
GPU Support
To enable GPU acceleration with CUDA:
See the JAX installation guide for platform-specific GPU setup.
Development Installation
To install from source with development dependencies:
Verify Installation
Test your installation:
import jax
import jaxlatt
print(f"JAX backend: {jax.default_backend()}")
print(f"JaxLatt version: {jaxlatt.__version__}")
Troubleshooting
JAX not using GPU?
- Verify CUDA installation:
nvidia-smi - Check JAX sees GPU:
jax.devices() - Ensure JAX GPU variant is installed
Import errors?
- Upgrade pip:
pip install --upgrade pip - Install in a clean environment:
python -m venv venv && source venv/bin/activate
For more help, see GitHub Issues.