Metadata-Version: 2.5
Name: gradlab
Version: 0.2.7
Summary: Generic reinforcement-learning lab for training and evaluating game agents
License-Expression: MIT
License-File: LICENSE
Requires-Python: ==3.14.*
Requires-Dist: aiohttp<4,>=3.14.4
Requires-Dist: ale-py<0.13,>=0.12
Requires-Dist: boto3<2,>=1.34
Requires-Dist: box2d-py==2.3.8
Requires-Dist: captum<1,>=0.9
Requires-Dist: certifi>=2026.10.19
Requires-Dist: env-breakoutatari2600-turbo-native==0.5.15; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: env-breakoutatari2600-turbo-native==0.5.15; sys_platform == 'linux' and platform_machine == 'x86_64'
Requires-Dist: env-gradoom-turbo-torch==0.2.1; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: env-gradoom-turbo-torch==0.2.1; sys_platform == 'linux' and platform_machine == 'x86_64'
Requires-Dist: env-stableretro-turbo==1.0.1.post48; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: env-stableretro-turbo==1.0.1.post48; sys_platform == 'linux' and platform_machine == 'x86_64'
Requires-Dist: env-supermariobrosnes-turbo-emu==0.7.4; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: env-supermariobrosnes-turbo-emu==0.7.4; sys_platform == 'linux' and platform_machine == 'x86_64'
Requires-Dist: env-vizdoom-turbo==1.3.0.post30; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: env-vizdoom-turbo==1.3.0.post30; sys_platform == 'linux' and platform_machine == 'x86_64'
Requires-Dist: gymnasium<1.3,>=1.2
Requires-Dist: huggingface-hub<3,>=1.0
Requires-Dist: jinja2<4,>=3.1
Requires-Dist: mlflow-skinny==3.17.2
Requires-Dist: modal<2,>=1.3
Requires-Dist: numba<0.69,>=0.65.1
Requires-Dist: omegaconf<3,>=2.3
Requires-Dist: opencv-python<5,>=4.13
Requires-Dist: pillow<14,>=13
Requires-Dist: psutil<8,>=7
Requires-Dist: pyarrow<26,>=25
Requires-Dist: pydantic<3,>=2.13
Requires-Dist: pygame-ce<3,>=2.5
Requires-Dist: pyyaml<7,>=6
Requires-Dist: rich<16,>=15
Requires-Dist: stable-baselines3<3,>=2.3
Requires-Dist: tensorboard<3,>=2.16
Requires-Dist: textual<9,>=8.2.8
Requires-Dist: torch==2.13.0; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: torch==2.13.0; sys_platform == 'linux' and platform_machine == 'x86_64'
Requires-Dist: tqdm<5,>=4.67
Requires-Dist: wandb-workspaces<0.5,>=0.4
Requires-Dist: wandb<0.23,>=0.18
Provides-Extra: dataset
Requires-Dist: datasets<6,>=5; extra == 'dataset'
Requires-Dist: pillow<14,>=13; extra == 'dataset'
Provides-Extra: dataset-minari
Requires-Dist: datasets<6,>=5; extra == 'dataset-minari'
Requires-Dist: minari<0.6,>=0.5; extra == 'dataset-minari'
Requires-Dist: pillow<14,>=13; extra == 'dataset-minari'
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/tsilva/gradlab/main/logo.png" alt="GradLab" width="256" />
  <br />
  <!-- repo-tagline:start -->
  <strong>🤖 RL workbench for training game agents 🎮</strong>
  <!-- repo-tagline:end -->
</p>

GradLab is a Python CLI for reinforcement learning researchers. Train game agents
from versioned goals and recipes, inspect their decisions in an interactive
player, and share checkpoints with the evidence needed to compare results.

## Quickstart

[Install uv](https://docs.astral.sh/uv/getting-started/installation/), then run
the bundled CPU example on macOS arm64 or Linux x86-64. It needs no checkout,
credentials, ROM, or tracking service. GradLab uses Python 3.14, which uv can
install automatically.

```bash
uvx gradlab@0.2.7 train gradlab__bandit/ppo
```

A completed run saves a playable policy under `~/.config/gradlab/runs/`.
Copy the playback command printed at the end to open the policy.

On Linux, the desktop player requires GTK 3 and WebKitGTK 4.1. Add `--no-open`
to use the printed local URL in your own browser. The installed package includes
the player assets.

## Explore GradLab

- [Recipes and local training](https://github.com/tsilva/gradlab/tree/main/experiments#readme) covers Atari, NES, ViZDoom, and Gymnasium examples, ROM setup, and tracking.
- [Player guide](https://github.com/tsilva/gradlab/blob/main/docs/player.md) covers browsing checkpoints, inspecting rewards, and exporting episodes.
- [Research catalog](https://github.com/tsilva/gradlab/blob/main/docs/hugging-face-catalog.md) links public policies, datasets, and gameplay videos.
- [Compute operations](https://github.com/tsilva/gradlab/blob/main/COMPUTE.md) covers queued training, evaluation, and the run architecture.
- [Source development](https://github.com/tsilva/gradlab/blob/main/docs/development.md) covers checkout setup, tests, and release validation.

Run `uvx gradlab --help` for the command list.

## License

[MIT License](https://github.com/tsilva/gradlab/blob/main/LICENSE) ·
[Third-party notices](https://github.com/tsilva/gradlab/blob/main/THIRD_PARTY_NOTICES.md)
