LC0 for Google Colab

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
User avatar
jshriver
Posts: 1239
Joined: Wed Mar 08, 2006 8:41 pm
Location: Morgantown, WV, USA
Contact:

LC0 for Google Colab

Post by jshriver » Thu Jan 14, 2021 11:06 pm

If anyone else is curious, I made a solid build of lc0 for Google Colab. Was fun to test it on some big hardware. :D

To save time I'm putting it up for others to download. I also have syzygy 3-4-5 available to grab.

lc0
https://chess.nyc3.cdn.digitaloceanspac ... ab.tar.bz2

syzygy 3-4-5
https://chess.nyc3.cdn.digitaloceanspac ... gy.tar.bz2

Here is a code block I use in the notebook

Code: Select all

import os.path
!apt-get update
!apt-get install wget
!clinfo
!wget https://chess.nyc3.cdn.digitaloceanspaces.com/syzygy.tar.bz2
!tar -jxvf syzygy.tar.bz2
!wget https://chess.nyc3.cdn.digitaloceanspaces.com/lc0_lichess.tar.bz2
!tar -jxvf lc0_lichess.tar.bz2
os.chdir('/content/lc0')
!bash
To use syzygy in lc0 use the following UCI command

Code: Select all

setoption name SyzygyPath value /content/syzygy

Post Reply