It is currently Wed Apr 24, 2024 12:00 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
Offline
 Post subject: Software Recommendations for Computer Go
Post #1 Posted: Fri May 25, 2018 1:31 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #2 Posted: Fri May 25, 2018 2:30 pm 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
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.


This post by Gomoto was liked by: Kirby
Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #3 Posted: Fri May 25, 2018 3:02 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #4 Posted: Fri May 25, 2018 9:33 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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:
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:
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

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #5 Posted: Fri May 25, 2018 9:41 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
Happens for me both for lizzie 0.3 and lizzie 0.4...

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #6 Posted: Fri May 25, 2018 10:39 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #7 Posted: Sat May 26, 2018 3:07 am 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
Sorry, I dont have any helpful information.

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #8 Posted: Sat May 26, 2018 3:35 am 
Gosei

Posts: 1590
Liked others: 886
Was liked: 528
Rank: AGA 3k Fox 3d
GD Posts: 61
KGS: 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.

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #9 Posted: Sat May 26, 2018 5:46 am 
Dies with sente

Posts: 89
Liked others: 8
Was liked: 27
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?
Quote:
### 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.

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #10 Posted: Sat May 26, 2018 9:23 am 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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?
Quote:
### 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

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #11 Posted: Sat May 26, 2018 11:03 am 
Gosei

Posts: 1590
Liked others: 886
Was liked: 528
Rank: AGA 3k Fox 3d
GD Posts: 61
KGS: 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.)

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #12 Posted: Sat May 26, 2018 7:46 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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

Top
 Profile  
 
Offline
 Post subject: Re: Software Recommendations for Computer Go
Post #13 Posted: Sat May 26, 2018 8:38 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
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


This post by Kirby was liked by 2 people: dfan, Kirgan
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group