Page 1 of 1
Software Recommendations for Computer Go
Posted: Fri May 25, 2018 1:31 pm
by Kirby
A lot of threads on L19 these days are on all of the newfangled computer AIs: Leela, LeelaZero, Elf(?),...
Then even if you get one of these AIs, you have to download weights for the neural network or something, right?
And then there are various threads that pick apart board positions and give various move probabilities (Leela thinks this gives white 58% chance of winning, but this line is only 52% chance, etc.).
What's the best software and/or combination of software to setup to have a strong AI that can give move percentages on various variations - ideally for reviewing a game or a position.
Is it this Elf thing? Or something else in coordination with it?
FWIW, I'm running Ubuntu.
Re: Software Recommendations for Computer Go
Posted: Fri May 25, 2018 2:30 pm
by Gomoto
ELF only runs with Lizzie 0.3 at this moment in time, it is a little unwieldy for now (no variations, no saving, some sgf files dont load. But if you want the strongest available today ...)
I recommend to start with Lizzie 0.4 and Leela Zero. Strong enough for reviewing games and much more convinient.
Re: Software Recommendations for Computer Go
Posted: Fri May 25, 2018 3:02 pm
by Kirby
Gomoto wrote:ELF only runs with Lizzie 0.3 at this moment in time, it is a little unwieldy for now (no variations, no saving, some sgf files dont load. But if you want the strongest available today ...)
I recommend to start with Lizzie 0.4 and Leela Zero. Strong enough for reviewing games and much more convinient.
Thanks. Sounds like you are saying that Elf is the strongest available, but Leela Zero is better supported.
Regarding Leela Zero, I'm supposed to use the weights here:
http://zero.sjeng.org/best-network?
Or are there some other weights that are working better? When I setup Leela Zero, I have to specify weights, right?
Re: Software Recommendations for Computer Go
Posted: Fri May 25, 2018 9:33 pm
by Kirby
So I just gave things a shot.
1.) I downloaded Lizzie (0.4 from here
https://www.reddit.com/r/baduk/comments ... _released/), extracted it.
2.) I downloaded LeelaZero from here, and followed the compilation instructions:
https://github.com/featurecat/leela-zero
3.) I copied 'leelaz' that I got from compiling to the Lizzie folder.
4.) I downloaded the weight file from here:
http://zero.sjeng.org/best-network. It was a gz file, so I gunzipped it.
5.) I copied the gunzipped file from step 4 and renamed it to 'network' under the Lizzie folder.
6.) I tried to run Lizzie using 'java -jar Lizzie.jar', and I get the following exception:
Code: Select all
Exception in thread "AWT-EventQueue-0" java.awt.image.RasterFormatException: (x + width) is outside raster
at java.desktop/sun.awt.image.IntegerInterleavedRaster.createWritableChild(IntegerInterleavedRaster.java:463)
at java.desktop/java.awt.image.BufferedImage.getSubimage(BufferedImage.java:1202)
at wagner.stephanie.lizzie.gui.LizzieFrame.drawPonderingState(LizzieFrame.java:340)
...
Here's the version of java I'm using:
Code: Select all
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
Anyone else run into this?
Re: Software Recommendations for Computer Go
Posted: Fri May 25, 2018 9:41 pm
by Kirby
Happens for me both for lizzie 0.3 and lizzie 0.4...
Re: Software Recommendations for Computer Go
Posted: Fri May 25, 2018 10:39 pm
by Kirby
I also tried building from the source directly. That works, and I can even modify the code to omit the rendering of the pondering thing. But it still won't startup - now it doesn't give a stack trace, either. It just exits.
I also tried on the branch on github ('next'). Same issue.
I guess I have the source now, so I can debug. I'll see what I find out.
Re: Software Recommendations for Computer Go
Posted: Sat May 26, 2018 3:07 am
by Gomoto
Sorry, I dont have any helpful information.
Re: Software Recommendations for Computer Go
Posted: Sat May 26, 2018 3:35 am
by dfan
Hmm, I have never seen that particular exception (or seen anyone mention it). I recommend that you open an issue on the
Lizzie issues page.
Re: Software Recommendations for Computer Go
Posted: Sat May 26, 2018 5:46 am
by vier
I have not tried myself, but looked at the Readme. Did you do this part?
### Building Leela Zero
First, you will need to have a special version of Leela Zero that
continually outputs pondering information. You can get this from one
of the Lizzie releases or build it yourself; just substitute
`leelaz-src/UCTSearch.cpp` for the `UCTSearch.cpp` file found in the
Leela Zero sources. Then copy the resulting `leelaz` to the root of
the Lizzie directory tree.
Re: Software Recommendations for Computer Go
Posted: Sat May 26, 2018 9:23 am
by Kirby
vier wrote:
I have not tried myself, but looked at the Readme. Did you do this part?
### Building Leela Zero
First, you will need to have a special version of Leela Zero that
continually outputs pondering information. You can get this from one
of the Lizzie releases or build it yourself; just substitute
`leelaz-src/UCTSearch.cpp` for the `UCTSearch.cpp` file found in the
Leela Zero sources. Then copy the resulting `leelaz` to the root of
the Lizzie directory tree.
I built the version that was linked, but I don't think I did the UCTSearch bit - I'll give it another shot tonight.
Re: Software Recommendations for Computer Go
Posted: Sat May 26, 2018 11:03 am
by dfan
Kirby wrote:
I built the version that was linked, but I don't think I did the UCTSearch bit - I'll give it another shot tonight.
The version that was linked to already had the UCTSearch.cpp hack applied, so that's probably not the problem.
Usually when people can't start the program, it's because leelaz is not being invoked correctly. See if "./leelaz -g -w network" (or the equivalent if you're on Windows) works for you. (It sounds like you followed the instructions correctly, but who knows.)
Re: Software Recommendations for Computer Go
Posted: Sat May 26, 2018 7:46 pm
by Kirby
Thanks, dfan. You solved this issue. I guess I should read readme files.
I was having the same problem as described here:
https://github.com/gcp/leela-zero/issues/503
Now I don't get the RasterFormatException, but I do get a message saying that that version of leela isn't compatible with Lizzie. So I'll double check on that now.
Re: Software Recommendations for Computer Go
Posted: Sat May 26, 2018 8:38 pm
by Kirby
Got it working. I don't know what was up with the source here:
https://github.com/featurecat/leela-zero
But I used the alternative method of using the official release here:
https://github.com/gcp/leela-zero/releases, and I replaced the UCTSearch.cpp file, as instructed. I also modified config.h to tell it I wasn't using a GPU.
We're in business, now.
Thanks.