Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KataGo tuning data is not being saved #53

Closed
sente361 opened this issue Jun 3, 2020 · 8 comments
Closed

KataGo tuning data is not being saved #53

sente361 opened this issue Jun 3, 2020 · 8 comments

Comments

@sente361
Copy link

sente361 commented Jun 3, 2020

I installed LizGoban 0.5.0-pre1 and KataGo works fine after doing the initial tuning. However the initial tuning data is apparently not being saved (or at least not being saved where KataGo/LizGoban expects to find it). Please advise on how to remedy this. Many thanks.

LizGoban Info data - initial data immediately after it opens

{"leelaz_command":"C:\Users\adjoy\AppData\Local\Temp\1ccmWyFMOdGhvr5HFTlpN7fNPjm\resources\external\leelaz\leelaz","leelaz_args":["-g","-w","C:\Users\adjoy\AppData\Local\Temp\1ccmWyFMOdGhvr5HFTlpN7fNPjm\resources\external\lznetwork.gz"],"preset_label":{"label":"Leela Zero"},"working_dir":"C:\Users\adjoy\OneDrive\Documents\Chess & Go, etc\Go\Go engines, etc\LizGoban-0.5.0-pre1_win_200530","weight_file":null,"analyze_interval_centisec":20,"wait_for_startup":true,"minimum_suggested_moves":30,"engine_log_line_length":500,"default_board_size":19}

[undefined] start engine: ["C:\\Users\\adjoy\\AppData\\Local\\Temp\\1ccmWyFMOdGhvr5HFTlpN7fNPjm\\resources\\external\\leelaz\\leelaz","-g","-w","C:\\Users\\adjoy\\AppData\\Local\\Temp\\1ccmWyFMOdGhvr5HFTlpN7fNPjm\\resources\\external\\lznetwork.gz"] [8868] stderr| Using 8 thread(s). [8868] stderr| RNG seed: 11503744378463704450 [8868] stderr| BLAS Core: Zen [8868] stderr| Detecting residual layers...v1...192 channels...15 blocks. [8868] stderr| Initializing CPU-only evaluation. [8868] stderr| Setting max tree size to 4324 MiB and cache size to 480 MiB. [8868] leelaz> 0 lz-analyze interval 1 minmoves 30 [8868] stdout| =0 [8868] leelaz> 1 lz-setoption name visits value 0 [8868] stderr| NN eval=0.422830 [8868] stdout| info move Q16 visits 1 winrate 4298 prior 1572 lcb 0 order 0 pv Q16 info move D4 visits 1 winrate 4298 prior 1570 lcb 0 order 1 pv D4 info move D16 visits 1 winrate 4293 prior 1576 lcb 0 order 2 pv D16 info move D17 visits 1 winrate 4287 prior 336 lcb 0 order 3 pv D17 info move Q4 visits 1 winrate 4266 prior 1587 lcb 0 order 4 pv Q4 info move C4 visits 1 winrate 4247 prior 338 lcb 0 order 5 pv C4 info move C16 visits 1 winrate 4245 prior 344 lcb 0 order 6 pv C16 info move Q3 visits 0 winrate 0 prior 338 lcb 0 order 7 pv Q3 info move D3 visits 0 winrate 0 prior 332 lcb 0 order 8 pv D3 info move Q17 visits 0 winrate 0 prior 332 lcb 0 order 9 pv Q17 info move R16 visits 0 winrate 0 prior 330 lcb 0 order 10 pv R16 info move R4 visits 0 winrate 0 prior 328 lcb 0 order 11 pv R4 info move E4 visits 0 winrate 0 prior 27 lcb 0 order 12 pv E4 info move D15 visits 0 winrate 0 prior 27 lcb 0 order 13 pv D15 info move Q15 visits 0 winrate 0 prior 27 lcb 0 order 14 pv Q15 info move Q5 visits 0 winrate 0 prior 27 lcb 0 order 15 pv Q5 info move E16 visits 0 winrate 0 prior 27 lcb 0 order 16 pv E16 info move D5 visits 0 winrate 0 prior 26 lcb 0 order 17 pv D5 info move P4 visits 0 winrate 0 prior 26 lcb 0 order 18 pv P4 info move P16 visits 0 winrate 0 prior 26 lcb 0 order 19 pv P16 info move C17 visits 0 winrate 0 prior 20 lcb 0 order 20 pv C17 info move C3 visits 0 winrate 0 prior 20 lcb 0 order 21 pv C3 info move R17 visits 0 winrate 0 prior 19 lcb 0 order 22 pv R17 info move R3 visits 0 winrate 0 prior 18 lcb 0 order 23 pv R3 info move R15 visits 0 winrate 0 prior 12 lcb 0 order 24 pv R15 info move E17 visits 0 winrate 0 prior 12 lcb 0 order 25 pv E17 info move E3 visits 0 winrate 0 prior 12 lcb 0 order 26 pv E3 info move C15 visits 0 winrate 0 prior 12 lcb 0 order 27 pv C15 info move C5 visits 0 winrate 0 prior 12 lcb 0 order 28 pv C5 info move R5 visits 0 winrate 0 prior 12 lcb 0 order 29 pv R5 [8868] stderr| [8868] stderr| Q16 -> 2 (V: 42.65%) (LCB: 0.00%) (N: 15.72%) PV: Q16 D4 [8868] stderr| D4 -> 2 (V: 42.62%) (LCB: 0.00%) (N: 15.70%) PV: D4 Q16 [8868] stderr| D16 -> 2 (V: 42.60%) (LCB: 0.00%) (N: 15.76%) PV: D16 Q4 [8868] stderr| Q4 -> 2 (V: 42.46%) (LCB: 0.00%) (N: 15.87%) PV: Q4 D16 [8868] stderr| D17 -> 2 (V: 42.35%) (LCB: 0.00%) (N: 3.37%) PV: D17 Q4 [8868] stderr| C4 -> 2 (V: 42.00%) (LCB: 0.00%) (N: 3.38%) PV: C4 Q16 [8868] stderr| C16 -> 2 (V: 41.94%) (LCB: 0.00%) (N: 3.44%) PV: C16 Q4 [8868] stderr| Q3 -> 1 (V: 42.34%) (LCB: 0.00%) (N: 3.38%) PV: Q3 [8868] stderr| 2.4 average depth, 3 max depth [8868] stderr| 8 non leaf nodes, 1.88 average children [8868] stderr| [8868] stderr| 16 visits, 5754 nodes [8868] stderr| [8868] stdout| [8868] stdout| =1 [8868] leelaz> 2 endstate_map [8868] stdout| [8868] stdout| ?2 unknown command [8868] leelaz> 3 kata-analyze interval 1 [8868] stdout| [8868] stdout| ?3 unknown command [8868] leelaz> 4 kata-set-rules chinese [8868] stdout| [8868] stdout| ?4 unknown command [8868] leelaz> 5 name [8868] stdout| [8868] stdout| =5 Leela Zero

.
LizGoban Info data after initial tuning

{"leelaz_command":"C:\\Users\\adjoy\\AppData\\Local\\Temp\\1ccmWyFMOdGhvr5HFTlpN7fNPjm\\resources\\external\\katago\\katago","leelaz_args":["gtp","-override-config","analysisPVLen=50, defaultBoardSize=19, logAllGTPCommunication=false, logSearchInfo=false","-model","C:\\Users\\adjoy\\AppData\\Local\\Temp\\1ccmWyFMOdGhvr5HFTlpN7fNPjm\\resources\\external\\katanetwork.bin.gz"],"preset_label":{"label":"KataGo"},"working_dir":"C:\\Users\\adjoy\\OneDrive\\Documents\\Chess & Go, etc\\Go\\Go engines, etc\\LizGoban-0.5.0-pre1_win_200530","weight_file":null,"analyze_interval_centisec":20,"wait_for_startup":true,"minimum_suggested_moves":30,"engine_log_line_length":500,"default_board_size":19} [undefined] start engine: ["C:\\Users\\adjoy\\AppData\\Local\\Temp\\1ccmWyFMOdGhvr5HFTlpN7fNPjm\\resources\\external\\katago\\katago","gtp","-override-config","analysisPVLen=50, defaultBoardSize=19, logAllGTPCommunication=false, logSearchInfo=false","-model","C:\\Users\\adjoy\\AppData\\Local\\Temp\\1ccmWyFMOdGhvr5HFTlpN7fNPjm\\resources\\external\\katanetwork.bin.gz"] [16944] stderr| KataGo v1.4.2 [16944] stderr| Using OpenCL Device 0: gfx902 (Advanced Micro Devices, Inc.) OpenCL 2.0 AMD-APP (3004.8)

[16944] stderr| No existing tuning parameters found or parseable or valid at: C:\Users\adjoy\AppData\Local\Temp\1ccmWyFMOdGhvr5HFTlpN7fNPjm\resources\external\katago/KataGoData/opencltuning/tune6_gpugfx902_x19_y19_c192_mv8.txt
[16944] stderr| Performing autotuning

[16944] stderr| Using OpenCL Device 0: gfx902 (Advanced Micro Devices, Inc.) OpenCL 2.0 AMD-APP (3004.8)
[16944] stderr| Setting winograd3x3TileSize = 4
[16944] stderr| ------------------------------------------------------
[16944] stderr| Tuning xGemmDirect for 1x1 convolutions and matrix mult
[16944] leelaz> 0 name
[16944] stderr| Testing 56 different configs
[16944] stderr| Tuning 0/56 (reference) Calls/sec 23.9206 L2Error 0 WGD=8 MDIMCD=1 NDIMCD=1 MDIMAD=1 NDIMBD=1 KWID=1 VWMD=1 VWND=1 PADA=1 PADB=1
[16944] stderr| Tuning 1/56 Calls/sec 23.9253 L2Error 0 WGD=8 MDIMCD=1 NDIMCD=1
[16944] stderr| Tuning 17/23 Calls/sec 163246 L2Error 0 TILEDIM=32 TILESTRIDE=8 NCSTRIDE=1
[16944] stderr| Tuning 21/23 Calls/sec 180041 L2Error 0 TILEDIM=16 TILESTRIDE=8 NCSTRIDE=1
.
[16944] stderr| Done tuning
[16944] stderr| ------------------------------------------------------
[16944] stderr| Done tuning, saved results to C:\Users\adjoy\AppData\Local\Temp\1ccmWyFMOdGhvr5HFTlpN7fNPjm\resources\external\katago/KataGoData/opencltuning/tune6_gpugfx902_x19_y19_c192_mv8.txt
[16944] stderr| Loaded config C:\Users\adjoy\AppData\Local\Temp\1ccmWyFMOdGhvr5HFTlpN7fNPjm\resources\external\katago/default_gtp.cfg and/or command-line and query overrides
[16944] stderr| Loaded model C:\Users\adjoy\AppData\Local\Temp\1ccmWyFMOdGhvr5HFTlpN7fNPjm\resources\external\katanetwork.bin.gz
[16944] stderr| Model name: g170-b15c192-s1672170752-d466197061
[16944] stderr| GTP ready, beginning main protocol loop
[16944] stdout| =0 KataGo
[16944] leelaz> 1 lz-analyze interval 1 minmoves 30
[16944] stdout|
[16944] stdout| =1
[16944] leelaz> 2 lz-setoption name visits value 0
[16944] stdout|
[16944] stdout| ?2 unknown command
[16944] leelaz> 3 endstate_map
[16944] stdout|
[16944] stdout| ?3 unknown command
[16944] leelaz> 4 kata-analyze interval 1
[16944] stdout|
[16944] stdout| =4
[16944] leelaz> 5 kata-set-rules chinese
[16944] stdout|
[16944] stdout| =5
[16944] leelaz> 6 name
[16944] stdout|
[16944] stdout| =6 KataGo

@kaorahi
Copy link
Owner

kaorahi commented Jun 3, 2020

Thanks for reporting this! It seems that KataGo changed its behavior in v1.3.4 and my package may have been broken from LizGoban 0.4.0-pre3. I will try to fix this issue.

@kaorahi
Copy link
Owner

kaorahi commented Jun 7, 2020

I'm planning to release a fixed package after the next version (1.4.3) of KataGo.

@sente361
Copy link
Author

sente361 commented Jun 8, 2020

Great! I look forward to it.

@sente361 sente361 closed this as completed Jun 8, 2020
@kaorahi
Copy link
Owner

kaorahi commented Jun 8, 2020

I reopen this as a reminder for me.

@kaorahi kaorahi reopened this Jun 8, 2020
@kaorahi
Copy link
Owner

kaorahi commented Jun 14, 2020

@GopherAl, would you try https://github.com/kaorahi/lizgoban/releases/tag/v0.5.0-pre1.90 ? Is this issue fixed?

@sente361
Copy link
Author

I presume you will do a new release incorporating KataGo v1.4.4 which hopefully has solved the problem. So I will wait for that, if okay with you.

@kaorahi
Copy link
Owner

kaorahi commented Jun 14, 2020

OK. I released LizGoban 0.5.0-pre2 with KataGo 1.4.4. Please close this issue if it works well.

https://github.com/kaorahi/lizgoban/releases/tag/v0.5.0-pre2

@sente361
Copy link
Author

I tested your new release. It works well. Thanks to you and @lightvector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants