|
kato引擎自带benchmark命令。
示例如下:
katago-opencl.exe benchmark -model ..\weights\katago-40b.bin.gz -config ..\config\katago.cfg
替换权重路径和配置文件路径。
支持多个参数,比如,测试多少v,用多少线程同时测试。示例:
katago-opencl.exe benchmark -model ..\weights\katago-40b.bin.gz -config ..\config\katago.cfg -t 1,4,8,16,24,32
同时测试1,4,8,16,24,32 线程。-t 指定测试的线程数。
默认测试10次平均,都可以修改,示例:
katago-opencl.exe benchmark -model ..\weights\katago-40b.bin.gz -config ..\config\katago.cfg -boardsize 19 -v 3200 -t 16 -n 5
测试19x19的棋盘。 -v 指测试3200v,-n 5,取五次平均。 -t 16 ,只测试16线程。
katago的benchmark 功能非常完整了,可自己看说明参考。
.\katago-opencl.exe benchmark -help
DESCRIPTION:
Benchmark with gtp config to test speed with different numbers of
threads.
USAGE:
benchmark [-config <FILE>] [-model <FILE>] [-v <VISITS>] [-t <THREADS>]
[-n <NUM>] [...other flags...]
Where:
-config <FILE>
Config file to use (see gtp_example.cfg or configs/gtp_example.cfg).
Defaults to: (dir containing katago.exe)/default_gtp.cfg
-model <FILE>
Neural net model file. Defaults to: (dir containing
katago.exe)/default_model.bin.gz
-v <VISITS>, -visits <VISITS>
How many visits to use per search (default 800)
-t <THREADS>, -threads <THREADS>
Test these many threads, comma-separated, e.g. '4,8,12,16'
-n <NUM>, -numpositions <NUM>
How many positions to sample from a game (default 10)
-override-config <KEYVALUEPAIRS> (accepted multiple times)
Override config parameters. Format: "key=value, key=value,..."
-sgf <FILE>
Optional game to sample positions from (default: uses a built-in-set
of positions)
-boardsize <SIZE>
Size of board to benchmark on (7-19), default 19
-s, -tune
Automatically search for the optimal number of threads (default if not
specifying specific numbers of threads)
-i <SECONDS>, -time <SECONDS>
Typical amount of time per move spent while playing, in seconds
(default 5)
--, -ignore_rest
Ignores the rest of the labeled arguments following this flag.
-version
Displays version information and exits.
-h, -help
Displays usage information and exits.
|
|