Rename model to chessforge-5m in model card
Browse files12 unmodified lines1314151617181935 unmodified lines555657585960616263646566676869707172737475767715 unmodified lines939495969798994 unmodified lines10410510610710810911027 unmodified lines13813914014114214314414514614714814915015112 unmodified lines16416516616716816917039 unmodified lines2102112122132142152165 unmodified lines22222322422522622712 unmodified lines- chessformer- uci-enginemodel-index:- name: ChessformerV2-5M-Jointresults:- task:type: move-prediction35 unmodified linesname: WDL Value Accuracy (%)---# ChessformerV2-5M-Joint (5.12M Parameters)**Authors:** [Rishiraj Acharya](https://profile.google.com/@rishirajacharya) *(Independent Researcher)* and **Soumik Rakshit** *(Principal Scientist, [eka.care](https://eka.care))***Codebase:** [`chessforge`](https://github.com/soumik12345/chessforge) | **Organization:** [`chessforge`](https://huggingface.co/chessforge) | **Larger Flagship:** [`chessforge/ChessformerV2-35M-Joint`](https://huggingface.co/chessforge/ChessformerV2-35M-Joint)**ChessformerV2-5M-Joint** is a **5,123,809-parameter** searchless human chess behavioral & cognitive-effort foundation model built in **JAX / Flax NNX**. Strictly smaller than `MAIA-3-5M` (`5,230,084` parameters), it jointly models **human move selection and normalized thinking time** $p_\theta(a, u \mid s) = p_\theta(u \mid s)\,p_\theta(a \mid s, u)$ across both **Titled Online** (Blitz/Rapid) and **FIDE Over-The-Board (OTB) Classical** chess.### Key Highlights* **Strictly Parameter-Matched Small-Scale SOTA:** With fewer parameters than `MAIA-3-5M` (`5.12M` vs. `5.23M`), `ChessformerV2-5M-Joint` outperforms `MAIA-3-5M` by **+1.55% Move Accuracy on Titled Online** (`60.55%` vs. `59.00%`, paired McNemar $\chi^2 = 211.11, p = 7.88 \times 10^{-48}$) and **+2.88% on FIDE OTB** (`54.87%` vs. `51.99%`, $\chi^2 = 892.78, p = 3.64 \times 10^{-196}$).* **Surpasses `MAIA-3-23M` on Classical OTB & `MAIA-3-79M` on Outcome Calibration:** Despite having **4.5× fewer parameters and 8× fewer training examples** (`512M` vs. `4.10B`), `ChessformerV2-5M-Joint` beats `MAIA-3-23M` on FIDE OTB move prediction (`54.87%` vs. `54.57%`, $p = 7.28 \times 10^{-4}$) and outperforms **`MAIA-3-79M` (`15.4×` larger)** on WDL game-outcome calibration across *both* domains (`61.54%` vs. `60.64%` Online; **`62.21%` vs. `57.08%`** OTB).* **Joint Move & Cognitive-Effort Factorization:** Predicts a 16-bin HL-Gauss distribution over scale-invariant cognitive effort $u \in [0,1]$ (Pearson $r = 0.6559$, $\text{MAE} = 0.1024$) and conditions move logits on effort via a rank-16 bilinear `EffortMoveResidual` (`+6,464` parameters), capturing fast System-1 intuition vs. slow System-2 calculation ($I(A; U \mid S) = 0.0260\text{ nats}$).---## Architectural Innovations Over Vanilla Chessformer / MAIA-3| Component | MAIA-3-5M (`5.23M`) | ChessformerV2-5M-Joint (`5.12M`, Ours) || :--- | :--- | :--- || **Board State Markovity** | Non-Markov ($8\times 12$ piece planes only) | **Full Markov `v3`**: piece history + relative castling + side-to-move EP square + Zobrist repetitions || **Clock & Format Context** | Unconditioned (`Blitz` only) | 6-d masked bilateral log-clocks + `has_clock` gate + `Blitz / Rapid / OTB-Classical` embedding |15 unmodified lines| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: || `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 57.59 ± 0.30 | 85.05 | 3.497 | 59.53 | 0.8571 | 47.69 | 19.14 | 65.14 || `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 || **`ChessformerV2-5M-Joint` (Ours)** | **5.12M** | **0.51B** | **60.55 ± 0.29** | **87.37** | **3.143** | **61.54** | **0.8258** | **50.63** | **19.12** | **66.44** || `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 61.33 ± 0.29 | 87.84 | 3.047 | 60.34 | 0.8464 | 51.64 | 19.33 | 66.65 || `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 62.52 ± 0.29 | 88.66 | 2.932 | 60.64 | 0.8431 | 52.61 | 19.33 | 67.13 |4 unmodified lines| `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 50.75 ± 0.26 | 79.82 | 4.401 | 55.60 | 1.1035 | 38.02 | 19.89 | 60.62 || `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 || `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 54.57 ± 0.26 | 83.45 | 3.809 | 56.75 | 1.0712 | 41.09 | 20.14 | 62.36 || **`ChessformerV2-5M-Joint` (Ours)** | **5.12M** | **0.51B** | **54.87 ± 0.26** | **83.69** | **3.721** | **62.21** | **0.8273** | **41.63** | 20.81 | **61.80** || `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 55.80 ± 0.26 | 84.48 | 3.650 | 57.08 | 1.0598 | 42.50 | 20.00 | 62.96 |### 3. Cognitive Effort Prediction & Joint Move–Time Calibration (`Eval-Titled-Online`)27 unmodified linescd chessforgepip install -e ".[cpu]" # or ".[cuda12]" / ".[tpu]"python -c "from huggingface_hub import snapshot_download; snapshot_download('chessforge/ChessformerV2-5M-Joint', local_dir='./ChessformerV2-5M-Joint')"```### 2. Play as a Human-Like UCI Engine (Nibbler / CuteChess / En Croissant / Lichess-Bot)```bashpython -m chessforge.cli.uci \--config ./ChessformerV2-5M-Joint/config.yaml \--set workdir=./ChessformerV2-5M-Joint \--step 250000 --title GM --elo 2550 --format otb```12 unmodified linesfrom chessforge.models import build_model, forward_modelfrom chessforge.models.joint_time import sample_joint_move_timeckpt_dir = Path("./ChessformerV2-5M-Joint")meta = json.loads((ckpt_dir / "model_config.json").read_text())model_cfg = ModelConfig(**meta["model_config"])39 unmodified lines## Training Provenance & Limitations* **Training Corpus (Strictly Pre-Cutoff `<= 2025-07`):** Trained for `250,000` steps at `global_batch_size = 2048` (`512M` positions) on a single Google Cloud TPU `v6e-1` using an exact 1-pass streaming shard iterator (`0%` within-epoch duplicates) and Warmup–Stable–Decay (`WSD`, `lr = 4.0e-4 -> 2.0e-6`, `grad_clip_norm = 2.0`). The first 80% (`200k` steps) trained on **Pool B** (`703.6M` unique positions: Lichess Blitz + Rapid $\ge 1800$ Elo with official title purity enforced $\ge 2350$ Elo + uncapped titled games + FIDE OTB), followed by 20% cosine annealing (`50k` steps) on **Pool C** (`310.6M` unique positions: `88.26%` Pure Titled Online + `11.74%` FIDE OTB Classical).* **Limitations:** Because ~88% of titled training examples carry online game priors, passing `--mask_titles` during inference on classical OTB games can slightly improve pure classical calibration. This 5.12M checkpoint is Stage-2 WSD-trained (without Stage-3 Anti-Engine DPO); for anti-engine preference-aligned weights, see [`chessforge/ChessformerV2-35M-Joint`](https://huggingface.co/chessforge/ChessformerV2-35M-Joint).---5 unmodified linesauthor = {Acharya, Rishiraj and Rakshit, Soumik},year = {2026},publisher = {Hugging Face},howpublished = {\url{https://huggingface.co/chessforge/ChessformerV2-5M-Joint}}}```12 unmodified lines1314151617181935 unmodified lines555657585960616263646566676869707172737475767715 unmodified lines939495969798994 unmodified lines10410510610710810911027 unmodified lines13813914014114214314414514614714814915015112 unmodified lines16416516616716816917039 unmodified lines2102112122132142152165 unmodified lines22222322422522622712 unmodified lines- chessformer- uci-enginemodel-index:- name: chessforge-5mresults:- task:type: move-prediction35 unmodified linesname: WDL Value Accuracy (%)---# chessforge-5m (5.12M Parameters)**Authors:** [Rishiraj Acharya](https://profile.google.com/@rishirajacharya) *(Independent Researcher)* and **Soumik Rakshit** *(Principal Scientist, [eka.care](https://eka.care))***Codebase:** [`chessforge`](https://github.com/soumik12345/chessforge) | **Organization:** [`chessforge`](https://huggingface.co/chessforge) | **Larger Flagship:** [`chessforge/chessforge-35m`](https://huggingface.co/chessforge/chessforge-35m)**chessforge-5m** is a **5,123,809-parameter** searchless human chess behavioral & cognitive-effort foundation model built in **JAX / Flax NNX**. Strictly smaller than `MAIA-3-5M` (`5,230,084` parameters), it jointly models **human move selection and normalized thinking time** $p_\theta(a, u \mid s) = p_\theta(u \mid s)\,p_\theta(a \mid s, u)$ across both **Titled Online** (Blitz/Rapid) and **FIDE Over-The-Board (OTB) Classical** chess.### Key Highlights* **Strictly Parameter-Matched Small-Scale SOTA:** With fewer parameters than `MAIA-3-5M` (`5.12M` vs. `5.23M`), `chessforge-5m` outperforms `MAIA-3-5M` by **+1.55% Move Accuracy on Titled Online** (`60.55%` vs. `59.00%`, paired McNemar $\chi^2 = 211.11, p = 7.88 \times 10^{-48}$) and **+2.88% on FIDE OTB** (`54.87%` vs. `51.99%`, $\chi^2 = 892.78, p = 3.64 \times 10^{-196}$).* **Surpasses `MAIA-3-23M` on Classical OTB & `MAIA-3-79M` on Outcome Calibration:** Despite having **4.5× fewer parameters and 8× fewer training examples** (`512M` vs. `4.10B`), `chessforge-5m` beats `MAIA-3-23M` on FIDE OTB move prediction (`54.87%` vs. `54.57%`, $p = 7.28 \times 10^{-4}$) and outperforms **`MAIA-3-79M` (`15.4×` larger)** on WDL game-outcome calibration across *both* domains (`61.54%` vs. `60.64%` Online; **`62.21%` vs. `57.08%`** OTB).* **Joint Move & Cognitive-Effort Factorization:** Predicts a 16-bin HL-Gauss distribution over scale-invariant cognitive effort $u \in [0,1]$ (Pearson $r = 0.6559$, $\text{MAE} = 0.1024$) and conditions move logits on effort via a rank-16 bilinear `EffortMoveResidual` (`+6,464` parameters), capturing fast System-1 intuition vs. slow System-2 calculation ($I(A; U \mid S) = 0.0260\text{ nats}$).---## Architectural Innovations Over Vanilla Chessformer / MAIA-3| Component | MAIA-3-5M (`5.23M`) | chessforge-5m (`5.12M`, Ours) || :--- | :--- | :--- || **Board State Markovity** | Non-Markov ($8\times 12$ piece planes only) | **Full Markov `v3`**: piece history + relative castling + side-to-move EP square + Zobrist repetitions || **Clock & Format Context** | Unconditioned (`Blitz` only) | 6-d masked bilateral log-clocks + `has_clock` gate + `Blitz / Rapid / OTB-Classical` embedding |15 unmodified lines| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: || `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 57.59 ± 0.30 | 85.05 | 3.497 | 59.53 | 0.8571 | 47.69 | 19.14 | 65.14 || `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 || **`chessforge-5m` (Ours)** | **5.12M** | **0.51B** | **60.55 ± 0.29** | **87.37** | **3.143** | **61.54** | **0.8258** | **50.63** | **19.12** | **66.44** || `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 61.33 ± 0.29 | 87.84 | 3.047 | 60.34 | 0.8464 | 51.64 | 19.33 | 66.65 || `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 62.52 ± 0.29 | 88.66 | 2.932 | 60.64 | 0.8431 | 52.61 | 19.33 | 67.13 |4 unmodified lines| `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 50.75 ± 0.26 | 79.82 | 4.401 | 55.60 | 1.1035 | 38.02 | 19.89 | 60.62 || `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 || `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 54.57 ± 0.26 | 83.45 | 3.809 | 56.75 | 1.0712 | 41.09 | 20.14 | 62.36 || **`chessforge-5m` (Ours)** | **5.12M** | **0.51B** | **54.87 ± 0.26** | **83.69** | **3.721** | **62.21** | **0.8273** | **41.63** | 20.81 | **61.80** || `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 55.80 ± 0.26 | 84.48 | 3.650 | 57.08 | 1.0598 | 42.50 | 20.00 | 62.96 |### 3. Cognitive Effort Prediction & Joint Move–Time Calibration (`Eval-Titled-Online`)27 unmodified linescd chessforgepip install -e ".[cpu]" # or ".[cuda12]" / ".[tpu]"python -c "from huggingface_hub import snapshot_download; snapshot_download('chessforge/chessforge-5m', local_dir='./chessforge-5m')"```### 2. Play as a Human-Like UCI Engine (Nibbler / CuteChess / En Croissant / Lichess-Bot)```bashpython -m chessforge.cli.uci \--config ./chessforge-5m/config.yaml \--set workdir=./chessforge-5m \--step 250000 --title GM --elo 2550 --format otb```12 unmodified linesfrom chessforge.models import build_model, forward_modelfrom chessforge.models.joint_time import sample_joint_move_timeckpt_dir = Path("./chessforge-5m")meta = json.loads((ckpt_dir / "model_config.json").read_text())model_cfg = ModelConfig(**meta["model_config"])39 unmodified lines## Training Provenance & Limitations* **Training Corpus (Strictly Pre-Cutoff `<= 2025-07`):** Trained for `250,000` steps at `global_batch_size = 2048` (`512M` positions) on a single Google Cloud TPU `v6e-1` using an exact 1-pass streaming shard iterator (`0%` within-epoch duplicates) and Warmup–Stable–Decay (`WSD`, `lr = 4.0e-4 -> 2.0e-6`, `grad_clip_norm = 2.0`). The first 80% (`200k` steps) trained on **Pool B** (`703.6M` unique positions: Lichess Blitz + Rapid $\ge 1800$ Elo with official title purity enforced $\ge 2350$ Elo + uncapped titled games + FIDE OTB), followed by 20% cosine annealing (`50k` steps) on **Pool C** (`310.6M` unique positions: `88.26%` Pure Titled Online + `11.74%` FIDE OTB Classical).* **Limitations:** Because ~88% of titled training examples carry online game priors, passing `--mask_titles` during inference on classical OTB games can slightly improve pure classical calibration. This 5.12M checkpoint is Stage-2 WSD-trained (without Stage-3 Anti-Engine DPO); for anti-engine preference-aligned weights, see [`chessforge/chessforge-35m`](https://huggingface.co/chessforge/chessforge-35m).---5 unmodified linesauthor = {Acharya, Rishiraj and Rakshit, Soumik},year = {2026},publisher = {Hugging Face},howpublished = {\url{https://huggingface.co/chessforge/chessforge-5m}}}```
README.md+15-15