jtap-mice is a Python library for probabilistic cog-neuro modeling and inference of the left-right task designed for Mice.
- Python 3.11 or higher
- For GPU acceleration: NVIDIA GPU with CUDA 12 (recommended) or CUDA 11
- For CPU-only: Any system (including macOS, Linux, Windows)
Do not run this inside a conda or a virtual environment (venv, virtualenv or pyenv. Not even pixi) UV is meant to replace all of this
Follow the steps below to get jtap running on your machine.
-
Clone the repository:
git clone https://github.com/probcomp/jtap.git cd jtap -
Install uv (if not already installed):
curl -LsSf https://astral.sh/uv/install.sh | sh -
Install JTAP:
For NVIDIA GPU systems (Linux/Windows with CUDA 12):
uv sync --extra cuda
For CPU-only systems (macOS, systems without NVIDIA GPU):
uv sync --extra cpu
-
Install Rerun Locally (If not on a VM and you have a Display):
uv run rerun- Verify your installation:
uv run python -c "import jax; print('JAX devices:', jax.devices())"
- NVIDIA GPU (Linux/Windows): Use
uv sync --extra cudafor best performance - Apple Silicon (M1/M2/M3 Macs): Use
uv sync --extra cpu- JAX will automatically use Metal acceleration - Intel/AMD CPU (any OS): Use
uv sync --extra cpu- works on all systems
Note: The CPU version will work on any system, including those with GPUs, but will be slower than GPU-accelerated versions.