Downloads · 30 days
19
13% of all-time downloads
steven0226/alphazero-connect4
alphazero-connect4 is a reinforcement learning model from steven0226. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
19
13% of all-time downloads
All-time downloads
146
Public
Parameters
1.1M
6.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.4 MB · 88%
From the Hugging Face model README

Policy/value ResNet trained from zero human knowledge by self-play + MCTS (AlphaZero-style) on the standard 6x7 Connect Four board.
Play against it here: connect4-arena Space
| Architecture | Conv stem -> 6 residual blocks x 96 filters -> policy head (7 logits, illegal columns masked) + value head (tanh) |
| Input | 3x6x7 planes: own stones / opponent stones / side-to-move |
| Parameters | ~1,102,248 |
| Format | model.safetensors + config.json (rebuild with az.model.create_model) |
Elo anchored at random agent = 0; pure-MCTS-200 anchor calibrated by ladder matches at 989 Elo.
| metric | value |
|---|---|
| Elo (MLE vs anchors) | 1626 |
| vs random agent (40 games) | 100% |
| raw policy (no search) vs random | 100% |
| vs pure MCTS, 200 sims | 100% |

from az.model import create_model # az package: see the Space's bundled copy
import json, torch
from safetensors.torch import load_file
model = create_model(json.load(open("config.json")))
model.load_state_dict(load_file("model.safetensors"))
程式碼、訓練與評估流程、測試與完整證據都在 GitHub:https://github.com/kuotunyu/alphazero-connect4。GitHub kuotunyu 與 Hugging Face steven0226 為同一人。
Source code, the training/evaluation pipeline, tests and the full evidence trail live at https://github.com/kuotunyu/alphazero-connect4. GitHub kuotunyu and Hugging Face steven0226 are the same author.