How do I play against Leela Zero on Sabaki?
- 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?
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?
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
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?
@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.
--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.
- 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?
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
- 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?
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 1I 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:
The challenge is to guess black's next move. (I would never get it right with infinite guesses, so I've given it below.)
-
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?
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
time_settings 0 10 1
0 = main time
10 = time period
1 = stones per period
-
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?
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 (241.34 KiB) Viewed 25154 times
Sorin - 361points.com
-
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?
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?
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 (649.22 KiB) Viewed 25162 times
Sorin - 361points.com
-
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?
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/
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
=-
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?
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?
Thanks
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?
Thanks