86th Amateur Series Division 2

Discussion of computer chess matches and engine tournaments.

Moderator: Ras

User avatar
Graham Banks
Posts: 44522
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: 86th Amateur Series Division 2

Post by Graham Banks »

###################################################
# log on/off - turn logging on and off
# resign - resign value in centipawns
# contempt - +ve value discourages drawishness
###################################################
log off
resign 500
contempt 0
##################################################################
# montecarlo - Use montecarlo tree search (MCTS) if set to 1
# treeht - Maximum size of tree to store in memory given in MB.
# Note that this memory is not allocated at start up; it only
# specifies the maximum limit the tree could grow to.
# Note: Don't think you are making scorpio weak by not setting
# this memory to high value, infact treeht=0 is the strongest
# MCTS setting.
# frac_freeze_tree [0 - 100] - freeze tree after this percentage of time is spent
# frac_alphabeta [0 - 100] - rollouts alpha-beta search percentage when using AB-rollouts + MCTS with shared tree
# frac_abrollouts [0 - 100] - rollouts alpha-beta search percentage when using AB-rollouts + AB with shared tree
# frac_abprior [0 - 100] - standard alpha-beta search percentage when using AB + MCTS, and AB used as prior
# alphabeta_man_c [0 - 32] - switch to regular alpha-beta search with this many pieces on board
# mcts_strategy_depth [0 - 64] - Lookahead depth for MCTS rollouts
# alphabeta_depth [0 - 64] - Fixed search depth for standard alphabeta searches at the leaves
# evaluate_depth [-5 - 64] - Fixed search depth for policy evaluation of new children during expansion
# (-5=uniform,-4=eval,-3=see,-2=recap qsearch,-1=no-checks qsearch 0=qsearch,x=search)
# backup_type [0 - 8] - minmax = 0, averaging = 1, mixed = 2, for mixing score with
# previous ID use 3,4,5 resp., 6 is classic MCTS, 7 is mixing by visit count
# 8 is RMS averaging
# select_formula [0 - 3] - selection formula to be used for MCTS search
# 0=AlphaZero 1=UCT 2=Reverse KL
# reuse_tree - reuse MCTS tree between moves
# virtual_loss - virtual loss for parallel search
# visit_threshold - minimum number of visits for minimax backup
# policy_temp - Temperature for move policy
# cpuct_init - Starting cpuct value in %
# cpuct_base - Denominator of cpuct forumula
# cpuct_factor - Multiplier for the log term in %
# fpu_is_loss - FPU is loss (1=loss, -1=win, 0=reduction)
# fpu_red - Reduction factor for FPU when fpu_is_loss = 0
# insta_move_factor [0 - 1000] - Factor for making insta moves
##################################################################
montecarlo 0
treeht 0
frac_freeze_tree 100
frac_alphabeta 0
frac_abrollouts 20
frac_abprior 30
alphabeta_man_c 12
mcts_strategy_depth 30
alphabeta_depth 16
evaluate_depth 0
backup_type 6
rms_power 140
select_formula 0
reuse_tree 1
virtual_loss 1
visit_threshold 800
policy_temp 215
cpuct_init 84
cpuct_base 75610
cpuct_factor 348
fpu_red 33
fpu_is_loss 0
insta_move_factor 0
#############################################################################
# Parallel search setup
# mt - number of processors
# smp_depth - split depth for smp
# cluster_depth - split depth for cluster search
# message_poll_nodes - number nodes to search before checking for message
#############################################################################
mt 1
smp_depth 8
cluster_depth 12
message_poll_nodes 20
smp_type ABDADA
cluster_type YBW
##################################################################
# Hashtable sizes in mb.
# ht - main hash table shared by ALL threads
# eht - evalualtion hash table allocated PER thread
# pht - pawn hash table allocated PER thread
# Usually 1m or 2mb is enough for pawn hash table, but the others
# can be set as high as possible
##################################################################
ht 256
eht 16
pht 4
##########################################################################
# EGBB
# egbb_path - path to dll/so file for probing endgame egbbs
# egbb_files_path - path to endgame egbbs, if not specified it takes
# value of egbb_path
# egbb_cache_size - cache size for egbbs in MBs
# egbb_ply_limit_percent - percent of plies from the root to egbb probing
# egbb_depth_limit - depth from the leaves to egbb probing
# egbb_load_type - egbb load type with the following values
# 0 = none are loaded
# 1 = all 3/4 men are loaded
# 2 = Not implemented yet
# 3 = all 5 men are loaded
##########################################################################
egbb_path F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nnprobe-windows-cpu
egbb_files_path F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\egbb
egbb_cache_size 32
egbb_load_type 3
egbb_depth_limit 6
#######################################
# NN settings
#------------------------
# use_nn - turn off/on neural network
# nn_cache_size - neural network cache size in MBs
# nn_path - path to neural network
# nn_type - type of neural network (0=scorpio, 1=lczero)
# device_type - CPU or GPU
# delay - Sleep threads for this amount. Set this to 1
# if you are using way too many threads than you
# have physical cores (maybe when >16x more).
# float_type - inference precison for tensorrt = FLOAT/HALF/INT8
# wdl_head - network has WDL head (e.g JH networks do)
# win/draw/loss_weight - weights for WDL resp in precent, range is [0...1000]
# min_policy_value - minimum policy value in per mill. For 1%, set to 10
# max_collisions_ratio - percentage of (allowed number of collisions) / (threads per device)
# max_terminals_ratio - percentage of (allowed number of terminals) / threads
# batch_size_factor - when not 0, batch size is determined by multiplying number of
# multiprocessorbs by this number. If 0, batch size equals number of threads
# scheduling - scheduling of threads on multi-GPU systems.
# FCFS = first-come-first-served
# ROUNDROBIN = round robin scheduling
#######################################
use_nn 0
nn_cache_size 256
nn_type 0
wdl_head 0
nn_path F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nets-scorpio\ens-net-20x256.pb
device_type CPU
n_devices 1
delay 0
float_type HALF
win_weight 100
draw_weight 100
loss_weight 100
min_policy_value 0
max_collisions_ratio 25
max_terminals_ratio 200
batch_size_factor 0
scheduling FCFS
################################################################
# Multiple NNs settings
#------------------------
# The opening is played by default network specified above
# nn_man_m/e -- threshold piece counts for middle/end game
# nn_type_m/e -- neural network type for middle/end game
# >=0 = as specified before
# -1/-2/-3 = used to refer to either opening/midgame/endgame network
# nn_path_m/e -- path to neural networks for middle/end game
# policy_temp_m/e -- policy temperature for middle/endgame
# wdl_head_m/e -- wdl value head for middle/endgame
# fpu_is_loss_m/e -- FPU is loss (1=loss, -1=win, 0=reduction)
# fpu_red_m/e -- Reduction factor for FPU when fpu_is_loss = 0
# nn_cache_size_m/e -- NN cache size for middle/end game
# ensemble -- percent of time to use ensembling [0-100]
# ensemble_type -- 0 = arthimetic mean, 1 = root mean cube, 2 = use one net
# 3 = use policy and value from two different nets
################################################################
nn_man_m 24
nn_man_e 16
nn_type_m -1
nn_type_e -1
nn_path_m F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nets-scorpio\ens-net-20x256.pb
nn_path_e F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nets-scorpio\ens-net-20x256.pb
policy_temp_m 215
policy_temp_e 215
fpu_red_m 33
fpu_red_e 33
fpu_is_loss_m 0
fpu_is_loss_e 0
wdl_head_m 0
wdl_head_e 0
nn_cache_size_m 256
nn_cache_size_e 256
ensemble 0
ensemble_type 0
################################################################
# NNUE settings
#------------------------
# use_nnue - turn off/on NNUE
# nnue_type - type of NNUE net (0=stockfish, 1=scorpio)
# nnue_path - path to NNUE
# nnue_scale - [0..1024] scale factor nnue score
# Default is 128 i.e no scaling
# Other values scale by (nnue_scale/128)
################################################################
use_nnue 1
nnue_type 1
nnue_path F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nets-scorpio\ens-net-20x256.pb
nnue_scale 128
gbanksnz at gmail.com
Daniel Shawul
Posts: 4186
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: 86th Amateur Series Division 2

Post by Daniel Shawul »

No no, there is still something wrong.
The nnue_path is not right.
It is using the main scorpio neural network net when it should be using a NNUE net.
Here is what I get after installation.

Code: Select all

DISPLAY: 'mydownload' TYPE: DOWNLOAD STATE: TRANSFERRED
PRIORITY: FOREGROUND FILES: 1 / 1 BYTES: 32487785 / 32487785 (100%)
Transfer complete.                                                                                                                                                                                                                           processed file: egbbdll64.dll
processed file: nncpuprobe.dll
processed file: nnprobe.dll
processed file: nnueprobe.dll
Successfully processed 4 files; Failed processing 0 files
        1 file(s) moved.
"Making a test run"
feature done=0
Number of cores 4 of 4
treeht 81840078 X 328 = 25600.0 MB
processors [4]
ht 67108864 X 16 = 1024.0 MB
eht 262144 X 8 X 4 = 16.0 MB
pht 32768 X 24 X 4 = 3.0 MB
EgbbProbe 4.3 by Daniel Shawul
egbb_cache 4084 X 8216 = 32.0 MB
0 egbbs loaded !
Loading NNCPU : C:\Users\dshaw\Downloads\Scorpio\nets-nnue/net-scorpio-k16.bin
NNCPU loaded !
loading_time = 0s
# rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
# [st = 8335ms, mt = 29220ms , hply = 0 , moves_left 10]
2 55 0 43 2 0 0 e2e4 c7c5
3 19 0 461 3 230500 0 e2e4 e7e5 d2d4 e5d4
4 55 0 2378 4 475600 0 e2e4 e7e5 f1c4 f8c5
5 42 1 6539 5 594454 0 e2e4 e7e5 g1f3 b8c6 b1c3
6 39 2 21304 6 968363 0 e2e4 c7c5 g1f3 b8c6 b1c3 g8f6
7 37 2 28290 7 1131600 0 e2e4 c7c5 g1f3 b8c6 f1b5 g8f6 b5c6 b7c6
8 37 3 37077 8 1123545 0 e2e4 c7c5 g1f3 b8c6 f1b5 g8f6 b5c6 b7c6
9 48 6 74418 9 1127545 0 e2e4 c7c5 g1f3 d7d6 d2d4 c5d4 f3d4 g8f6 b1c3
10 47 9 119084 10 1253515 0 e2e4 e7e5 g1f3 b8c6 d2d4 e5d4 f3d4 g8f6 b1c3 f8c5 d4c6 b7c6
11 48 15 194477 11 1287927 0 e2e4 c7c5 g1f3 b8c6 d2d4 c5d4 f3d4 g8f6 b1c3 c6d4 d1d4
12 55 24 386826 12 1559782 0 e2e4 c7c5 g1f3 d7d6 d2d4 c5d4 f3d4 e7e5 d4f3 g8f6 b1c3 c8g4
13 42 31 527723 13 1680646 0 e2e4 c7c5 g1f3 d7d6 d2d4 c5d4 f3d4 e7e5 d4b3 c8e6 b1c3 a7a6 c3d5
14 37 42 690995 14 1622053 0 e2e4 c7c5 g1f3 g7g6 b1c3 b8c6 d2d4 c5d4 f3d4 f8g7 d4c6 b7c6 f1c4 d8c7
15 34 64 1290170 15 2000263 0 e2e4 c7c5 g1f3 b8c6 d2d4 c5d4 f3d4 g7g6 f1e2 f8g7 c1e3 g8f6 b1c3 d7d5 e4d5 f6d5 c3d5 d8d5 d4c6 d5c6
16 31 93 2040807 16 2187360 0 e2e4 c7c5 g1f3 b8c6 d2d4 c5d4 f3d4 e7e5 d4b3 g8f6 c1g5 f8b4 c2c3 b4e7 g5f6 e7f6 f1c4
17 52 155 3126352 17 2010515 0 e2e4 c7c5 g1f3 b8c6 b1c3 d7d6 d2d4 c5d4 f3d4 g8f6 a2a4 g7g6 f1e2 a7a6 c1e3 f8g7 d4c6 b7c6
18 57 213 4443266 18 2085061 0 e2e4 c7c5 g1f3 b8c6 b1c3 g8f6 d2d4 c5d4 f3d4 d7d6 h2h3 c8d7 d4c6 d7c6 f1d3 g7g6 a2a4 d8a5
19 41 272 6653415 19 2438935 0 e2e4 c7c5 g1f3 b8c6 b1c3 d7d6 d2d4 c5d4 f3d4 g8f6 h2h3 g7g6 c1e3 c8d7 f1c4 f8g7 d1d2 c6d4 e3d4
20 40 443 12430358 20 2804683 0 e2e4 c7c5 g1f3 b8c6 d2d4 c5d4 f3d4 e7e5 d4b5 d7d6 f1c4 f8e7 b5c3 g8f6 e1g1 c8e6 c4e6 f7e6 c1g5 e8g8 h2h3
20 40 493 15682845 20 3179814 0 e2e4 c7c5 g1f3 b8c6 d2d4 c5d4 f3d4 e7e5 d4b5 d7d6 f1c4 f8e7 b5c3 g8f6 e1g1 c8e6 c4e6 f7e6 c1g5 e8g8 h2h3
# Stat: nodes 15682845 <16% qnodes> tbhits 0 splits 0 badsplits 0 time 4940ms nps 3174664 eps 1199040 nneps 0
move e2e4
Bye Bye
Last edited by Daniel Shawul on Wed Jun 02, 2021 3:25 pm, edited 1 time in total.
User avatar
Graham Banks
Posts: 44522
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: 86th Amateur Series Division 2

Post by Graham Banks »

Daniel Shawul wrote: Wed Jun 02, 2021 3:22 pm No no, there is still something wrong.
The nnue_path is not right.
What should it be?
gbanksnz at gmail.com
Daniel Shawul
Posts: 4186
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: 86th Amateur Series Division 2

Post by Daniel Shawul »

It should be the NNUE net under the nets-nnue directory

Code: Select all

nets-nnue/net-scorpio-k16.bin
Did you re-download install.bat before doing the installation as I outlined before ?
User avatar
Graham Banks
Posts: 44522
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: 86th Amateur Series Division 2

Post by Graham Banks »

F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nets-nnue\nn-62ef826d1a6d.nnue
gbanksnz at gmail.com
User avatar
Graham Banks
Posts: 44522
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: 86th Amateur Series Division 2

Post by Graham Banks »

Daniel Shawul wrote: Wed Jun 02, 2021 3:26 pm It should be the NNUE net under the nets-nnue directory

Code: Select all

nets-nnue/net-scorpio-k16.bin
Did you re-download install.bat before doing the installation as I outlined before ?
Yes - think it's okay now.
gbanksnz at gmail.com
Daniel Shawul
Posts: 4186
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: 86th Amateur Series Division 2

Post by Daniel Shawul »

That is a stockfish net, so you have to use the one I trained. Make sure you have net-scorpio-k16.bin set instead

Code: Select all

use_nnue                 1
nnue_type                1
nnue_path                F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nets-nnue\net-scorpio-k16.bin
nnue_scale               256
User avatar
Graham Banks
Posts: 44522
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: 86th Amateur Series Division 2

Post by Graham Banks »

I've changed it to F:\ChessGUI2_net\ENGINES\Scorpio_3.0.12_64-bit\nets-nnue\net-scorpio-k16.bin
gbanksnz at gmail.com
Daniel Shawul
Posts: 4186
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: 86th Amateur Series Division 2

Post by Daniel Shawul »

Ok thanks I will watch games to make sure it is working correctly.
You should go to bed now :) I will let you know if there is a problem tomorrow.
Daniel Shawul
Posts: 4186
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: 86th Amateur Series Division 2

Post by Daniel Shawul »

Also the "nnue_scale" should be set to 256 for the net-scorpio-k16.bin net.
You have it set to 128 so that should be changed.