Page 1 of 2

How do I play against Leela Zero on Sabaki?

Posted: Fri Mar 16, 2018 8:18 am
by Allen
How do I play against Leela Zero on Sabaki? I can't figure it out from the GitHub.

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

Posted: Fri Mar 16, 2018 8:27 am
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

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

Posted: Fri Mar 16, 2018 8:52 am
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.

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

Posted: Fri Mar 16, 2018 11:41 am
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.

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

Posted: Sat Mar 17, 2018 11:58 pm
by kdbaby1412
You know how to set time for LeelaZ?

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

Posted: Sun Mar 18, 2018 7:11 am
by drmwc
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: 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]

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

Posted: Sun Mar 18, 2018 8:57 am
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

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

Posted: Sun Mar 18, 2018 10:32 am
by Pippen
I don't have windows 7 so I can't have Sabaki. Any other clients where u can play with Leela Zero?

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

Posted: Sun Mar 18, 2018 1:04 pm
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.

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

Posted: Sun Mar 18, 2018 1:38 pm
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.)

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

Posted: Sun Mar 18, 2018 1:49 pm
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:

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

Posted: Mon Mar 19, 2018 6:35 am
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
=

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

Posted: Mon Mar 19, 2018 6:50 am
by Sneegurd
BTW, LZ pretty much skyrockets right now!?!

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

Posted: Wed Oct 17, 2018 3:23 pm
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 21910 times
Thanks

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

Posted: Sun Oct 21, 2018 6:57 am
by Waylon
bohemian65 wrote: What am I doing wrong here?
Try using two minus signs like this:
--threads