Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

TorchRL Multi-Agent Cooperation Tutorial

This 60-minute hands-on tutorial introduces multi-agent reinforcement learning (MARL) through practical examples using TorchRL and PettingZoo (MPE). You will learn to build, train, and evaluate cooperative multi-agent systems with communication.

Tutorial in 30 Seconds

TorchRL is a scalable, modular library for reinforcement learning research and PettingZoo provides lightweight multi-agent environments.

Key capabilities:

After this tutorial, you will understand:

Official References

Getting Started

Prerequisites

This tutorial runs in a Docker container with all dependencies pre-configured. No additional setup is required beyond the steps below.

Setup Instructions

  1. Navigate to the tutorial directory:

    > cd tutorials/TorchRL_Multi_Agent_Cooperation
  2. Build the Docker image:

    > ./docker_build.sh
  3. Launch Jupyter Lab:

    > ./docker_bash.sh

Dependency Management

Tutorial Notebooks

Work through the following notebooks in order:

Changelog