LC0 for Google Colab

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

Moderators: hgm, Rebel, chrisw

User avatar
jshriver
Posts: 1342
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

LC0 for Google Colab

Post by jshriver »

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