Giter VIP home page Giter VIP logo

lc0-data-converter's Introduction

LC0 data converter

Linux container environment for converting raw LC0 training data to .binpack files for training Stockfish NNUE. This provides tools to:

  • Download LC0 training data
  • Download Syzygy endgame tablebases
  • Rescore LC0 data with tablebases and output .plain data files
  • Filter positions out of .plain files that Stockfish can't use for training
  • Convert .plain -> .binpack files usable for training Stockfish NNUE

Usage

A docker image can be used to create a linux container environment with all dependencies installed:

sudo apt install docker.io
./docker_build.sh
./docker_run.sh

Use lc0_data_downloader.sh to download training data. Convert the training data either by:

A sequence of

  • rescore_tar_files.sh to use the lc0 rescorer tool to convert tar data files to .plain
  • filter_many_plain.sh to filter positions out of the converted .plain files
  • convert_to_binpack to convert plain files into binpack data files

Converting .tar files to .binpacks and deleting the .tar files afterwards

  • process_tar_files.sh

Downloading tablebases

https://tablebase.lichess.ovh/tables/standard/

Example of how to download 3,4,5,6-piece Syzygy tablebases

wget --mirror --no-parent --no-directories -e robots=off \
  https://tablebase.lichess.ovh/tables/standard/3-4-5/
wget --mirror --no-parent --no-directories -e robots=off \
  https://tablebase.lichess.ovh/tables/standard/6-dtz/
wget --mirror --no-parent --no-directories -e robots=off \
  https://tablebase.lichess.ovh/tables/standard/6-wdl/

List of common 7-piece tablebase positions (source)

  • KBPPPvKB
  • KBPPvKBP
  • KBPPvKNP
  • KNPPvKBP
  • KNPPvKNP
  • KPPPvKBP
  • KPPPvKPP
  • KQPPvKQP
  • KRPPvKRP

Resources

lc0-data-converter's People

Contributors

linrock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.