How do I play against Leela Zero on Sabaki?

For discussing go computing, software announcements, etc.
User avatar
Allen
Beginner
Posts: 16
Joined: Sun Jun 05, 2011 5:21 pm
Rank: 10k
GD Posts: 0
Location: usa
Has thanked: 7 times

How do I play against Leela Zero on Sabaki?

Post by Allen »

How do I play against Leela Zero on Sabaki? I can't figure it out from the GitHub.
Javaness2
Gosei
Posts: 1545
Joined: Tue Jul 19, 2011 10:48 am
GD Posts: 0
Has thanked: 111 times
Been thanked: 322 times
Contact:

Re: How do I play against Leela Zero on Sabaki?

Post by Javaness2 »

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
Sneegurd
Lives with ko
Posts: 129
Joined: Fri Mar 23, 2012 8:57 am
GD Posts: 0
Has thanked: 20 times
Been thanked: 17 times

Re: How do I play against Leela Zero on Sabaki?

Post by Sneegurd »

@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.
User avatar
Allen
Beginner
Posts: 16
Joined: Sun Jun 05, 2011 5:21 pm
Rank: 10k
GD Posts: 0
Location: usa
Has thanked: 7 times

Re: How do I play against Leela Zero on Sabaki?

Post by Allen »

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.
kdbaby1412
Dies in gote
Posts: 31
Joined: Mon Nov 14, 2016 1:49 pm
Rank: KGS 4 kyu
GD Posts: 0

Re: How do I play against Leela Zero on Sabaki?

Post by kdbaby1412 »

You know how to set time for LeelaZ?
User avatar
drmwc
Lives in gote
Posts: 452
Joined: Sat Dec 01, 2012 2:18 pm
Rank: 4 Dan European
GD Posts: 0
Has thanked: 74 times
Been thanked: 100 times

Re: How do I play against Leela Zero on Sabaki?

Post by drmwc »

kdbaby1412 wrote:You know how to set time for LeelaZ?
Looking at the GTP documentation, http://www.lysator.liu.se/~gunnar/gtp/g ... -spec.html I would guess it would be including something like:

Code: Select all

--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]
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: How do I play against Leela Zero on Sabaki?

Post by Gomoto »

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
Pippen
Lives in gote
Posts: 677
Joined: Thu Sep 16, 2010 3:34 pm
GD Posts: 0
KGS: 2d
Has thanked: 6 times
Been thanked: 31 times

Re: How do I play against Leela Zero on Sabaki?

Post by Pippen »

I don't have windows 7 so I can't have Sabaki. Any other clients where u can play with Leela Zero?
sorin
Lives in gote
Posts: 389
Joined: Wed Apr 21, 2010 9:14 pm
Has thanked: 418 times
Been thanked: 198 times

Re: How do I play against Leela Zero on Sabaki?

Post by sorin »

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 25169 times
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: How do I play against Leela Zero on Sabaki?

Post by Gomoto »

a thanks a lot, did not understand the initial commands until now. (I thought it is just a description for the command line options.)
sorin
Lives in gote
Posts: 389
Joined: Wed Apr 21, 2010 9:14 pm
Has thanked: 418 times
Been thanked: 198 times

Re: How do I play against Leela Zero on Sabaki?

Post by sorin »

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 25177 times
Sneegurd
Lives with ko
Posts: 129
Joined: Fri Mar 23, 2012 8:57 am
GD Posts: 0
Has thanked: 20 times
Been thanked: 17 times

Re: How do I play against Leela Zero on Sabaki?

Post by Sneegurd »

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: Select all

--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
=
Sneegurd
Lives with ko
Posts: 129
Joined: Fri Mar 23, 2012 8:57 am
GD Posts: 0
Has thanked: 20 times
Been thanked: 17 times

Re: How do I play against Leela Zero on Sabaki?

Post by Sneegurd »

BTW, LZ pretty much skyrockets right now!?!
bohemian65
Beginner
Posts: 6
Joined: Wed Oct 17, 2018 3:11 pm
GD Posts: 0

Re: How do I play against Leela Zero on Sabaki?

Post by bohemian65 »

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?
image of settings
image of settings
Sabaki.JPG (40.46 KiB) Viewed 21912 times
Thanks
User avatar
Waylon
Dies in gote
Posts: 24
Joined: Sat May 14, 2016 1:30 am
GD Posts: 0
Location: Vienna, Austria
Has thanked: 686 times
Been thanked: 11 times

Re: How do I play against Leela Zero on Sabaki?

Post by Waylon »

bohemian65 wrote: What am I doing wrong here?
Try using two minus signs like this:
--threads
Post Reply