Katago: Difference between revisions

imported>OmnipotentEntity
No edit summary
Klinger (talk | contribs)
m added headers
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Katago is a very strong go engine.
[https://github.com/lightvector/katago Katago] is a very strong go engine. It has no GUI and has to be used with [https://github.com/sanderland/katrain KaTrain], [https://github.com/featurecat/lizzie Lizzie], [https://github.com/rooklift/ogatak Ogatak], [https://github.com/bernds/q5Go q5Go] or other tools like [https://sabaki.yichuanshen.de/ Sabaki].


== Installation==
There are several build options for Katago's derivation.  Katago can use either Eigen, OpenCL, CUDA, or TensorRT.  By default, it uses OpenCL.  To use a different backend override the `backend` attribute, allowed values are "eigen", "opencl", "cuda", and "tensorrt".
There are several build options for Katago's derivation.  Katago can use either Eigen, OpenCL, CUDA, or TensorRT.  By default, it uses OpenCL.  To use a different backend override the `backend` attribute, allowed values are "eigen", "opencl", "cuda", and "tensorrt".
TensorRT is currently suffering from a minor performance regression in v1.12.2, so it by default uses v1.12.1 instead.  You can override the version, and it should work if you'd rather use the newer tensorrt engine introduced in v1.12.2 that does not depend on cudnn.
OpenCL, on the other hand, is currently suffering from a performance regression in v1.12.1, and so you should use definitely use v1.12.2 instead if you're using the OpenCL backend.


For the eigen and cuda backends either version should be more or less functionally the same.
For the eigen and cuda backends either version should be more or less functionally the same.


Changing versions:
===Using CUDA===
 
    katago.override {
      version = "1.12.1";
    }
 
Using CUDA:


     katago.override {
     katago.override {
Line 24: Line 16:
     }
     }


Using Eigen:
===Using Eigen===


     katago.override {
     katago.override {
Line 30: Line 22:
     }
     }


===Using TensorRT===
First download the tensorrt redistributable installer from https://developer.nvidia.com/tensorrt and add it to your nix-store.
Note that you need an NVidia account (free) to do this.
    katago.override {
      backend = "tensorrt";
      enableTrtPlanCache = true; # Recommended to speed up booting, but uses additional disk space, so not recommended for contrib.
    }
==Configuration==
If your processor support AVX2, you might want to enable it:
If your processor support AVX2, you might want to enable it:


Line 48: Line 51:
     }
     }


Enabling [https://katagotraining.org/] contributions:
=== Contribute to the neural net ===
Enabling [https://katagotraining.org/] contributions to the neural net:


     katago.override {
     katago.override {
Line 55: Line 59:


[[Category:Applications]]
[[Category:Applications]]
[[Category:Gaming]]