Software Recommendations for Computer Go

For discussing go computing, software announcements, etc.
Post Reply
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Software Recommendations for Computer Go

Post 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.
be immersed
Gomoto
Gosei
Posts: 1733
Joined: Sun Nov 06, 2016 6:56 am
GD Posts: 0
Location: Earth
Has thanked: 621 times
Been thanked: 310 times

Re: Software Recommendations for Computer Go

Post 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.
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Software Recommendations for Computer Go

Post 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?
be immersed
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Software Recommendations for Computer Go

Post 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?
be immersed
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Software Recommendations for Computer Go

Post by Kirby »

Happens for me both for lizzie 0.3 and lizzie 0.4...
be immersed
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Software Recommendations for Computer Go

Post 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.
be immersed
Gomoto
Gosei
Posts: 1733
Joined: Sun Nov 06, 2016 6:56 am
GD Posts: 0
Location: Earth
Has thanked: 621 times
Been thanked: 310 times

Re: Software Recommendations for Computer Go

Post by Gomoto »

Sorry, I dont have any helpful information.
dfan
Gosei
Posts: 1599
Joined: Wed Apr 21, 2010 8:49 am
Rank: AGA 2k Fox 3d
GD Posts: 61
KGS: dfan
Has thanked: 891 times
Been thanked: 534 times
Contact:

Re: Software Recommendations for Computer Go

Post 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.
vier
Dies with sente
Posts: 91
Joined: Wed Oct 30, 2013 7:04 am
GD Posts: 0
Has thanked: 8 times
Been thanked: 29 times

Re: Software Recommendations for Computer Go

Post by vier »

Kirby wrote: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.
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.
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Software Recommendations for Computer Go

Post by Kirby »

vier wrote:
Kirby wrote: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.
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.
be immersed
dfan
Gosei
Posts: 1599
Joined: Wed Apr 21, 2010 8:49 am
Rank: AGA 2k Fox 3d
GD Posts: 61
KGS: dfan
Has thanked: 891 times
Been thanked: 534 times
Contact:

Re: Software Recommendations for Computer Go

Post 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.)
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Software Recommendations for Computer Go

Post 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.
be immersed
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Software Recommendations for Computer Go

Post 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.
be immersed
Post Reply