geekyrakshit commited on
Commit
e8bfeaa
·
verified ·
1 Parent(s): 0a2b10c

Rename model to chessforge-35m in model card

Browse files
Files changed (1) hide show
  1. README.md +15 -15
README.md CHANGED
@@ -14,7 +14,7 @@ tags:
14
  - chessformer
15
  - uci-engine
16
  model-index:
17
- - name: ChessformerV2-35M-Joint
18
  results:
19
  - task:
20
  type: move-prediction
@@ -56,12 +56,12 @@ model-index:
56
  name: WDL Value Accuracy (%)
57
  ---
58
 
59
- # ChessformerV2-35M-Joint (35.24M Parameters)
60
 
61
  **Authors:** [Rishiraj Acharya](https://profile.google.com/@rishirajacharya) *(Independent Researcher)* and **Soumik Rakshit** *(Principal Scientist, [eka.care](https://eka.care))*
62
- **Codebase:** [`chessforge`](https://github.com/soumik12345/chessforge) | **Organization:** [`chessforge`](https://huggingface.co/chessforge) | **Compact 5M Sibling:** [`chessforge/ChessformerV2-5M-Joint`](https://huggingface.co/chessforge/ChessformerV2-5M-Joint)
63
 
64
- **ChessformerV2-35M-Joint** is our flagship **35,241,837-parameter** searchless human chess behavioral & cognitive-effort foundation model built in **JAX / Flax NNX**. Using **2.24× fewer parameters and 8× fewer training examples** (`512M` vs. `4.10B`) than `MAIA-3-79M` (`78.90M`), it **surpasses `MAIA-3-79M` across every single evaluation metric on both Titled Online and FIDE Classical Over-The-Board (OTB) chess**, while jointly modeling **System-1 (fast intuition) vs. System-2 (deep calculation)** move distributions $p_\theta(a, u \mid s)$.
65
 
66
  This repository also includes the **Stage-3 KL-Anchored, Value-Frozen Anti-Engine DPO** weights (`dpo_c1p5/model.msgpack`), which explicitly suppress computer-like Stockfish #1 choices on sound human–engine disagreements while still statistically outperforming `MAIA-3-79M` on overall move accuracy.
67
 
@@ -75,7 +75,7 @@ This repository also includes the **Stage-3 KL-Anchored, Value-Frozen Anti-Engin
75
 
76
  ## Architectural Specification
77
 
78
- | Component | Specification (`ChessformerV2-35M-Joint`) |
79
  | :--- | :--- |
80
  | **Backbone** | 16 Pre-RMSNorm blocks, $D = 384$, 12 QK-Norm heads (`head_dim = 32`), SwiGLU MLP (`mlp_ratio = 2.67`), `fp32` residual stream |
81
  | **Hardware Tiling & Readout** | Strict $S = 64$ square-token trunk (`3,235.6 pos/s` on single TPU `v6e-1`) + post-trunk 2-query `CrossAttentionPool` (`[CLS_VALUE, CLS_PONDER]`) |
@@ -95,7 +95,7 @@ This repository also includes the **Stage-3 KL-Anchored, Value-Frozen Anti-Engin
95
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 59.00 ± 0.30 | 86.15 | 3.330 | 59.77 | 0.8553 | 49.51 | 19.16 | 65.69 |
96
  | `MAIA-3-23M` | 22.94M | 4.10B | 61.33 ± 0.29 | 87.84 | 3.047 | 60.34 | 0.8464 | 51.64 | 19.33 | 66.65 |
97
  | `MAIA-3-79M` | 78.90M | 4.10B | 62.52 ± 0.29 | 88.66 | 2.932 | 60.64 | 0.8431 | 52.61 | 19.33 | 67.13 |
98
- | **`ChessformerV2-35M-Joint` (Ours)** | **35.24M** | **0.51B** | **62.98 ± 0.29** | **88.87** | **2.894** | **62.12** | **0.8194** | 53.23 | 19.08 | 67.55 |
99
  | **`+ Anti-Engine DPO (c=1.5)` (`dpo_c1p5/`)** | **35.24M** | **+1.0M** | 62.76 ± 0.29 | 88.68 | 3.076 | 61.39 | 0.8308 | **53.43** | **18.10** | **69.84** |
100
 
101
  ### 2. `Eval-FIDE-OTB` (`144,559` positions; `46,888` Anti-SF positions)
@@ -105,15 +105,15 @@ This repository also includes the **Stage-3 KL-Anchored, Value-Frozen Anti-Engin
105
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 51.99 ± 0.26 | 81.15 | 4.198 | 55.86 | 1.0988 | 38.90 | 19.88 | 61.22 |
106
  | `MAIA-3-23M` | 22.94M | 4.10B | 54.57 ± 0.26 | 83.45 | 3.809 | 56.75 | 1.0712 | 41.09 | 20.14 | 62.36 |
107
  | `MAIA-3-79M` | 78.90M | 4.10B | 55.80 ± 0.26 | 84.48 | 3.650 | 57.08 | 1.0598 | 42.50 | **20.00** | 62.96 |
108
- | **`ChessformerV2-35M-Joint` (Ours)** | **35.24M** | **0.51B** | 58.50 ± 0.25 | 86.37 | 3.300 | 63.89 | 0.7991 | 44.74 | 20.79 | 62.98 |
109
- | **`ChessformerV2-35M-Joint` (`--mask_titles`)** | **35.24M** | **0.51B** | **58.86 ± 0.25** | **86.66** | **3.248** | **65.57** | **0.7516** | **45.05** | 21.01 | 62.67 |
110
  | **`+ Anti-Engine DPO (c=1.5)` (`dpo_c1p5/`)** | **35.24M** | **+1.0M** | 58.03 ± 0.25 | 85.92 | 3.617 | 63.49 | 0.8085 | 44.64 | 20.18 | **64.68** |
111
 
112
  ### 3. Cognitive Effort Calibration & System-1 vs. System-2 Example (`Eval-Titled-Online`)
113
 
114
  | Variant | Marginal Effort NLL $H(U \mid S)$ ↓ | Posterior Effort NLL $H(U \mid S, A)$ ↓ | MI $I(A; U \mid S)$ (nats) ↑ | Joint NLL ↓ | Effort MAE ↓ | Effort Pearson $r$ ↑ |
115
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: |
116
- | **`ChessformerV2-35M-Joint` (Main)** | **2.0554** | **2.0289** | 0.0265 | **3.0916** | 0.0999 | **0.6747** |
117
  | **`+ Anti-Engine DPO (c=1.5)` (`dpo_c1p5/`)** | 2.0618 | 2.0341 | **0.0277** | 3.1578 | **0.0998** | 0.6724 |
118
 
119
  * **Qualitative GM Example (`IM 2748` vs. `GM 2740`, Ply 51, Clock `76.0s`, FEN `2q3k1/1pp1rpp1/pnnr3p/2N1p3/3P4/2P3P1/PP3PBP/3RRQK1 b - - 0 1`):**
@@ -125,7 +125,7 @@ This repository also includes the **Stage-3 KL-Anchored, Value-Frozen Anti-Engin
125
 
126
  ## Repository Contents
127
 
128
- * `model.msgpack` (`~141.0 MB`) — Primary Stage-2 `ChessformerV2-35M-Joint` pure `float32` Flax NNX weights.
129
  * `checkpoints/250000/` — Native Orbax `TrainState` checkpoint for out-of-the-box use with `chessforge.cli.uci` and `chessforge.cli.eval`.
130
  * `dpo_c1p5/model.msgpack` (`~141.0 MB`) — Stage-3 KL-Anchored, Value-Frozen Anti-Engine DPO (`dpo_coef = 1.5`, step `1000`) pure `float32` Flax NNX weights + evaluation JSONs.
131
  * `config.yaml`, `model_config.json`, `train_config.json`, and `eval_results/` — Ready-to-run configs and full evaluation JSONs (including Elo-stratified curves).
@@ -140,14 +140,14 @@ git clone https://github.com/soumik12345/chessforge.git
140
  cd chessforge
141
  pip install -e ".[cpu]" # or ".[cuda12]" / ".[tpu]"
142
 
143
- python -c "from huggingface_hub import snapshot_download; snapshot_download('chessforge/ChessformerV2-35M-Joint', local_dir='./ChessformerV2-35M-Joint')"
144
  ```
145
 
146
  ### 2. Play as a Human-Like UCI Engine (Nibbler / CuteChess / En Croissant / Lichess-Bot)
147
  ```bash
148
  python -m chessforge.cli.uci \
149
- --config ./ChessformerV2-35M-Joint/config.yaml \
150
- --set workdir=./ChessformerV2-35M-Joint \
151
  --step 250000 --title GM --elo 2650 --format otb
152
  ```
153
 
@@ -166,7 +166,7 @@ from chessforge.config import ModelConfig
166
  from chessforge.models import build_model, forward_model
167
  from chessforge.models.joint_time import sample_joint_move_time
168
 
169
- ckpt_dir = Path("./ChessformerV2-35M-Joint")
170
  meta = json.loads((ckpt_dir / "model_config.json").read_text())
171
  model_cfg = ModelConfig(**meta["model_config"])
172
 
@@ -225,6 +225,6 @@ print("WDL probs [loss, draw, win]:", jax.nn.softmax(logits_value[0]).tolist())
225
  author = {Acharya, Rishiraj and Rakshit, Soumik},
226
  year = {2026},
227
  publisher = {Hugging Face},
228
- howpublished = {\url{https://huggingface.co/chessforge/ChessformerV2-35M-Joint}}
229
  }
230
  ```
 
14
  - chessformer
15
  - uci-engine
16
  model-index:
17
+ - name: chessforge-35m
18
  results:
19
  - task:
20
  type: move-prediction
 
56
  name: WDL Value Accuracy (%)
57
  ---
58
 
59
+ # chessforge-35m (35.24M Parameters)
60
 
61
  **Authors:** [Rishiraj Acharya](https://profile.google.com/@rishirajacharya) *(Independent Researcher)* and **Soumik Rakshit** *(Principal Scientist, [eka.care](https://eka.care))*
62
+ **Codebase:** [`chessforge`](https://github.com/soumik12345/chessforge) | **Organization:** [`chessforge`](https://huggingface.co/chessforge) | **Compact 5M Sibling:** [`chessforge/chessforge-5m`](https://huggingface.co/chessforge/chessforge-5m)
63
 
64
+ **chessforge-35m** is our flagship **35,241,837-parameter** searchless human chess behavioral & cognitive-effort foundation model built in **JAX / Flax NNX**. Using **2.24× fewer parameters and 8× fewer training examples** (`512M` vs. `4.10B`) than `MAIA-3-79M` (`78.90M`), it **surpasses `MAIA-3-79M` across every single evaluation metric on both Titled Online and FIDE Classical Over-The-Board (OTB) chess**, while jointly modeling **System-1 (fast intuition) vs. System-2 (deep calculation)** move distributions $p_\theta(a, u \mid s)$.
65
 
66
  This repository also includes the **Stage-3 KL-Anchored, Value-Frozen Anti-Engine DPO** weights (`dpo_c1p5/model.msgpack`), which explicitly suppress computer-like Stockfish #1 choices on sound human–engine disagreements while still statistically outperforming `MAIA-3-79M` on overall move accuracy.
67
 
 
75
 
76
  ## Architectural Specification
77
 
78
+ | Component | Specification (`chessforge-35m`) |
79
  | :--- | :--- |
80
  | **Backbone** | 16 Pre-RMSNorm blocks, $D = 384$, 12 QK-Norm heads (`head_dim = 32`), SwiGLU MLP (`mlp_ratio = 2.67`), `fp32` residual stream |
81
  | **Hardware Tiling & Readout** | Strict $S = 64$ square-token trunk (`3,235.6 pos/s` on single TPU `v6e-1`) + post-trunk 2-query `CrossAttentionPool` (`[CLS_VALUE, CLS_PONDER]`) |
 
95
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 59.00 ± 0.30 | 86.15 | 3.330 | 59.77 | 0.8553 | 49.51 | 19.16 | 65.69 |
96
  | `MAIA-3-23M` | 22.94M | 4.10B | 61.33 ± 0.29 | 87.84 | 3.047 | 60.34 | 0.8464 | 51.64 | 19.33 | 66.65 |
97
  | `MAIA-3-79M` | 78.90M | 4.10B | 62.52 ± 0.29 | 88.66 | 2.932 | 60.64 | 0.8431 | 52.61 | 19.33 | 67.13 |
98
+ | **`chessforge-35m` (Ours)** | **35.24M** | **0.51B** | **62.98 ± 0.29** | **88.87** | **2.894** | **62.12** | **0.8194** | 53.23 | 19.08 | 67.55 |
99
  | **`+ Anti-Engine DPO (c=1.5)` (`dpo_c1p5/`)** | **35.24M** | **+1.0M** | 62.76 ± 0.29 | 88.68 | 3.076 | 61.39 | 0.8308 | **53.43** | **18.10** | **69.84** |
100
 
101
  ### 2. `Eval-FIDE-OTB` (`144,559` positions; `46,888` Anti-SF positions)
 
105
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 51.99 ± 0.26 | 81.15 | 4.198 | 55.86 | 1.0988 | 38.90 | 19.88 | 61.22 |
106
  | `MAIA-3-23M` | 22.94M | 4.10B | 54.57 ± 0.26 | 83.45 | 3.809 | 56.75 | 1.0712 | 41.09 | 20.14 | 62.36 |
107
  | `MAIA-3-79M` | 78.90M | 4.10B | 55.80 ± 0.26 | 84.48 | 3.650 | 57.08 | 1.0598 | 42.50 | **20.00** | 62.96 |
108
+ | **`chessforge-35m` (Ours)** | **35.24M** | **0.51B** | 58.50 ± 0.25 | 86.37 | 3.300 | 63.89 | 0.7991 | 44.74 | 20.79 | 62.98 |
109
+ | **`chessforge-35m` (`--mask_titles`)** | **35.24M** | **0.51B** | **58.86 ± 0.25** | **86.66** | **3.248** | **65.57** | **0.7516** | **45.05** | 21.01 | 62.67 |
110
  | **`+ Anti-Engine DPO (c=1.5)` (`dpo_c1p5/`)** | **35.24M** | **+1.0M** | 58.03 ± 0.25 | 85.92 | 3.617 | 63.49 | 0.8085 | 44.64 | 20.18 | **64.68** |
111
 
112
  ### 3. Cognitive Effort Calibration & System-1 vs. System-2 Example (`Eval-Titled-Online`)
113
 
114
  | Variant | Marginal Effort NLL $H(U \mid S)$ ↓ | Posterior Effort NLL $H(U \mid S, A)$ ↓ | MI $I(A; U \mid S)$ (nats) ↑ | Joint NLL ↓ | Effort MAE ↓ | Effort Pearson $r$ ↑ |
115
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: |
116
+ | **`chessforge-35m` (Main)** | **2.0554** | **2.0289** | 0.0265 | **3.0916** | 0.0999 | **0.6747** |
117
  | **`+ Anti-Engine DPO (c=1.5)` (`dpo_c1p5/`)** | 2.0618 | 2.0341 | **0.0277** | 3.1578 | **0.0998** | 0.6724 |
118
 
119
  * **Qualitative GM Example (`IM 2748` vs. `GM 2740`, Ply 51, Clock `76.0s`, FEN `2q3k1/1pp1rpp1/pnnr3p/2N1p3/3P4/2P3P1/PP3PBP/3RRQK1 b - - 0 1`):**
 
125
 
126
  ## Repository Contents
127
 
128
+ * `model.msgpack` (`~141.0 MB`) — Primary Stage-2 `chessforge-35m` pure `float32` Flax NNX weights.
129
  * `checkpoints/250000/` — Native Orbax `TrainState` checkpoint for out-of-the-box use with `chessforge.cli.uci` and `chessforge.cli.eval`.
130
  * `dpo_c1p5/model.msgpack` (`~141.0 MB`) — Stage-3 KL-Anchored, Value-Frozen Anti-Engine DPO (`dpo_coef = 1.5`, step `1000`) pure `float32` Flax NNX weights + evaluation JSONs.
131
  * `config.yaml`, `model_config.json`, `train_config.json`, and `eval_results/` — Ready-to-run configs and full evaluation JSONs (including Elo-stratified curves).
 
140
  cd chessforge
141
  pip install -e ".[cpu]" # or ".[cuda12]" / ".[tpu]"
142
 
143
+ python -c "from huggingface_hub import snapshot_download; snapshot_download('chessforge/chessforge-35m', local_dir='./chessforge-35m')"
144
  ```
145
 
146
  ### 2. Play as a Human-Like UCI Engine (Nibbler / CuteChess / En Croissant / Lichess-Bot)
147
  ```bash
148
  python -m chessforge.cli.uci \
149
+ --config ./chessforge-35m/config.yaml \
150
+ --set workdir=./chessforge-35m \
151
  --step 250000 --title GM --elo 2650 --format otb
152
  ```
153
 
 
166
  from chessforge.models import build_model, forward_model
167
  from chessforge.models.joint_time import sample_joint_move_time
168
 
169
+ ckpt_dir = Path("./chessforge-35m")
170
  meta = json.loads((ckpt_dir / "model_config.json").read_text())
171
  model_cfg = ModelConfig(**meta["model_config"])
172
 
 
225
  author = {Acharya, Rishiraj and Rakshit, Soumik},
226
  year = {2026},
227
  publisher = {Hugging Face},
228
+ howpublished = {\url{https://huggingface.co/chessforge/chessforge-35m}}
229
  }
230
  ```