It is currently Wed Apr 24, 2024 5:58 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
Offline
 Post subject: How do I play against Leela Zero on Sabaki?
Post #1 Posted: Fri Mar 16, 2018 8:18 am 
Beginner
User avatar

Posts: 16
Location: usa
Liked others: 7
Was liked: 0
Rank: 10k
How do I play against Leela Zero on Sabaki? I can't figure it out from the GitHub.

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #2 Posted: Fri Mar 16, 2018 8:27 am 
Gosei

Posts: 1494
Liked others: 111
Was liked: 315
Take a release of LeelaZero https://github.com/gcp/leela-zero/releases (or do you need to actually compile your own version without any AutoGTP!?)
Now you need to tell Sabaki where Leela is (Engines -> Manage)
Now you need to make a new game in Sabaki, then select Engines, Attach

probably you are stuck on one of these steps, but I don't know which it is :p

_________________
North Lecale


This post by Javaness2 was liked by: Allen
Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #3 Posted: Fri Mar 16, 2018 8:52 am 
Lives with ko

Posts: 129
Liked others: 20
Was liked: 17
@OP, for instance use as argument:

--gtp --playouts 2500 --threads 4 --noponder -w theNetworkfile.txt

You can have Leela and Leela Zero play against each other with pretty much the same arguments, Leela11 does not have the -w flag of course.


This post by Sneegurd was liked by: Allen
Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #4 Posted: Fri Mar 16, 2018 11:41 am 
Beginner
User avatar

Posts: 16
Location: usa
Liked others: 7
Was liked: 0
Rank: 10k
Hi, thanks you two. It's working now! I think it was adding those extra arguments, which weren't fully listed in the GitHub instructions.

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #5 Posted: Sat Mar 17, 2018 11:58 pm 
Dies in gote

Posts: 31
Liked others: 0
Was liked: 0
Rank: KGS 4 kyu
You know how to set time for LeelaZ?

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #6 Posted: Sun Mar 18, 2018 7:11 am 
Lives in gote
User avatar

Posts: 452
Liked others: 74
Was liked: 100
Rank: 4 Dan European
kdbaby1412 wrote:
You know how to set time for LeelaZ?


Looking at the GTP documentation, http://www.lysator.liu.se/~gunnar/gtp/gtp2-spec-draft2/gtp2-spec.html I would guess it would be including something like:

Code:
--maintime 300 --byo_yomi_time 5 --byo_yomi_stones 1


I haven't tried this, so it may not work.

On another, not the Leela Zero self-play games are definitely entertaining. Here is Game1 from today on my desktop:

Click Here To Show Diagram Code
[go]$$c LeelaZero self-play
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . 5 . . . . |
$$ | . . 1 , . . . . . , . . . . . , 4 . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . 6 . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . 2 . . . |
$$ | . . . 3 . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------[/go]


The challenge is to guess black's next move. (I would never get it right with infinite guesses, so I've given it below.)

Click Here To Show Diagram Code
[go]$$Bcm7 LeelaZero self-play
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . X . . . . |
$$ | . . X , . . . . . , . . . . . , O . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . O . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . 9 . . |
$$ | . . . . . . . . . . . . . . 5 3 4 0 . |
$$ | . . . , . . . . . , . . . . 1 O 7 . . |
$$ | . . . X . . . . . . . . . 6 2 8 . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------[/go]


Click Here To Show Diagram Code
[go]$$Bcm17 LeelaZero self-play
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . X . . . . |
$$ | . . X , . . . . . , . . . . . , O . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . O . . . |
$$ | . . . . . . . . . . . . . . 9 . . . . |
$$ | . . . . . . . . . . . . . . . . 7 . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , 8 . . |
$$ | . . . . . . . . . . . . . . 0 . . . . |
$$ | . . . . . . . . . . . . . . . . 4 . . |
$$ | . . . . . . . . . . . . . . . 1 5 3 . |
$$ | . . . . . . . . . . . . . . . . X 2 . |
$$ | . . . . . . . . . . . . . . X X O O . |
$$ | . . . , . . . . . , . . . . X O X 6 . |
$$ | . . . X . . . . . . . . . O O O . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------[/go]

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #7 Posted: Sun Mar 18, 2018 8:57 am 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
Enter at the GTP console (only there, not possible at command line):

time_settings 0 10 1

0 = main time
10 = time period
1 = stones per period

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #8 Posted: Sun Mar 18, 2018 10:32 am 
Lives in gote

Posts: 677
Liked others: 6
Was liked: 31
KGS: 2d
I don't have windows 7 so I can't have Sabaki. Any other clients where u can play with Leela Zero?

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #9 Posted: Sun Mar 18, 2018 1:04 pm 
Lives in gote

Posts: 388
Liked others: 416
Was liked: 198
Gomoto wrote:
Enter at the GTP console (only there, not possible at command line):

time_settings 0 10 1

0 = main time
10 = time period
1 = stones per period


Attaching a screenshot for more details - the time_settings go into the "Initial commands (; separated)" line for an engine's settings in Sabaki.


Attachments:
time_limits_sabaki.PNG
time_limits_sabaki.PNG [ 241.34 KiB | Viewed 21220 times ]

_________________
Sorin - 361points.com
Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #10 Posted: Sun Mar 18, 2018 1:38 pm 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
a thanks a lot, did not understand the initial commands until now. (I thought it is just a description for the command line options.)

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #11 Posted: Sun Mar 18, 2018 1:49 pm 
Lives in gote

Posts: 388
Liked others: 416
Was liked: 198
Gomoto wrote:
a thanks a lot, did not understand the initial commands until now. (I thought it is just a description for the command line options.)


I thought at first that that is what you meant. Now I realize that you are referring to a different way, at run time, where one can enter a command like you mentioned, "time_settings 0 10 1" for instance (followed by <Enter> key), in the lower part of the Sabaki window. That is even better, since one can change it easily before any computer move, if needed.
Attaching a screenshot to illustrate your way:


Attachments:
time_limits_sabaki_another_way.PNG
time_limits_sabaki_another_way.PNG [ 649.22 KiB | Viewed 21228 times ]

_________________
Sorin - 361points.com

This post by sorin was liked by: Waylon
Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #12 Posted: Mon Mar 19, 2018 6:35 am 
Lives with ko

Posts: 129
Liked others: 20
Was liked: 17
So you manually enter GTP commands. Why do GUIs not offer time settings for Leela? At least in Drago all time settings are greyed out when you start a game.
As I understand GTP, the GUI asks for what is supported and Leela should tell "I support time settings", which maybe it does not?

EDIT: The output on the Drago GTP console looks a bit mixed up- the result of list_command is somewhere in between, maybe Drago then cannot understand things.

EDIT2: I asked Reddit as well. https://www.reddit.com/r/cbaduk/comment ... _settings/

Code:
--gtp  --playouts 2500 --threads 4 --noponder -w current_networkfile.txt
list_commands
Using 4 thread(s).
RNG seed: 5142955190987569367
Detecting residual layers...v1...128 channels...10 blocks.
Initializing OpenCL.
Detected 1 OpenCL platforms.
Platform version: OpenCL 1.2 CUDA 9.1.75
Platform profile: FULL_PROFILE
Platform name:    NVIDIA CUDA
Platform vendor:  NVIDIA Corporation
Device ID:     0
Device name:   GeForce GTX 970
Device type:   GPU
Device vendor: NVIDIA Corporation
Device driver: 388.13
Device speed:  1253 MHz
Device cores:  13 CU
Device score:  1112
Selected platform: NVIDIA CUDA
Selected device: GeForce GTX 970
with OpenCL 1.2 capability.
Loaded existing SGEMM tuning.
Wavefront/Warp size: 32
Max workgroup size: 1024
Max workgroup dimensions: 1024 1024 64
BLAS Core: Sandybridge
= protocol_version
name
version
quit
known_command
list_commands
quit
boardsize
clear_board
komi
play
genmove
showboard
undo
final_score
final_status_list
time_settings
time_left
fixed_handicap
place_free_handicap
set_free_handicap
loadsgf
printsgf
kgs-genmove_cleanup
kgs-time_settings
kgs-game_over
heatmap

boardsize 19
=

komi 0
=

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #13 Posted: Mon Mar 19, 2018 6:50 am 
Lives with ko

Posts: 129
Liked others: 20
Was liked: 17
BTW, LZ pretty much skyrockets right now!?!

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #14 Posted: Wed Oct 17, 2018 3:23 pm 
Beginner

Posts: 6
Liked others: 0
Was liked: 0
I am obviously doing something wrong here.

I am trying to attach leelazero - leelaz.exe to Sabaki

C:\Users\Owen\Desktop\GO\LeelaZero\leelaz.exe
--gtp -threads 4 --noponder -w C:\Users\Owen\Desktop\GO\LeelaZero\weights.txt (I have tried it without the direct address. i.e. weights.txt)
time_settings 0 31 1;

After I start New, I choose Leela Zero as the engine for black and click OK and all that happens is the hourglass comes up and it does nothing, i.e. it never moves.

What am I doing wrong here?

Attachment:
File comment: image of settings
Sabaki.JPG
Sabaki.JPG [ 40.46 KiB | Viewed 17963 times ]


Thanks

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #15 Posted: Sun Oct 21, 2018 6:57 am 
Dies in gote
User avatar

Posts: 24
Location: Vienna, Austria
Liked others: 669
Was liked: 11
bohemian65 wrote:
What am I doing wrong here?

Try using two minus signs like this:
--threads

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #16 Posted: Sun Oct 21, 2018 7:06 am 
Lives in gote

Posts: 677
Liked others: 6
Was liked: 31
KGS: 2d
Will there be a downloadable version of LZ once it's enough trained, just like Leela 11?

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #17 Posted: Sun Oct 21, 2018 7:31 pm 
Tengen

Posts: 4380
Location: North Carolina
Liked others: 499
Was liked: 733
Rank: AGA 3k
GD Posts: 65
OGS: Hyperpape 4k
Supposedly the most recent version of Lizzie will auto-download a network, but I'm afraid it didn't work for me.

_________________
Occupy Babel!

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #18 Posted: Mon Oct 22, 2018 7:51 pm 
Beginner

Posts: 6
Liked others: 0
Was liked: 0
Waylon wrote:
bohemian65 wrote:
What am I doing wrong here?

Try using two minus signs like this:
--threads


I have tried it with -gtp and -g and as for the threads I have tried that and have taken it out completely and nothing seems to make any difference. It will just never move.

Thanks

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #19 Posted: Tue Oct 23, 2018 12:04 am 
Dies in gote
User avatar

Posts: 24
Location: Vienna, Austria
Liked others: 669
Was liked: 11
From the engines menu you can select the command "Toggle GTP Console". Maybe you can see there a useful hint what's going wrong. E.g. you would see if the program couldn't open the file with the weights.

Top
 Profile  
 
Offline
 Post subject: Re: How do I play against Leela Zero on Sabaki?
Post #20 Posted: Tue Oct 23, 2018 3:37 am 
Beginner

Posts: 6
Liked others: 0
Was liked: 0
Waylon wrote:
From the engines menu you can select the command "Toggle GTP Console". Maybe you can see there a useful hint what's going wrong. E.g. you would see if the program couldn't open the file with the weights.


Here is an image capture of it, it loads the info on the left but after black moves Leela never moves.


Attachments:
Leelatrial.jpg
Leelatrial.jpg [ 399.88 KiB | Viewed 17720 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

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