Code Monkey home page Code Monkey logo

Comments (3)

lightvector avatar lightvector commented on June 28, 2024

numSearchThreads is the number of CPU threads to use. If your GPU is powerful, it can actually be much higher than the number of CPU cores on your system because you will need many threads in order to feed large enough batches to the GPU to get good GPU use.

nnMaxBatchSize should be be around the number of CPU threads you are using, yes, but how large it needs to be can vary if you are using multiple GPUs instead of 1 GPU.

You will want to use cudaUseFP16 and cudaUseNHWC if your GPU has FP16 tensor cores.

If you are doing long searches with large numbers of visits, and you don't mind using more RAM on your machine, nnCacheSizePowerOfTwo can be increased, and also nnMutexPoolSizePowerOfTwo. I think the config comes with nnCacheSizePowerOfTwo = 18 meaning that it will cache 2^18 = 262144 neural net results, but due to birthday paradox you may start getting some noticeable cache losses once you start searching in the high thousands of visits.

Thanks for the question, hope that helps. I'll add some more documentation about various parameters to the README or otherwise within the release itself before too long, I just haven't done it yet.

from katago.

ivysrono avatar ivysrono commented on June 28, 2024

Thank you very much.

from katago.

ivysrono avatar ivysrono commented on June 28, 2024

#29

from katago.

Related Issues (20)

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.