It is currently Thu Apr 25, 2024 2:30 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Offline
 Post subject: Communication with leela zero
Post #1 Posted: Tue Jul 30, 2019 2:53 pm 
Dies with sente

Posts: 102
Liked others: 13
Was liked: 33
Rank: kgs 2d
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!

Top
 Profile  
 
Offline
 Post subject: Re: Communication with leela zero
Post #2 Posted: Tue Jul 30, 2019 5:05 pm 
Honinbo

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

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Communication with leela zero
Post #3 Posted: Wed Jul 31, 2019 1:42 am 
Dies with sente

Posts: 102
Liked others: 13
Was liked: 33
Rank: kgs 2d
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.

Top
 Profile  
 
Offline
 Post subject: Re: Communication with leela zero
Post #4 Posted: Wed Jul 31, 2019 4:28 am 
Gosei

Posts: 1590
Liked others: 886
Was liked: 528
Rank: AGA 3k Fox 3d
GD Posts: 61
KGS: dfan
I would try bringing this up on the Leela Zero github issues page if you haven't already.

Top
 Profile  
 
Offline
 Post subject: Re: Communication with leela zero
Post #5 Posted: Wed Jul 31, 2019 12:48 pm 
Dies with sente

Posts: 102
Liked others: 13
Was liked: 33
Rank: kgs 2d
Thx dfan, I followed your advice.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users 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