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

How do I play against Leela Zero on Sabaki?
http://www.lifein19x19.com/viewtopic.php?f=18&t=15511
Page 1 of 2

Author:  Allen [ Fri Mar 16, 2018 8:18 am ]
Post subject:  How do I play against Leela Zero on Sabaki?

How do I play against Leela Zero on Sabaki? I can't figure it out from the GitHub.

Author:  Javaness2 [ Fri Mar 16, 2018 8:27 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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

Author:  Sneegurd [ Fri Mar 16, 2018 8:52 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

@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.

Author:  Allen [ Fri Mar 16, 2018 11:41 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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.

Author:  kdbaby1412 [ Sat Mar 17, 2018 11:58 pm ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

You know how to set time for LeelaZ?

Author:  drmwc [ Sun Mar 18, 2018 7:11 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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]

Author:  Gomoto [ Sun Mar 18, 2018 8:57 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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

Author:  Pippen [ Sun Mar 18, 2018 10:32 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

I don't have windows 7 so I can't have Sabaki. Any other clients where u can play with Leela Zero?

Author:  sorin [ Sun Mar 18, 2018 1:04 pm ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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 24193 times ]

Author:  Gomoto [ Sun Mar 18, 2018 1:38 pm ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

a thanks a lot, did not understand the initial commands until now. (I thought it is just a description for the command line options.)

Author:  sorin [ Sun Mar 18, 2018 1:49 pm ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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 24201 times ]

Author:  Sneegurd [ Mon Mar 19, 2018 6:35 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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
=

Author:  Sneegurd [ Mon Mar 19, 2018 6:50 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

BTW, LZ pretty much skyrockets right now!?!

Author:  bohemian65 [ Wed Oct 17, 2018 3:23 pm ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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 20936 times ]


Thanks

Author:  Waylon [ Sun Oct 21, 2018 6:57 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

bohemian65 wrote:
What am I doing wrong here?

Try using two minus signs like this:
--threads

Author:  Pippen [ Sun Oct 21, 2018 7:06 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

Will there be a downloadable version of LZ once it's enough trained, just like Leela 11?

Author:  hyperpape [ Sun Oct 21, 2018 7:31 pm ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

Supposedly the most recent version of Lizzie will auto-download a network, but I'm afraid it didn't work for me.

Author:  bohemian65 [ Mon Oct 22, 2018 7:51 pm ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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

Author:  Waylon [ Tue Oct 23, 2018 12:04 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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.

Author:  bohemian65 [ Tue Oct 23, 2018 3:37 am ]
Post subject:  Re: How do I play against Leela Zero on Sabaki?

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 20693 times ]

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