Skip to content

v0.1.2: one night of Othello training

Latest

Choose a tag to compare

@natsu0529 natsu0529 released this 01 Dec 10:25
· 2 commits to main since this release
a5fa338

uvx mac-alpha-zero play othello now plays an agent trained for one night on a single Mac. At 512 simulations per move it beats Edax 4.6 level 4 and scores just above even against level 5.

uvx mac-alpha-zero play othello

On first use, the command downloads the attached othello.safetensors (1,249,885 bytes) into ~/.cache/mac-alpha-zero/ and checks its SHA-256, 490a771beb54fc5f3e7aa832ce61a78863721e3b6baa00ef6434a680a37ef993.

The agent

The network is a 4-block, 64-channel ResNet trained from scratch by Gumbel self-play for 480 training minutes on a 24 GB M5 with MLX 0.32.4. That came to 313,084 self-play games and a 1.71 GiB peak memory footprint. The settings are the same as the two-hour v0.1.0 run: seed 0, the eight board symmetries, a 200k replay buffer, 32 simulations and a constant learning rate.

Against Edax 4.6, 100 games per cell (50 six-ply openings, both colors, opening seed 0):

Search per move Level 1 Level 2 Level 3 Level 4 Level 5
32 simulations 0.985 0.780 0.570 0.300 0.140
128 simulations 1.000 0.920 0.680 0.485 0.380
512 simulations 0.990 0.985 0.880 0.735 0.555

On a second set of openings (seed 1), the agent scored 0.900 / 0.735 / 0.590 against levels 3–5 at 512 simulations. play othello uses 32 simulations by default; pass --simulations 512 for the stronger setting.

Edax at these levels searches only a few plies per move, so these results measure the strength one Mac reaches overnight, not search efficiency. The strength curve, the full tables and the commands are in ROADMAP.md.

Changes

  • play othello downloads the v0.1.2 weights instead of the v0.1.0 weights (#43, part of #37).
  • One night of Othello training is recorded in ROADMAP.md and the README (#42).

The two-hour weights stay on the v0.1.0 release. To play them, download them and pass their path: mac-alpha-zero play othello path/to/othello.safetensors.