{"id":4171,"date":"2018-03-31T20:40:05","date_gmt":"2018-03-31T15:10:05","guid":{"rendered":"http:\/\/www.bhagwad.com\/blog\/?p=4171"},"modified":"2020-12-09T20:28:55","modified_gmt":"2020-12-09T14:58:55","slug":"how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo","status":"publish","type":"post","link":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/","title":{"rendered":"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO"},"content":{"rendered":"\n<p>Leela chess is an <a href=\"https:\/\/github.com\/glinscott\/leela-chess\">open fork of AlphaZero<\/a>. Unfortunately, Google didn&#8217;t let us have the program, but they released a paper <a href=\"https:\/\/arxiv.org\/abs\/1712.01815\">detailing how they did it<\/a> , and Leela is the result. Since no single person has the resources of Google, this is a distributed project where Leela trains herself across hundreds of computers. We make up in numbers, what we lack in sheer power.<\/p>\n\n\n\n<p>If you want to contribute your GPU to helping Leela chess get stronger, <a href=\"http:\/\/lczero.org\/\">visit the project page<\/a> and get started! You can also play an online version of Leela at her strongest current strength at <a href=\"http:\/\/play.lczero.org\/\">http:\/\/play.lczero.org\/<\/a>.<\/p>\n\n\n\n<p>However, the great thing about Leela is that you can also download the engine and play her at lower ELOs. This is a <em>completely different<\/em> compared to playing an engine like Stockfish at half strength. Modern chess engines will artificially lower their strength by blundering unnaturally and then play like a GM for the rest of the game. Leela&#8217;s games at lower ELOs are much more &#8220;human&#8221;, making her an excellent sparring partner!<\/p>\n\n\n\n<p>In this tutorial, I&#8217;ll show you how to set up Leela on your local PC and plug her into a chess GUI like Arena.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-what-you-need\">Step 1: What you Need<\/h2>\n\n\n<p>Here&#8217;s what you need to have\/know in preparation for Leela:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The Arena chess program. <a href=\"http:\/\/www.playwitharena.com\/?Download\">Available here<\/a>.<\/li><li>You need to know what &#8220;rating&#8221; you want to play Leela at (more on this later)<\/li><\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-determining-your-rating\">Step 2: Determining your Rating<\/h2>\n\n\n<p>As Leela trains herself, she keeps increasing her rating &#8211; with a rating of &#8220;0&#8221; being random moves. Unfortunately, these self play ratings don&#8217;t translate directly into &#8220;human&#8221; ratings. As of this writing, Leela&#8217;s self play rating is 4343. But her ELO as understood by us is ~2000.<\/p>\n\n\n\n<p>So to download a version of Leela that matches your ELO, use the following formula:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">x = (y+511.7)\/0.6<\/pre>\n\n\n\n<p>where:<\/p>\n\n\n\n<p>x = Leela&#8217;s self play rating and<br>y = Your rating\/the ELO you want to play Leela at<\/p>\n\n\n\n<p>So for example, if I want to play a version of Leela at ELO 1500, her self calculated rating at that level will be:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(1500+511.7)\/0.6 = 3352<\/pre>\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3-download-the-appropriate-network-weight\">Step 3: Download the Appropriate Network Weight<\/h2>\n\n\n<p>With the rating you obtained in Step 2, head over to <a href=\"https:\/\/training.lczero.org\/networks\/?show_all=1\">Leela&#8217;s network weights page<\/a>. This page contains the snapshots of Leela as she gets stronger. Each snapshot is represented by an ID. You can see her self play ELO in column 3. Scroll down till you find the ID that most closely corresponds to the self play ELO you calculated in step 2.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"617\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg\" alt=\"\" class=\"wp-image-4180\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating-300x168.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating-768x430.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating-1024x574.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>In this case, network ID 19 has an ELO of 3319, which is pretty close to 3352 which I calculated in the previous step. So I&#8217;ll use that one.<\/p>\n\n\n\n<p>Click the link and it&#8217;ll download a file onto your desktop. This is a compressed file, that needs a program to open it. To get your software to recognize it as compressed, you need to <em>rename<\/em> it with a &#8220;.gz&#8221; extension. Like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/rename-network-file-with-extension-gz.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"678\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/rename-network-file-with-extension-gz.jpg\" alt=\"\" class=\"wp-image-4181\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/rename-network-file-with-extension-gz.jpg 1100w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/rename-network-file-with-extension-gz-300x185.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/rename-network-file-with-extension-gz-768x473.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/rename-network-file-with-extension-gz-1024x631.jpg 1024w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/a><\/figure>\n\n\n\n<p>Once your computer recognizes it, decompress the contents.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/unzip-network-weight.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"720\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/unzip-network-weight.jpg\" alt=\"\" class=\"wp-image-4182\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/unzip-network-weight.jpg 1100w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/unzip-network-weight-300x196.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/unzip-network-weight-768x503.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/unzip-network-weight-1024x670.jpg 1024w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/a><\/figure>\n\n\n\n<p>It will be a single file. Make a note of its location.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"step-4-download-the-leela-engine-bundle\">Step 4: Download the Leela Engine Bundle<\/h2>\n\n\n<p>Get the latest engine bundle for your system from the <a href=\"https:\/\/github.com\/glinscott\/leela-chess\/releases\">project download link<\/a>. I&#8217;ve chosen the CPU version for Windows, because that&#8217;s my system configuration.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-the-engine-lczero.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"801\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-the-engine-lczero.jpg\" alt=\"\" class=\"wp-image-4179\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-the-engine-lczero.jpg 1100w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-the-engine-lczero-300x218.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-the-engine-lczero-768x559.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-the-engine-lczero-1024x746.jpg 1024w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>This will be a zip file. Unzip the contents into a folder called &#8220;Leela&#8221;.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"step-5-put-the-files-together-into-the-engine-folder-in-arena\">Step 5: Put the Files Together into the &#8220;Engine&#8221; Folder in Arena<\/h2>\n\n\n<p>Now you have two downloads. Namely:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The network weight file you downloaded in step 3<\/li><li>The Leela engine (lczero.exe) that you downloaded in step 4<\/li><\/ol>\n\n\n\n<p>Put all these files in the same folder. Call the folder &#8220;Leela&#8221;, or &#8220;LCzero&#8221;, or whatever name you want to appear in Arena. Now transfer this entire folder into the &#8220;Engines&#8221; directory of Arena. This is the folder structure with the files:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/files-all-unzipped-into-engines-folder.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"686\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/files-all-unzipped-into-engines-folder.jpg\" alt=\"\" class=\"wp-image-4183\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/files-all-unzipped-into-engines-folder.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/files-all-unzipped-into-engines-folder-300x187.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/files-all-unzipped-into-engines-folder-768x479.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/files-all-unzipped-into-engines-folder-1024x638.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Now it&#8217;s time to configure Arena with Leela!<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"step-6-installing-the-leela-lczero-engine-in-arena\">Step 6: Installing the Leela LCZero Engine in Arena<\/h2>\n\n\n<p>Open the Arena program, click the &#8220;Engines&#8221; tab on top and click &#8220;Manage&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/Engines-manage.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"713\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/Engines-manage.jpg\" alt=\"\" class=\"wp-image-4172\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/Engines-manage.jpg 1100w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/Engines-manage-300x194.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/Engines-manage-768x498.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/Engines-manage-1024x664.jpg 1024w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/a><\/figure>\n\n\n\n<p>In the resulting window, click the &#8220;Details&#8221; tab and click the &#8220;New&#8221; button as shown here:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/new-engine.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"903\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/new-engine.jpg\" alt=\"\" class=\"wp-image-4173\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/new-engine.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/new-engine-300x246.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/new-engine-768x630.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/new-engine-1024x840.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure>\n\n\n\n<p>This will open a dialogue box asking for the location of the engine. Navigate to the &#8220;Leela&#8221; folder you created in step 5, and select &#8220;lczero.exe&#8221; as the engine.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/select-lczero-as-engine.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"932\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/select-lczero-as-engine.jpg\" alt=\"\" class=\"wp-image-4174\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/select-lczero-as-engine.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/select-lczero-as-engine-300x254.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/select-lczero-as-engine-768x650.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/select-lczero-as-engine-1024x867.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure>\n\n\n\n<p>In the next box, select &#8220;UCI&#8221; as the type of engine:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/choose-UCI.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"657\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/choose-UCI.jpg\" alt=\"\" class=\"wp-image-4175\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/choose-UCI.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/choose-UCI-300x179.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/choose-UCI-768x458.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/choose-UCI-1024x611.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure>\n\n\n\n<p>After selecting the engine, we need to enter the command line parameters in the box provided. Here, use the network weight file you extracted in step 3, in the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-w <strong>209032b7<\/strong><\/pre>\n\n\n\n<p>Replace the text in bold, with the name of your network weight file.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/command-line-arguments-network-weigh.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"268\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/command-line-arguments-network-weigh.jpg\" alt=\"\" class=\"wp-image-4176\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/command-line-arguments-network-weigh.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/command-line-arguments-network-weigh-300x73.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/command-line-arguments-network-weigh-768x187.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/command-line-arguments-network-weigh-1024x249.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Then click &#8220;Apply&#8221; and then the button &#8220;Start this engine right now!&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/start-engine-immediately.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"597\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/start-engine-immediately.jpg\" alt=\"\" class=\"wp-image-4177\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/start-engine-immediately.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/start-engine-immediately-300x163.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/start-engine-immediately-768x416.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/start-engine-immediately-1024x555.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure>\n\n\n\n<p>And you&#8217;re done! The dialogue box will vanish, and Leela will now be the engine in Arena, running at the ELO strength you selected. Here&#8217;s a sample output from the Queen&#8217;s Gambit Accepted line.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/leela-is-now-running-on-arena.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"900\" src=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/leela-is-now-running-on-arena.jpg\" alt=\"\" class=\"wp-image-4178\" srcset=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/leela-is-now-running-on-arena.jpg 1101w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/leela-is-now-running-on-arena-300x245.jpg 300w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/leela-is-now-running-on-arena-768x628.jpg 768w, https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/leela-is-now-running-on-arena-1024x837.jpg 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a><\/figure>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-if-the-above-doesnt-work\">What if the Above Doesn&#8217;t Work?<\/h2>\n\n\n<p>Sometimes the above steps fail for some reason. Leela just won&#8217;t start. So here&#8217;s something that has worked for a lot of people.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Go to your engines folder in Arena<\/p>\n\n\n\n<p><strong>Step 2<\/strong>: Create a &#8220;lczero.bat&#8221; file and open it for editing<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Type the following into it:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">@lczero.exe -w <strong>[network weight name]<\/strong><\/pre>\n\n\n\n<p>Make sure you replace the section in square brackets with the network weight name you downloaded and unzipped in Step 3.<\/p>\n\n\n\n<p><strong>Step 4:<\/strong> Now go set up the engine again. This time, instead of choosing lczero.exe, click the drop down box labelled &#8220;Files of type&#8221; and select &#8220;Batch files (*.bat) instead.<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Now lczero.bat should be visible. Click on it and choose it as the engine.<\/p>\n\n\n\n<p>Now just run your engine! Wait for a while for it to load and do its thing. No need to enter any command line parameters like before. These steps have helped a lot of people when just using lczero.exe directly didn&#8217;t work.<\/p>\n\n\n\n<p>I hope these instructions make it easy for people to get started with running and experimenting with Leela. If you have a GPU, you can also use the bundled &#8220;client.exe&#8221; file to contribute your own GPU cycles for training games to help make Leela better!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Leela chess is the new open source version of AlphaZero. Though you can play against her online, the best feature is the ability to run her at any strength in a local chess GUI like Arena. Here are detailed instructions on how to do that.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,23],"tags":[],"class_list":["post-4171","post","type-post","status-publish","format-standard","hentry","category-personal","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO\" \/>\n<meta property=\"og:description\" content=\"Leela chess is the new open source version of AlphaZero. Though you can play against her online, the best feature is the ability to run her at any strength in a local chess GUI like Arena. Here are detailed instructions on how to do that.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/\" \/>\n<meta property=\"og:site_name\" content=\"Expressions - Bhagwad Jal Park\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-31T15:10:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-09T14:58:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg\" \/>\n<meta name=\"author\" content=\"bhagwad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bhagwad\" \/>\n<meta name=\"twitter:site\" content=\"@bhagwad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"bhagwad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/\"},\"author\":{\"name\":\"bhagwad\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"headline\":\"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO\",\"datePublished\":\"2018-03-31T15:10:05+00:00\",\"dateModified\":\"2020-12-09T14:58:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/\"},\"wordCount\":1034,\"commentCount\":40,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/download-network-weight-for-rating.jpg\",\"articleSection\":[\"Personal\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/\",\"name\":\"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/download-network-weight-for-rating.jpg\",\"datePublished\":\"2018-03-31T15:10:05+00:00\",\"dateModified\":\"2020-12-09T14:58:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/download-network-weight-for-rating.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/download-network-weight-for-rating.jpg\",\"width\":1101,\"height\":617},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2018\\\/personal\\\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/\",\"name\":\"Expressions - Bhagwad Jal Park\",\"description\":\"My thoughts, haikus and freelance musings\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\",\"name\":\"bhagwad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596\",\"contentUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596\",\"caption\":\"bhagwad\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596\"},\"sameAs\":[\"http:\\\/\\\/www.bhagwad.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/","og_locale":"en_US","og_type":"article","og_title":"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO","og_description":"Leela chess is the new open source version of AlphaZero. Though you can play against her online, the best feature is the ability to run her at any strength in a local chess GUI like Arena. Here are detailed instructions on how to do that.","og_url":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/","og_site_name":"Expressions - Bhagwad Jal Park","article_published_time":"2018-03-31T15:10:05+00:00","article_modified_time":"2020-12-09T14:58:55+00:00","og_image":[{"url":"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg","type":"","width":"","height":""}],"author":"bhagwad","twitter_card":"summary_large_image","twitter_creator":"@bhagwad","twitter_site":"@bhagwad","twitter_misc":{"Written by":"bhagwad","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#article","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/"},"author":{"name":"bhagwad","@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"headline":"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO","datePublished":"2018-03-31T15:10:05+00:00","dateModified":"2020-12-09T14:58:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/"},"wordCount":1034,"commentCount":40,"publisher":{"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"image":{"@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg","articleSection":["Personal","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/","url":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/","name":"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#primaryimage"},"image":{"@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg","datePublished":"2018-03-31T15:10:05+00:00","dateModified":"2020-12-09T14:58:55+00:00","breadcrumb":{"@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#primaryimage","url":"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg","contentUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/uploads\/2018\/03\/download-network-weight-for-rating.jpg","width":1101,"height":617},{"@type":"BreadcrumbList","@id":"https:\/\/www.bhagwad.com\/blog\/2018\/personal\/how-to-run-leela-chess-engine-lczero-in-arena-at-a-specific-elo.html\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bhagwad.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO"}]},{"@type":"WebSite","@id":"https:\/\/www.bhagwad.com\/blog\/#website","url":"https:\/\/www.bhagwad.com\/blog\/","name":"Expressions - Bhagwad Jal Park","description":"My thoughts, haikus and freelance musings","publisher":{"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bhagwad.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23","name":"bhagwad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596","url":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596","contentUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596","caption":"bhagwad"},"logo":{"@id":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1776270596"},"sameAs":["http:\/\/www.bhagwad.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/4171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/comments?post=4171"}],"version-history":[{"count":0,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/4171\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/media?parent=4171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/categories?post=4171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/tags?post=4171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}