mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Update main net to nn-c0ae49f08b40.nnue
Trained using the recipe https://github.com/vondele/nettest/blob/d39f72420504e474a716b9977c1380541a7b482e/threats.yaml fix CI check for negative evals. fix format passed STC: LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 84032 W: 21876 L: 21490 D: 40666 Ptnml(0-2): 239, 9821, 21553, 10121, 282 https://tests.stockfishchess.org/tests/view/6914b81e7ca87818523318aa passed LTC: LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 126420 W: 32429 L: 31927 D: 62064 Ptnml(0-2): 56, 13748, 35118, 14214, 74 https://tests.stockfishchess.org/tests/view/6916c1277ca8781852331dd8 closes https://github.com/official-stockfish/Stockfish/pull/6431 Bench: 2513286
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ namespace Eval {
|
||||
// for the build process (profile-build and fishtest) to work. Do not change the
|
||||
// name of the macro or the location where this macro is defined, as it is used
|
||||
// in the Makefile/Fishtest.
|
||||
#define EvalFileDefaultNameBig "nn-49c1193b131c.nnue"
|
||||
#define EvalFileDefaultNameBig "nn-c0ae49f08b40.nnue"
|
||||
#define EvalFileDefaultNameSmall "nn-37f18f62d772.nnue"
|
||||
|
||||
namespace NNUE {
|
||||
|
||||
@@ -67,7 +67,6 @@ def Stockfish(*args, **kwargs):
|
||||
|
||||
|
||||
class TestCLI(metaclass=OrderedClassMembers):
|
||||
|
||||
def beforeAll(self):
|
||||
pass
|
||||
|
||||
@@ -141,7 +140,7 @@ class TestCLI(metaclass=OrderedClassMembers):
|
||||
|
||||
def test_bench_128_threads_3_bench_tmp_epd_depth(self):
|
||||
self.stockfish = Stockfish(
|
||||
f"bench 128 {get_threads()} 3 {os.path.join(PATH,'bench_tmp.epd')} depth".split(
|
||||
f"bench 128 {get_threads()} 3 {os.path.join(PATH, 'bench_tmp.epd')} depth".split(
|
||||
" "
|
||||
),
|
||||
True,
|
||||
@@ -167,7 +166,7 @@ class TestCLI(metaclass=OrderedClassMembers):
|
||||
def test_export_net_verify_nnue(self):
|
||||
current_path = os.path.abspath(os.getcwd())
|
||||
self.stockfish = Stockfish(
|
||||
f"export_net {os.path.join(current_path , 'verify.nnue')}".split(" "), True
|
||||
f"export_net {os.path.join(current_path, 'verify.nnue')}".split(" "), True
|
||||
)
|
||||
assert self.stockfish.process.returncode == 0
|
||||
|
||||
@@ -254,7 +253,7 @@ class TestInteractive(metaclass=OrderedClassMembers):
|
||||
self.stockfish.send_command("go depth 5")
|
||||
|
||||
def callback(output):
|
||||
regex = r"info depth \d+ seldepth \d+ multipv \d+ score cp \d+ nodes \d+ nps \d+ hashfull \d+ tbhits \d+ time \d+ pv"
|
||||
regex = r"info depth \d+ seldepth \d+ multipv \d+ score cp -?\d+ nodes \d+ nps \d+ hashfull \d+ tbhits \d+ time \d+ pv"
|
||||
if output.startswith("info depth") and not re.match(regex, output):
|
||||
assert False
|
||||
if output.startswith("bestmove"):
|
||||
@@ -274,7 +273,7 @@ class TestInteractive(metaclass=OrderedClassMembers):
|
||||
def callback(output):
|
||||
nonlocal depth
|
||||
|
||||
regex = rf"info depth {depth} seldepth \d+ multipv \d+ score cp \d+ wdl \d+ \d+ \d+ nodes \d+ nps \d+ hashfull \d+ tbhits \d+ time \d+ pv"
|
||||
regex = rf"info depth {depth} seldepth \d+ multipv \d+ score cp -?\d+ wdl \d+ \d+ \d+ nodes \d+ nps \d+ hashfull \d+ tbhits \d+ time \d+ pv"
|
||||
|
||||
if output.startswith("info depth"):
|
||||
if not re.match(regex, output):
|
||||
@@ -390,7 +389,7 @@ class TestInteractive(metaclass=OrderedClassMembers):
|
||||
def test_verify_nnue_network(self):
|
||||
current_path = os.path.abspath(os.getcwd())
|
||||
Stockfish(
|
||||
f"export_net {os.path.join(current_path , 'verify.nnue')}".split(" "), True
|
||||
f"export_net {os.path.join(current_path, 'verify.nnue')}".split(" "), True
|
||||
)
|
||||
|
||||
self.stockfish.send_command("setoption name EvalFile value verify.nnue")
|
||||
@@ -469,7 +468,7 @@ class TestSyzygy(metaclass=OrderedClassMembers):
|
||||
self.stockfish.send_command("go depth 5")
|
||||
|
||||
def check_output(output):
|
||||
if "score cp -20000" in output or "score mate" in output:
|
||||
if "score cp -20000" in output or "score mate -" in output:
|
||||
return True
|
||||
|
||||
self.stockfish.check_output(check_output)
|
||||
|
||||
Reference in New Issue
Block a user