For the complete documentation index, see llms.txt. This page is also available as Markdown.

๐Ÿ“ฆInstallation

System Dependencies

# uv - fast Python package manager (handles Python 3.12+ automatically)
curl -LsSf https://astral.sh/uv/install.sh | sh

# swig - required for Box2D environments (LunarLander, BipedalWalker)
brew install swig        # macOS
# apt-get install -y swig  # Linux/WSL

Windows: Use WSL2 and follow Linux instructions.

Install SLM Lab

# Clone
git clone https://github.com/kengz/SLM-Lab.git
cd SLM-Lab

# Install
uv sync
uv tool install --editable .

# Verify
slm-lab --help                                 # list all commands
slm-lab run --help                             # options for run command

# Troubleshoot: if slm-lab not found, use uv run
uv run slm-lab --help

MuJoCo Playground

To use MuJoCo Playground environments (JAX/MJWarp GPU-accelerated simulation with 54 environments):

This adds JAX, MuJoCo Playground, and MJWarp dependencies. Requires a CUDA GPU for GPU-accelerated simulation.

Minimal Install

For remote training in the cloud with dstack, a minimal installation without ML dependencies is available:

Docker

For containerized runs without local setup, use the prebuilt image:

Last updated

Was this helpful?