Repository navigation
Add kata-get-nn-rows: NN rows each model has evaluated - #42
Closed
ChinChangYang wants to merge 1 commit into
Closed
ChinChangYang wants to merge 1 commit into
ChinChangYang wants to merge 1 commit into
Conversation
A controller that wants to know what a move cost the neural net -- how
many positions the main model and the human SL model actually ran,
not how many visits the search made -- has no way to ask: the
evaluators count their rows (numRowsProcessed, which a cache hit never
reaches), but nothing reports the count, and genmove resets it.
kata-get-nn-rows returns {"main": N, "human": M}, the rows each model
has run since the engine started. The counts only grow: what an
evaluator has run is folded into a per-engine total before genmove
clears its statistics and before boardsize rebuilds it, so the
difference between two calls is the work done in between, around a
genmove, a kata-analyze (which the call itself stops first) or
anything else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Closed without merging: this fork's master is kept as an upstream mirror (ruleset "master: upstream sync only"). The change lives on in branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A controller that wants to know what a move cost the neural net — how many positions the main model and the human SL model actually ran, not how many visits the search made — has no way to ask: the evaluators count their rows (
numRowsProcessed, which a cache hit never reaches), but nothing reports the count, andgenmoveresets it.kata-get-nn-rowsreturns{"main": N, "human": M}, the rows each model has run since the engine started. The counts only grow: what an evaluator has run is folded into a per-engine total beforegenmoveclears its statistics and beforeboardsizerebuilds it, so the difference between two calls is the work done in between — around agenmove, akata-analyze(which the call itself stops first, as any command does) or anything else.One file (
cpp/command/gtp.cpp, +27) and its entry indocs/GTP_Extensions.md. Checked with the MLX build of AuroraGo's corpus engine, where the same hunks are applied; AuroraGo vendors them into itsEngine/as for #32.🤖 Generated with Claude Code