How To Install leela-zero on Debian 11
Introduction
In this tutorial we learn how to install leela-zero
on Debian 11.
What is leela-zero
leela-zero is:
A Go program with no human provided knowledge. Using MCTS (but without Monte Carlo playouts) and a deep residual convolutional neural network stack.
This is a fairly faithful reimplementation of the system described in the Alpha Go Zero paper “Mastering the Game of Go without Human Knowledge”. For all intents and purposes, it is an open source AlphaGo Zero.
https://deepmind.com/documents/119/agz_unformatted_nature.pdf
No network weights are in this repository. If you manage to obtain the AlphaGo Zero weights, this program will be about as strong, provided you also obtain a few Tensor Processing Units. Lacking those TPUs, the author recommends a top of the line GPU - it’s not exactly the same, but the result would still be an engine that is far stronger than the top humans.
Recomputing the AlphaGo Zero weights will take about 1700 years on commodity hardware. Upstream is running a public, distributed effort to repeat this work. Working together, and especially when starting on a smaller scale, it will take less than 1700 years to get a good network (which you can feed into this program, suddenly making it strong). To help with this effort, run the leelaz-autogtp binary provided in this package. The best-known network weights file is at http://zero.sjeng.org/best-network
There are three methods to install leela-zero
on Debian 11. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install leela-zero Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install leela-zero
using apt-get
by running the following command:
sudo apt-get -y install leela-zero
Install leela-zero Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install leela-zero
using apt
by running the following command:
sudo apt -y install leela-zero
Install leela-zero Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install leela-zero
using aptitude
by running the following command:
sudo aptitude -y install leela-zero
How To Uninstall leela-zero on Debian 11
To uninstall only the leela-zero
package we can use the following command:
sudo apt-get remove leela-zero
Uninstall leela-zero And Its Dependencies
To uninstall leela-zero
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove leela-zero
Remove leela-zero Configurations and Data
To remove leela-zero
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge leela-zero
Remove leela-zero configuration, data, and all of its dependencies
We can use the following command to remove leela-zero
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge leela-zero
Dependencies
leela-zero have the following dependencies:
- libboost-filesystem1.74.0
- libboost-program-options1.74.0
- libc6
- libgcc-s1
- libqt5core5a
- libstdc++6
- ocl-icd-libopencl1
- ocl-icd-libopencl1
- zlib1g
References
Summary
In this tutorial we learn how to install leela-zero
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.