mac-alpha-zero
An MLX library for training game agents through self-play on Apple Silicon Macs.
What does it do?
Install the library in a Python environment on an Apple Silicon Mac to train a Connect4 agent from scratch. During training, it reports results against random players and search-based opponents. For Othello, you can build Edax to evaluate performance during training; weights, the replay buffer, and score logs are saved in a checkpoint folder. You can also play against an Othello agent in the terminal using the included pretrained weights.
Key features
- Batched Monte Carlo tree search and Gumbel AlphaZero training
- Self-play training for Connect4 and Othello
- Results against different opponents during training and Edax evaluation for Othello
- Save weights, replay buffers, and score logs in checkpoints
- Play in the terminal using pretrained Othello weights