Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- chess
|
| 5 |
+
- reinforcement-learning
|
| 6 |
+
- pytorch
|
| 7 |
+
- safetensors
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
#Chess Engine
|
| 11 |
+
|
| 12 |
+
Custom chess neural network trained on high-elo Lichess games.
|
| 13 |
+
|
| 14 |
+
## Architecture
|
| 15 |
+
- **Backbone**: ResNet with 10 blocks, 128 channels
|
| 16 |
+
- **Parameters**: 44.98M
|
| 17 |
+
- **Policy Head**: 20480 move logits
|
| 18 |
+
- **Value Head**: Win probability [-1, 1]
|
| 19 |
+
|
| 20 |
+
## Training
|
| 21 |
+
- **Phase 1**: Supervised learning on 1800+ Elo games
|
| 22 |
+
- **Phase 2**: Self-play reinforcement learning
|
| 23 |
+
|
| 24 |
+
## Board Encoding
|
| 25 |
+
- 19 input planes (12 piece planes + side to move + castling + en passant + move clock)
|
| 26 |
+
- 8x8 board representation
|
| 27 |
+
|
| 28 |
+
## Move Encoding
|
| 29 |
+
- Flat index: (from_square * 64 + to_square) * 5 + promotion_type
|
| 30 |
+
- Total vocabulary: 20480 moves
|