Installation instruction of shogi engines (v.2019 May)

May 28, 2019

Since my last instruction to install the strongest shogi software, there are remarkable developments of shogi engines. The strongest software at that time has a rating 4150, but now it reaches R4400! (We note that the ELO rating of top human players is about R3100). This dramatical change comes from an invention of a neural network system to evaluate the position. It should be distinguished from the software which uses deep learning, such as Alpha Zero. Instead, people use shallow layers, which is manageable by CPU. This new method was invented by Yu Nasu who belong to a team "the end of genesis T.N.K.evolution turbo type D" in the "world championship of Shogi software 2018 (WCSC28)". While the evaluation file in my last instruction (based on so-called KPPT format) is considerably large (nearly 1GB), the new evaluation (which is called NNUE format) is merely 64MB, but the latter is much stronger than the previous format!

 

As in the previous instruction, we have to combine

(1) interface programs

(2) engine

(3) evaluation file

(4) (option) initial move book

 

(1) As in my previous instruction, the best free interfaces are Shogidokoro and ShogiGUI. The installation of them overlaps with my previous explanation.

(2) The best engine is still Yaneuraou, but the version is upgraded to 4.85. For Windows user, you can download the binary file "YaneuraOu2018V485all.zip". After you unzip it, you find many files, You have to choose one of the files for the engine. To use NNUE format evaluation file, you need to select "Yaneuraou2018NNUE_*". If your CPU is relatively new and supports AVX2 instruction, the best choice *=tournament version (YaneuraOu2018NNUE_tournament) If your CPU is old you have to choose sse42, sse41, sse2, nosse versions (without tournament in the name). You may check which version works by click these binary files. The latter one is slower than the previous but can be more widely used. If a black DOS screen shows up, this version works! You need to make a directory to put files, say "Yaneuraou2019". You move an exe file to this directory and need to make a directory called "eval", then you can move to the next step


(3) Installation of evaluation file. Currently, the strongest evaluation file is called "Kristallweisen" (named after German white beer), "illqha4" (a Japanese word for Dolphin), and "orqha1018", which are supposed to be the strongest at this moment. You may grab one of them, download and decompress. You can find "nn.bin" in the decompressed files, which should be moved into "eval" directory which you created in the previous step.

The directory structure should look like follows,

Yaneuraou

-- YaneuraOu2018NNUE_tournament.exe

-- eval

    |- nn.bin

You are more or less finished. You can register the new Yaneouraou from interface programs as previously. (For ShogiGUI, you choose menus Tools-Engine settings. Press the "Add" button and select the Yaneuraou exe file. You meet "Engine settings" window which may look as follows,

 

 There are many options. What should be careful is

USI_Ponder: This should be off for the self match (game between two software on the same machine)

Threads: depend on your hardware. I recommend that it should be lower than maximum thread-1 or 2 or just the CPU core number)

Hash: 16 (MB) is too small. I recommend it to be higher than 1024 (1GB) if your computer supports it.

NetworkDelay, NetworkDelay2: They are options to circumvent the delay of response on the games through network (in the unit of milliseconds).

DepthLimit, NodesLimit: They should be zero to tune the engine strongest. For the matches with the human, I recommend starting from DepthLimit=1, or NodesLimit=100, which are the weakest tuning which may be weak enough for intermediate players.Book(Something): These are options to use initial book set-up. If you are planning to install initial book as well, you have to be careful. I will explain to them if there are requests.

 

That is it! Enjoy Shogi!

 

Please reload

特集記事

以前より、私のツィートや記事にコメントをいただいている、コンピュータ将棋に大変詳しい方(まふさんと名乗られています)が、技巧の定跡の開発を始められました。定跡を作るためのデータとして私がレーティング計測用に作った棋譜ファイルを使っていただいているという縁もあり、新定跡のテストを私が担当することになり...

技巧新定跡(まふ定跡)

December 8, 2016

1/10
Please reload

最新記事

September 30, 2018

Please reload

アーカイブ