Life In 19x19
http://www.lifein19x19.com/

Communication with leela zero
http://www.lifein19x19.com/viewtopic.php?f=18&t=16810
Page 1 of 1

Author:  golem7 [ Tue Jul 30, 2019 2:53 pm ]
Post subject:  Communication with leela zero

Hi everyone,

Not sure if this is the right place, it will be a bit technical...

I'm working on a small analysis project with leela zero. Unfortunately I'm stuck.
In my application (java) I create a thread for leela zero and have it analyze a game by sending it GTP commands and parsing the answers.

So far so good, everything works as intended but then after a few moves, leela zero just stops answering my GTP commands. The process is still running but seems unresponsive. No errors/exceptions either. I don't really know how to proceed. Leela will be sending analysis data (after "lz-analyze" command) and when I send the next move the answers just stop coming even though everything was working fine before. This happens usually at move 4 of the game I want to analyze but can happen a bit before, too.

Has anyone observed the described behavior before?
I could really use a hint here.

Thx lovely people!

Author:  Kirby [ Tue Jul 30, 2019 5:05 pm ]
Post subject:  Re: Communication with leela zero

Maybe you could compare what you're doing to what Lizzie does. Sounds like you're even using Java.

I didn't look much, but you could start here?

https://github.com/featurecat/lizzie/bl ... .java#L467

Author:  golem7 [ Wed Jul 31, 2019 1:42 am ]
Post subject:  Re: Communication with leela zero

Thx a lot Kirby but I've read that file over and over again already ;)

I've even tried to use their GTP approach but it doesn't really help. As I said it works fine - and then stops working.
Might be some buffering problem but it's hard to debug.

I just thought in case it's a bug from leela zero then other people might have encountered it before.

Author:  dfan [ Wed Jul 31, 2019 4:28 am ]
Post subject:  Re: Communication with leela zero

I would try bringing this up on the Leela Zero github issues page if you haven't already.

Author:  golem7 [ Wed Jul 31, 2019 12:48 pm ]
Post subject:  Re: Communication with leela zero

Thx dfan, I followed your advice.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/