GithubHelp home page GithubHelp logo

patrik-ha / explainable-minichess Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 3.0 42.22 MB

Chess environment for smaller chess variants, AlphaZero-like MCTS-learning, and Concept Detection

Jupyter Notebook 40.41% PureBasic 53.09% Python 6.50%
alphazero chess chess-ai mcts concept-detection

explainable-minichess's People

Contributors

patrik-ha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

explainable-minichess's Issues

Virtual loss and scaling for GPU-heavy setups

The part of this project that deals with the training pipeline was originally tailored for a mid-range personal workstation. (Meaning a small amount of relatively fast CPU threads, with a low-range GPU) This affected some of the decisions when it came to how the interfacing with the neural nets during training should be done, i.e. giving each thread access to a copy of the neural net on the CPU, essentially only using the GPU for training between epochs. (This is also less of a big deal when the models are small)

However, for larger models, or larger variants of chess, it would be very useful to better utilise the potential of GPUs, when available. This would mean implementing prediction-batching through virtual loss. This would greatly reduce training time, making it possible to experiment more with different architectures for different goals.

I am currently working on this, as it would be very useful to be able to test such architectures more rapidly.

Unable to run the training command specified in the readme.

When I run "python -m minichess.rl.fast_mcts configs/base.json" (without the quotes), I get a FileNotFoundError.

FileNotFoundError: [Errno 2] No such file or directory: '/explainable-minichess/minichess/chess/magics/5x4/straights.npz'.

I am trying to reproduce your training setup for 5x4, though I'd eventually like to get 8x8 running as well.

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.