forked from dhbloo/Yixin-Board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_mix7.toml
208 lines (147 loc) · 6.49 KB
/
config_mix7.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[requirement]
# specify the minimal version of rapfi this config suits to
min_version = [0,39,1]
[general]
# Reload config file on each move
reload_config_each_move = false
# Clear TT after config is loaded
clear_hash_after_config_loaded = false
# Default thread number if not specified (0 means use all hardware concurrency)
default_thread_num = 1
# Output message mode (Options are [normal, brief, ucilike, none])
message_mode = "normal"
# Coordinate convertion mode (Options are [none, X_flipY, flipY_X])
# For Piskvork, choose "none".
# For Yixin-Board GUI, choose "flipY_X".
coord_conversion_mode = "flipY_X"
# Default candidate range (Options are [square2, square2_line3, square3, square3_line4, square4, full_board])
default_candidate_range = "square3_line4"
# Memory reserved for stuff other than hash table in max_memory option
memory_reserved_mb = 0
# Default transposition table size in KB
default_tt_size_kb = 65536
[model]
binary_file = "model210901.bin"
[model.evaluator]
# Type of the evaluator (Options are [mix6nnue, mix7nnue])
type = "mix7nnue"
# The winning rate of black when the game is a draw, in [0, 1] (default is 0.5).
draw_black_winrate = 0.5
# The ratio of adjust draw rate, in [0, 1] (default is 1.0).
draw_ratio = 1.0
# Path to NNUE weights (do not change this unless you know what you are doing)
[[model.evaluator.weights]]
weight_file = "mix7freestyle_bs15.bin.lz4"
[[model.evaluator.weights]]
weight_file = "mix7freestyle_bsmix.bin.lz4"
[[model.evaluator.weights]]
weight_file = "mix7standard_bs15.bin.lz4"
[[model.evaluator.weights]]
weight_file_black = "mix7renju_bs15_black.bin.lz4"
weight_file_white = "mix7renju_bs15_white.bin.lz4"
[search]
# Whether to enable aspiration window
aspiration_window = true
# Number of iterations after we found a mate
num_iteration_after_mate = 8
# Number of iterations after we found only one non-losing move at root
num_iteration_after_singular_root = 8
# Max depth to search (in range [2,200])
max_search_depth = 99
[search.timectl]
# Number of moves spared for the rest of game
match_space = 21.0
# Minimum number of moves spared for the rest of game
match_space_min = 7.0
# Average branch factor to whether next depth has enough time
average_branch_factor = 1.7
# Exit search if turn time is used more than this ratio (even given ample match time)
advanced_stop_ratio = 0.9
# Plan time management at most this many moves ahead
move_horizon = 64
[database]
# Automatic enable the database
# 自动开启数据库
enable_by_default = false
# Database type (Options are [yixindb])
# 数据库类型
type = "yixindb"
# Database path
# 数据库默认路径
url = "rapfi.db"
[database.yixindb]
# Save using the compressed format
# 数据库是否采用压缩格式保存 (非压缩格式下保存的数据库可以使用Yixin打开)
compressed_save = true
# Automatic save the database when closing
# 数据库关闭时是否保存
save_on_close = true
# Number of backup files kept when saving
# 数据库保存时保留备份的个数
num_backups_on_save = 2
# Ignore corrupted database record when loading database file
# 允许读取部分损坏的数据库
ignore_corrupted = true
[database.search]
# Whether to write/update the database in search
# 开启数据库只读模式
readonly_mode = false
# Search before this ply is required to query the database
# 数据库最少查询层数
query_ply = 3
# How many iteration needed to increase one database query ply
# 主要分支下数据库查询层数增加相隔搜索深度
pv_iter_per_ply_increment = 1
# How many iteration needed to increase one database query ply
# 非主要分支下数据库查询层数增加相隔搜索深度
nonpv_iter_per_ply_increment = 2
# PV node before this ply is required to write the database
# 主要分支下数据库最大写入层数,默认为0,增大该层数可以保留更多层主要路线下的胜率结果
pv_write_ply = 0
# How many depth needed to add a new record in PV node
# 主要分支下数据库允许写入的最低搜索深度,默认为25
pv_write_min_depth = 25
# The range of value allowed to write in PV/NonPV node
# 主要分支/非主要分支下数据库允许写入的最大分数范围,默认为800
write_value_range = 800
# Mate node before this ply is required to write the database
# 必胜必败分支下数据库最大写入层数,默认为2,增大该层数可以保留更多层的必胜必败结果
mate_write_ply = 2
# How many depth needed to add a new record in exact Mate node
# 准确步数的必胜必败分支下数据库允许写入的最低搜索深度,默认为0
mate_write_min_depth_exact = 0
# How many depth needed to add a new record in non-exact Mate node
# 没有得到准确步数的必胜必败分支下数据库允许写入的最低搜索深度,默认为0
mate_write_min_depth_nonexact = 0
# For mate longer than this step, we will try to write the record
# 必胜必败下数据库允许写入的最低必胜必败步数,默认为0,少于该步数的必胜必败将不会被记录
mate_write_min_step = 0
# For record found less then this ply, it will try to overwrite it with exact record
# 准确分值允许覆盖数据库的层数,默认为100
exact_overwrite_ply = 100
# For record found less then this ply, it will try to overwrite it with non-exact record
# 非准确分值允许覆盖数据库的层数,默认为0
nonexact_overwrite_ply = 0
# The overwrite rule to write the database
# Options are [better_value_depth_bound, better_depth_bound, better_value, better_label, always, disabled].
# 数据库覆盖模式,默认为"better_value_depth_bound"
overwrite_rule = "better_value_depth_bound"
# The bias added to the exact bound when comparing
# 数据库覆盖时准确分值的深度偏移量,默认为4
overwrite_exact_bias = 4
# The bias added to the old depth bound when comparing
# 数据库覆盖时非准确分值的深度偏移量,默认为-1
overwrite_depth_bound_bias = -1
# The bias added to the queried depth bound when comparing
# 数据库读取时读取结果的深度偏移量,默认为0
query_result_depth_bound_bias = 0
[database.libfile]
# Mapping of marks in library file
# Lib文件标记映射
black_win_mark = "a"
white_win_mark = "c"
black_lose_mark = "c"
white_lose_mark = "a"
# Ignore all comments in imported library file
# 是否忽略导入的Lib文件中的注释
ignore_comment = false