full MoE model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- chess
|
| 5 |
+
- mixture-of-experts
|
| 6 |
+
- transformer
|
| 7 |
+
- recurrent
|
| 8 |
+
- policy
|
| 9 |
+
- pytorch
|
| 10 |
+
library_name: pytorch
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Chess MoE (five 99M experts + router)
|
| 14 |
+
|
| 15 |
+
Jointly trained Switch MoE. Five **99M** squares64 specialists plus a small
|
| 16 |
+
MLP router on the incumbent `global_hidden`. Compact vocab 1968.
|
| 17 |
+
|
| 18 |
+
This file is **`latest.pt` at step 550** (2026-09-14 20:15 UTC).
|
| 19 |
+
Train loss ~2.4342. Val hard CE ~1.2483.
|
| 20 |
+
|
| 21 |
+
## Elo
|
| 22 |
+
|
| 23 |
+
Search-free greedy policy (legal-masked argmax). No book, no Syzygy, no MCTS.
|
| 24 |
+
Opponent: Stockfish 19 `UCI_LimitStrength` / `UCI_Elo`, movetime=0.05s, ply cap 160.
|
| 25 |
+
This is **not** FIDE or Lichess Elo.
|
| 26 |
+
|
| 27 |
+
**Estimate: 2028 UCI_Elo**.
|
| 28 |
+
|
| 29 |
+
| SF UCI_Elo | Score | W-D-L | Ply-cap (counted as draw) |
|
| 30 |
+
|---|---|---|---|
|
| 31 |
+
| 2050 | 0.469 (32g) | 10-10-12 | 1 |
|
| 32 |
+
|
| 33 |
+
_logistic from 32 games vs 2050 score=0.469_
|
| 34 |
+
|
| 35 |
+
## Experts
|
| 36 |
+
|
| 37 |
+
- `incumbent`
|
| 38 |
+
- `puzzle`
|
| 39 |
+
- `endgame`
|
| 40 |
+
- `opening`
|
| 41 |
+
- `middlegame`
|
| 42 |
+
|
| 43 |
+
Router: LayerNorm → 736→256→256→5 (~257,221 params).
|
| 44 |
+
Hard argmax dispatch. Incumbent encode is reused if the gate picks it.
|
| 45 |
+
|
| 46 |
+
## Files
|
| 47 |
+
|
| 48 |
+
- `latest.pt` — full bundle (router + all five expert state dicts)
|
| 49 |
+
- `router.pt` — router head only
|
| 50 |
+
- `experts/<name>.pt` — each 99M specialist
|
| 51 |
+
- `router_config.json`
|
| 52 |
+
- `train.log`
|
| 53 |
+
- `elo_eval.json` (if present)
|
| 54 |
+
|
| 55 |
+
Load with this repo and `MOVE_VOCAB_VERSION=compact`:
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from chess_inference import load_checkpoint, get_model_move
|
| 59 |
+
model = load_checkpoint("latest.pt", device="cuda")
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
Not a drop-in replacement for the standalone incumbent / puzzle / endgame /
|
| 63 |
+
opening / middlegame repos. Those stay as the pre-joint specialists.
|