Repository navigation
Marty v2
Marty v2 — Major NNUE & Search Overhaul (+346.1 Elo vs. Marty v1)
Marty v2 (Ted Summers — MChess 8 Gemini A.I. Mod) is a standalone cross-platform UCI chess engine featuring a brand-new 10-king-bucket H=512 SCReLU NNUE trained locally on 33.98M Stockfish-labeled quiet positions, lazy accumulator updates, expanded 7-table correction history, upgraded king-danger search guards, and full compatibility with M-Chess Pro 8.0 opening books (PRBOOK/), personality sliders (SETTINGS.M80), and 3- & 4-piece DTM tablebases (TB/).
Verified Strength Highlights
- Marty v2 PGO vs. Marty v1 PGO (
400 games,8+0.08, 1T, 64 MB, book-off):- +346.12 ± 40.79 Elo (
nElo +528.31, 100.00% LOS) - 352.0 / 400 (88.00%) —
+315 =74 -11,Ptnml(0-2): [0, 4, 13, 58, 125](125 2–0 sweeps, zero 0–2 pair losses)
- +346.12 ± 40.79 Elo (
- Maverick NNUE 100-Game Rematch (
20+0.2, 1T, 128 MB, exact v1 match openings):- Improved from Marty v1's
25.0/100 (+0 =50 -50, −190.8 Elo)to40.5/100 (+4 =73 -23, −66.8 ± 33.1 Elo)— +124.0 Elo real-world gain - Cut losses by 54% (
50 → 23), more than doubled score as Black (17% → 36%), and scored Marty's first wins vs. Maverick (including a win with Black and a 2–0 opening pair sweep)
- Improved from Marty v1's
- Evaluation Accuracy Audit (
350real Maverick match quiet positions vs. Stockfish depth 12):- Depth-10 MAE cut in half (
52.0 → 25.8 cp), bias reduced from−10.6 → −0.6 cp, correlation6.2×higher (0.095 → 0.592), and100.0%sign accuracy on|SF| ≥ 100 cp
- Depth-10 MAE cut in half (
What's New in Marty v2
- 10-King-Bucket
H=512Factorized SCReLU NNUE + King-Bucketed PSQT: Upgraded from(768×4 → 256)×2 → 8to(768×10 → 512)×2 → 8(MTY2format) with material-initialized king-bucketed10×768×8PSQT, calibratedNNUE_SCALE=350, cross-platform.incbinembedding, and newEvalFileUCI option (default <embedded>). - Lazy NNUE Accumulator Updates + Finny Tables: Bit-exact deferred accumulator updates (
max_diff = 0across 15,312 deep search/null-move nodes), reaching ~2.5–3.0M nps (1T) and ~9.5M+ nps (4T Lazy SMP). - Expanded Correction History & Search Guards: Added incremental
minor_hash&major_hashbacking 16kminor_corrandmajor_corrtables pluscont_corr2, upgradedking_in_danger()guards wired into FP/LMP, 1024-scale fractional LMR, Capture LMR +cap_histin qsearch, 6-ply continuation history, and OCB+rooks (3/4) / wrong-colored rook-pawn (1/16) endgame scaling. - 100% Local CPU Training Pipeline (
tools/): Included full C/C++ AVX2+OpenMP source for self-play datagen (marty_datagen.c), castling-aware Stockfish relabeling (sf_relabel.c), and sparse AdamW NNUE training (train_nnue.cpp).
Release Packages Included
Both Marty_v2.zip and Marty_v2.tar.gz contain all 6 prebuilt platform binaries (marty_uci_x64 PGO Linux x64, marty_uci Linux x86, marty_uci_x64.exe Windows x64, marty_uci.exe Windows x86, marty_uci_mac_arm64 macOS Apple Silicon, marty_uci_mac_intel macOS Intel), PRBOOK/, PRBOOK_1998/, TB/, SETTINGS.M80, documentation, and complete C11 source code + source/marty.nnue.