werner-duvaud/muzero-general
MuZero implementation
What it solves
MuZero General provides an educational, commented implementation of the MuZero algorithm. It allows users to train artificial intelligence agents that learn to master games by planning ahead, without needing to be told the rules of the environment beforehand.
How it works
MuZero learns by interacting with an environment and building an internal model of how the world works. It represents observations as a "latent state" and predicts how its actions will change that state, while also estimating rewards, values, and policies. It uses Monte Carlo tree search (MCTS) to simulate future outcomes based on these predictions to decide the best action to take. The project is built using PyTorch for the neural networks and Ray for parallel processing.
Who it’s for
This project is for researchers, students, and developers interested in reinforcement learning who want to study or experiment with the MuZero architecture. It is designed to be adaptable, allowing users to plug in new games by implementing a simple interface.
Highlights
- Fully commented, educational codebase based on DeepMind's original paper and pseudocode.
- Supports both single-player and two-player turn-based games with discrete actions.
- Includes built-in support for parallel self-play, prioritized replay, and reanalysis.
- Provides flexible network options, including fully connected and residual networks.
- Ready-to-use examples for environments like CartPole, Lunar Lander, and Breakout.
Related
- Project
- Project
- Project
- Project