CGLemon / Sayuri

AlphaZero based engine for the game of Go (圍棋/围棋).
GNU General Public License v3.0
74 stars 9 forks source link

windows version #2

Open nambung opened 2 years ago

nambung commented 2 years ago

can we expect a windows version this year?

CGLemon commented 2 years ago

Sorry about that! I can not promise it because I have no Windows device and programming tool currently. I plan to develop the Windows next year, may do it on March if I can go to the college to get free Windows device.

cryptsport commented 1 year ago

when can expect the windows version?

CGLemon commented 1 year ago

I finally get the windows these days. I will do it next month.

CGLemon commented 1 year ago

It is Windows binary version with Eigen backend (CPU-only). May someone give it a try?

Here is binary file on my google drive. The version is v0.4.1. You may download the weights here.

Thanks!

cryptsport commented 1 year ago

I'll try with pleasure! what interests you first of all? a match with katago?

cryptsport commented 1 year ago

requires libc++.dll

CGLemon commented 1 year ago

@cryptsport

Thanks! I will fix it.

CGLemon commented 1 year ago

@cryptsport

I update the static version on the original google drive. Should not depend any library now.

cryptsport commented 1 year ago

works in sabaki! (win 7, 13x13, 19x19, game, analyze) thank you very much! with what parameters to check?

cryptsport commented 1 year ago

Zenith Go 7 - Sayuri, Zen gave up on move 205 (Zenith Go 7 9dan, Sayuri -t 3 -w uce14-swa-1700k-v2.bin.txt), Zen spent a little more time

CGLemon commented 1 year ago

@cryptsport

Thanks for your help! I am curious about the playouts per second on your computers. Adding the option -a will show the MCTS diagnostic verbose.

cryptsport commented 1 year ago

QuadCore AMD Athlon X4 950, 3700 MHz (37 x 100) t3 t4

CGLemon commented 1 year ago

Each core produces 4~5 playouts per second. Look like 15x192 network is too big for most users.

nambung commented 10 months ago

how to launch last windows version? requires libc++.dll

CGLemon commented 10 months ago

@nambung Thanks to report this issue. The binary file of last version can be found in the release page. But I do not really understand Windows environment. Seem the libc++.dll is not included in the orginal Windows. You may need to download MinGW, please see Windows Version (Experiment).

@cryptsport How did you solve this problem? Did download any developing tool on your computer? Like, Visual Studio or MinGW. Thanks!

cryptsport commented 10 months ago

@CGLemon it doesn't work for me either. in the old version, you changed the binary file so that there was no dependence on any library (see the posts above)

CGLemon commented 10 months ago

@cryptsport Thanks! I will try to fix it when I have free time.

cryptsport commented 10 months ago

the latest version works if add to the folder libc++.dll and libunwind.dll. Sayuri plays interesting! please make windows version 25x25!

CGLemon commented 10 months ago

@cryptsport Update the static version and 25x25 for v0.6.1 here. Does the static version still need the DLL files?

cryptsport commented 10 months ago

@CGLemon everything is ok, .dll does not require. thank you so much for the 25x25 version!

CGLemon commented 10 months ago

@cryptsport I update the cuda version and the depending cuda dll here. May you give it a try? Thanks!

cryptsport commented 10 months ago

@CGLemon Good news! I'll try it now!

cryptsport commented 10 months ago

requires cudart64_12.dll

cryptsport commented 10 months ago

I found cudart64_12.dll. now requires api-ms-win-core-libraryloader-l1-2-0.dll. I found, requires api-ms-win-security-systemfunctions-l1-1-0.dll, I found, error when launching the application

cryptsport commented 10 months ago

sorry, I didn't see it right away, I added the cuda12-dll folder. the same mistakes, except cudart64_12.dll

hope366 commented 10 months ago

I got an error message that cudart64_12.dll and cublas64_12.dll are missing in my environment. I haven't been able to get them, so I can't get them to work.

hope366 commented 10 months ago

cublas64_12.dll cublasLt64_12.dll cudart64_12.dll I got these three files. When started from the command line, the CUDA version worked as follows. 無題

However, when starting with LizzieYzy, the following error occurred. When I started the CUDA version, it put a load on the GPU (it felt like the analysis was starting). However, candidate moves are not displayed on the board. The moment I placed a stone manually, the following error occurred. 無題

CGLemon commented 10 months ago

@cryptsport Thanks! I think I miss the Windows SDK packet.

@hope366 Thanks! You started the engine successfully. The engine was aborted because it encountered unexpected condition. This is a bug which I missed.

CGLemon commented 9 months ago

@cryptsport @hope366

Fix the bug. Do you still encounter the same problem?

hope366 commented 9 months ago

I tried running your newly prepared "Sayuri-v0.6.1-cuda12-windows-x86.exe" on LizzieYzy. When it started up, there were no errors and it appeared to be successful. However, candidate moves are not displayed on the board. GPU is under load during analysis. It looks like it's analyzing internally. If you stop the analysis with the space key, the GPU load will disappear. "Game mode" seems to be working properly.

cryptsport commented 9 months ago

error when launching the application

cryptsport commented 9 months ago

@hope366 which version of LizzieYzy did you use?

hope366 commented 9 months ago

@cryptsport This is a compilation of the latest main branch. It is almost the same as the latest version "v2.5.3", but includes some fixes and improvements made since the release of 2.5.3.

CGLemon commented 9 months ago

@hope366 That was weird. You may try to check the engine status via terminal and add -a option to show the search result. Enter the genmove <color> or analyze <color> to start the search.

@cryptsport May you simply describe the error? Did it still miss the api-ms-win-* dll? May you add all three cuda dll?

cryptsport commented 9 months ago

I run it from the command line. there are 2 files in the folder: exe and network. asks cudart64_12.dll. I am adding it and 2 others from the folder cuda12-dll. asks api-ms-win-core-libraryloader-l1-2-0.dll. I am adding it. asks api-ms-win-security-systemfunctions-l1-1-0.dll. I am adding it. issues an "application error"

cryptsport commented 9 months ago

for convenience, I renamed Sayuri-v0.6.1-cuda12-windows-x86.exe to Sayuri.exe and zero-swa-2200k.bin.txt to zero.bin.txt. It shouldn't affect, right?

hope366 commented 9 months ago

@CGLemon When launched from the command line, the analysis appears to be working. I didn't understand how to use -a 😅 無題

CGLemon commented 9 months ago

@cryptsport To rename it is Ok.

@hope366 Add the -a here,

Sayuri.exe -w weights.txt -t 1 -b 1 -p 400 -a

But I don’t see any problem. Maybe the problem is in the LizzieYzy.

hope366 commented 9 months ago

I tried -a. As you can see, although the analysis appears to be occurring internally, there are still no candidate moves displayed on the board. Does this mean that LizzieYzy needs special code to display sayuri's suggested moves? 無題

CGLemon commented 9 months ago

The format of Sayuri’s analyze is almost as same as LeelaZero. Only different is additional scoreLead label.

The verbose shows the search is correct but LizzieYzy does not display the move. May you try to use Sabaki? If Sabaki is correct, the problem is in the LizzieYzy.

hope366 commented 9 months ago

I tried it with Sabaki. The top one is KataGo and the bottom one is Sayuri. Even in Sabaki, the analysis results for Sayuri were not displayed. Analysis results will not be displayed, but you can play against Sayuri. 無題 1無題

CGLemon commented 9 months ago

Thank to report this issue!

CGLemon commented 9 months ago

@cryptsport I tested the engine on the raw WIndows10 and it worked well. What's your Windows version?

cryptsport commented 9 months ago

@CGLemon Windows 7

CGLemon commented 9 months ago

@hope366 Fix the analyzing bug on MSVC. I think it may work on LizzieYzy. The engine is here.

@cryptsport I see this web. I think it means the last SDK does not support for Windows 7.

cryptsport commented 9 months ago

@CGLemon I will update Windows soon. Sorry for the unnecessary trouble!

hope366 commented 9 months ago

@CGLemon I tried "Sayuri-v0.6.1-cuda12-windows-x64.exe" that you newly prepared. As you can see, LizzieYzy has a candidate move😄 thank you very much. 無題

fhb231231 commented 9 months ago

I'd like to play with the older weights (v0.5 and before) on Windows. I tried "Sayuri-v0.5.0-eigen-windows-x64.exe" on the Release page, but didn't work out. I'm wondering if it's the "libc++.dll" issue mentioned previously. Is it possible to help recompile the binary?

CGLemon commented 9 months ago

@fhb231231

I update the last v0.5 executed file here. I still recommend to use the last engine because some bugs are fixed.

fhb231231 commented 9 months ago

Many thanks and well noted.