Download scripts/rescorer-optional-syzygy.patch from Pawitt/zero-evaluator: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/datasets/Pawitt/zero-evaluator/resolve/main/scripts/rescorer-optional-syzygy.patch
- Command line
-
hf download hf://datasets/Pawitt/zero-evaluator/scripts/rescorer-optional-syzygy.patch
-
curl -L -o rescorer-optional-syzygy.patch https://huggingface.co/datasets/Pawitt/zero-evaluator/resolve/main/scripts/rescorer-optional-syzygy.patch
1.24 kB
| diff --git a/src/selfplay/loop.cc b/src/selfplay/loop.cc | |
| index a0a03d7..6bc4736 100644 | |
| --- a/src/selfplay/loop.cc | |
| +++ b/src/selfplay/loop.cc | |
| void ProcessFile(const std::string& file, SyzygyTablebase* tablebase, | |
| const auto& board = history.Last().GetBoard(); | |
| if (board.castlings().no_legal_castle() && | |
| (board.ours() | board.theirs()).count() <= 3 && | |
| - board.pawns().empty()) { | |
| + tablebase->max_cardinality() >= 3 && board.pawns().empty()) { | |
| ProbeState state; | |
| WDLScore wdl = tablebase->probe_wdl(history.Last(), &state); | |
| // Only fail state means the WDL is wrong, probe_wdl may produce | |
| void RescoreLoop::RunLoop() { | |
| if (!tablebase.init( | |
| options_.GetOptionsDict().Get<std::string>(kSyzygyTablebaseId)) || | |
| tablebase.max_cardinality() < 3) { | |
| - std::cerr << "FAILED TO LOAD SYZYGY" << std::endl; | |
| - return; | |
| + std::cerr << "No Syzygy tablebases loaded; continuing without tablebase " | |
| + "rescoring. Positions and moves are unaffected." | |
| + << std::endl; | |
| } | |
| auto dtmPaths = | |
| options_.GetOptionsDict().Get<std::string>(kGaviotaTablebaseId); | |