Show HN: One hour of AlphaZero-style Othello training on only one MacBook Air gi...
Show HN @show
Show HN: One hour of AlphaZero-style Othello training on only one MacBook Air github.com · 3 points · 1 comments · HN thread
TL;DR mac-alpha-zero is an alpha-stage, game-agnostic AlphaZero-style library for Apple Silicon, built on MLX, with batched MCTS and Gumbel search. Its author reports training an Othello agent from scratch in about two hours on one MacBook Air-class M5 with 24 GB, which scored 0.905 against Edax level 1 at 32 simulations per move. The repo ships pretrained Othello weights and a terminal game to play against them.
- Self-play training runs end to end for Connect4 and Othello; chess and 9x9 Go are planned for v0.2 and v0.3.
- The published Othello agent uses a 4-block, 64-channel network and scored 90 wins, 1 draw and 9 losses against Edax 4.6 level 1 over 100 games.
- Scores rise with search budget: against Edax level 1 the agent went from 0.715 (policy only) to 0.905 (32 sims), 0.990 (128 sims) and 1.000 (512 sims).
- On batched search with a network, the MLX/Metal implementation reports up to 4.6x the simulations per second of mctx on JAX CPU at batch size 1,024, but is 0.18x at batch size 1.
- Measured on an Apple M5 with 24 GB, a 10-minute Othello quickstart peaked at about 1.69 GiB; the author says the minimum supported memory is unverified.
- Installable from PyPI as mac-alpha-zero, and the MIT license applies.
Discussion Only one comment, a short Korean remark saying that this kind of training could become feasible on smaller devices over time. The thread is essentially a brief, positive reaction with no substantive debate.
- Such training may spread to smaller devices over time (a few): The single commenter suggests that as hardware shrinks and improves, AlphaZero-style training could run on compact consumer devices. This is a general sentiment and does not engage with the benchmarks or claims.
#AlphaZero #Othello #MLX #AppleSilicon #reinforcementLearning #ShowHN