summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-10-20 09:26:44 -0700
committerScott Gasch <[email protected]>2026-10-20 09:26:44 -0700
commitc8c6bbc2c1a103e5b07b079a0f8bdf66c7724d80 (patch)
treeb6c2137c9ac577fa83b1e948fa0311d53dfe445d /src/util.c
parent3b5d3677bb14ae14728a1c4b221176bb83667d92 (diff)
Wire NNUE eval into search, build the training pipeline, and add a fast
move/eval-agreement benchmark against Stockfish (tests/lop) Implements the architecture decisions in src/docs/NNUE.md: HalfKAv2_hm feature set, int16/int8 quantization, per-ply accumulator backup for king moves, and a lazy-eval-ready integration into search.c/eval.c. Adds the full annotate_pgns/ training pipeline (extraction, K-fit/ labeling, quiet filtering, tensor building, training, export) plus an end-to-end orchestrator (run_nnue_pipeline.py) and validation tooling (sanity_check_net.py, compare_vs_stockfish_net.py). Adds tests/lop: a 10k-position list-of-positions benchmark comparing engine eval rank and move choice against pre-computed Stockfish/lc0 references, much cheaper than a full self-play match for day-to-day progress checks. First sd10-matched self-play result against classic HCE: LLR +2.28 (H1=+2.94), -72=119+169 over 360 games, confirming the net is "smarter per node" at matched depth. A real-time (--st 4) match is currently weaker (candidate loses ~3 plies of depth to a ~3.3-3.7x nps gap against an unrecalibrated search), consistent with NNUE.md's adoption-criterion section -- pruning/reduction constants still need retuning for the new eval's score scale before a fair real-time comparison is possible. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 23a1647..0192f20 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1019,7 +1019,6 @@ FinishPVTailFromHash(SEARCHER_THREAD_CONTEXT *ctx,
{
if (u64VisitedSigs[u] == u64Sig)
{
- if (uLenRemain > 6) strcat(buf, "<REP>");
goto unmake;
}
}
@@ -1369,7 +1368,9 @@ Return value:
// running under xboard, match its expected format. Otherwise
// be more helpful / verbose.
//
- if ((dNow > 0.35) || ((dNow > 0.15) && (g_Options.fVerbosePosting)))
+ if ((dNow >= g_Options.dPostThrottleSec) ||
+ ((dNow > (0.15 / 0.35) * g_Options.dPostThrottleSec) &&
+ (TRUE == g_Options.fVerbosePosting)))
{
if (TRUE == g_Options.fRunningUnderXboard)
{