lichess.org
Donate

LeelaZero

What ID did you play?
Here's my try in the quick mode until I blundered horribly (still a draw lol)

I'm white:



P.S. Tried the slow mode. Got destroyed :D
Here I'm black:

What exactly did both of you do to get to play Leela? As far as I can see there is no way to make it work in ChessBase, so what are the easiest steps to give myself a shot at testing Leela?
It's just a UCI engine, so you should be able to get it to work in most GUIs.

The caveat is that it requires some command line parameters (well, only "requires" 1, but typical use will involve a couple more), so if your GUI doesn't allow specifying those, then you might be out of luck. I don't use Chessbase, so I'm not sure about it, but it's easy enough to get it to work in Arena.
I have gotten Leela Zero to work with both Arena and Cutechess.

Basically:

- download and unzip the leela software (here: github.com/glinscott/leela-chess/wiki/Getting-Started)

- download your desired network file from here: http://lczero.org/networks

- network files are actually archives (even though they have no file extension). you can extract them with 7zip. the extracted file is roughly 50 MB. place the extracted file into the same folder as lczero.exe and rename it to something convenient (i just name them something like wXX.txt where XX is the ID of the network i downloaded)

- in your GUI, select lczero.exe as the engine, UCI as the protocol, and make the command line parameters this: "-w wXX.txt"

To add to what @etium said, if your GUI has an analysis mode (which just sends a "go infinite" command to a UCI engine) and you want to use that with Leela, you'll probably want to pass another parameter.

For "go" or "go infinite" Leela uses the playout limit, which defaults to 800 and is a pretty short analysis.

To increase that, pass -p<number of playouts> --noponder, for example, to set lczero to use the weights file named "latest" in the same folder as the executable, and sets the playout limit at 100000, the command would be:

lczero.exe -w latest -p100000 --noponder

Note that Leela does not use the playout limit for timed searches, so you don't have to do anything with the -p parameter if you're just going to play timed games, even if those times are going to result in searches of far more than 800 playouts.

Finally, especially if you don't have a GPU and want to get the best performance from Leela, you might want to change the number of threads.

Decent GPUs get about 2000 playouts/second, while a single decent CPU core gets about 250 playouts/second, so if you're using the cpu-only version and want the best performance you'll want to set threads as high as you reasonably can on your machine.

That is the -t parameter, so if I want to run Leela just like I did above, but let her use 8 cores, the command would be this:

lczero.exe -w latest -t8 -p100000 --noponder.

If you have a high-end GPU, then you also might benefit from bumping the threads up to 3 or 4. Just experiment and see what gets you the highest NPS (unlike traditional engines, where parallelism is rather complicated and you can't just look at the NPS of a higher thread count and the NPS of a lower thread count to determine which is better, in Leela it's all about the playouts/sec)

For a more complete reference, check out github.com/glinscott/leela-chess/wiki/Running-LCZero-in-a-Chess-GUI

Cheers!

This topic has been archived and can no longer be replied to.