Running Leela in Fritz

1,167 views
Skip to first unread message

FWCC1

unread,
Apr 16, 2018, 12:47:36 AM4/16/18
to LCZero
How do I change the command line?
Extract the files ‘InBetween.exe’ and ‘InBetween.ini’ to the aforementioned ‘LCZero’ subdirectory
Edit ‘InBetween.ini’ and provide the following option in the [InBetween] section: CommandLine := lczero.exe –uci (optional: additional parameters according to the list above, for example –noponder; don’t forget to remove ; at the beginning of the line to activate the command)
Example:

CommandLine := lczero.exe --uci --noponder

Can someone please post an example?

epunk

unread,
Apr 16, 2018, 2:11:02 AM4/16/18
to LCZero
You posted the example yourself. Just put whatever option you intend to use at the end of your existing 'CommandLine := ...' line.
And don't forget to remove the leading ; from that line, if it is still there (the default InBetween.ini file comes with such a line. The ; is used to comment out lines in that file).
Message has been deleted

Stefan Pohl

unread,
Apr 16, 2018, 9:00:59 AM4/16/18
to LCZero
Use the latest polyglot-adapter. Download: http://hgm.nubati.net/polyglot.exe
and create the polyglot.ini textfile, which should look like this:

[PolyGlot]
EngineCommand=lczero.exe --uci
EngineDir=.
Log=true
LogFile=polyglot.log
ShowTbHits=false
Book=false
[Engine]
Hash=128
SyzygyPath=

Then use the polyglor.exe-file as "Engine" in Fritz and Leela should work.


Am Montag, 16. April 2018 14:56:19 UTC+2 schrieb FWCC1:
I've done this but it is not loading in Fritz

FWCC1

unread,
Apr 16, 2018, 9:24:06 AM4/16/18
to LCZero
Do I change this and what do I put in:

Syntax: InBetween [/t filename /p priority /c /d n /l logfile] <command line>

Do I change it to:

Syntax: InBetween [= lczero.exe –uci] <command line>

epunk

unread,
Apr 16, 2018, 10:01:58 AM4/16/18
to LCZero
Looks like you're confusing command line parameters of InBetween.exe with settings in InBetween's .ini file.
Fritz only accepts bare engine executables, no command line parameters, that's why an additional utility like InBetween has to be used in the first place.
The CommandLine := ... setting, which tells InBetween how to start LCZero, has to be configured in the Inbetween.ini file, [InBetween] section.
Here, you can use all the command line parameters that are needed for the engine, or that you want to use to play with certain settings.

FWCC1

unread,
Apr 16, 2018, 10:19:12 AM4/16/18
to LCZero
Can you post an example

epunk

unread,
Apr 16, 2018, 1:21:04 PM4/16/18
to LCZero

Hagay Garty

unread,
Apr 16, 2018, 1:56:28 PM4/16/18
to LCZero
I think it will only work on Fritz 14. 
In Fritz 15 some additional timeouts are added, mainly on the 'isready' uci command

epunk

unread,
Apr 16, 2018, 2:41:53 PM4/16/18
to LCZero
I can confirm it works in Fritz 16, because I tested it there when creating the setup guide for Fritz.
The important thing is, as stated in the guide, you need LCZero v0.6; previous versions of her don't work.

FWCC1

unread,
Apr 17, 2018, 2:35:19 AM4/17/18
to LCZero
I have it loaded as an engine option in Fritz BUT when I select it,it does not load it is one of the engines in my folder. The error is LOAD ERROR

epunk

unread,
Apr 17, 2018, 4:05:20 AM4/17/18
to LCZero
If you think you've set her up correctly (according to the setup guide in the wiki), and still get the error, I recommend you activate InBetween's logging facility, in order to see what's going on in the GUI-to-engine communication.
To do that, edit InBetween.ini, and remove the ; from the 'Log := ...' line. Check the log file that's being created in the directory where InBetween resides once LCZero is started in Fritz, for errors or other anomalies.

FWCC1

unread,
Apr 17, 2018, 9:42:13 AM4/17/18
to LCZero
Thank you,Log file says can't open "weights.txt" am working on it
Any input while I am working on it please thank you

epunk

unread,
Apr 17, 2018, 9:56:53 AM4/17/18
to LCZero
The engine is complaining about the network file (= the weights file), which it either can't find through auto-detection (she expects 'weigths.txt' in her installation directory for that to work), or that file is corrupted somehow, or, if you don't use auto-detection, but use the -w parameter instead, the file path provided with -w either does not point to an existing network file, or again that file is corrupted.

FWCC1

unread,
Apr 17, 2018, 10:01:08 AM4/17/18
to LCZero
I have a folder that I created called weights. Txt and the network weights are in there I tried putting in the weights command but I must have put it in wrong I put in -w what is the weights argument command

epunk

unread,
Apr 17, 2018, 10:37:33 AM4/17/18
to LCZero
As stated above, in case you don't use -w, the network file has to be named 'weights.txt', and has to reside in her installation directory. Any other file name or file path requires usage of the -w command line parameter.
Example: ... -w networks/id137  references a network file named 'id137', that resides in the 'networks' subfolder of her installation directory.

FWCC1

unread,
Apr 17, 2018, 10:59:16 AM4/17/18
to LCZero
I have it running but I had to use this:networks\474d06260586641058ff61d6bf47f8946a3ebc6fb26a75a701ac7b1d78387e5a ITS RUNNING!! AND LOADED

FWCC1

unread,
Apr 17, 2018, 12:55:57 PM4/17/18
to LCZero
Next Issue computer freezes when using more than two CPUs with Leela
Message has been deleted

Jesse Jordache

unread,
Apr 17, 2018, 8:07:42 PM4/17/18
to LCZero
I have an issue with Fritz and Leela too - when analyzing positions it "ponders" for an infinitesimal period of time and then spits out its choice.  It's exactly like the website in medium mode.
I can't get it to think beyond its first impression.  I'm just using --uci, and the top of the current network list.

Jesse Jordache

unread,
Apr 18, 2018, 2:31:24 AM4/18/18
to LCZero
To answer both my own question and the one above it, version 0.7 takes care of both issues.  Except it might not be cool with running more than two cores, but try it.
Reply all
Reply to author
Forward
0 new messages