Giter Site home page Giter Site logo

Comments (15)

Dreamkeeper66666 avatar Dreamkeeper66666 commented on June 12, 2024 2

Oh, hi, sorry : I haven't tried benchmarking KataGo on any of the NVIDIA Jetson products. Suffice to say it's pretty slow overall, just from a human-interaction perspective. BUGOUT offers "KataGo One-Star" mode so that you get a weak play which considers the minimum possible number of positions, but cuts down on the time taken to compute moves.

Cool, thanks!I am having some problems compiling KataGo. So could you possibly share the executable binary and its dependencies(except the cuda libraries)

from bugout.

Dreamkeeper66666 avatar Dreamkeeper66666 commented on June 12, 2024 2

@Terkwood Thanks for your instructions! I successfully compiled KataGo finally. I tried the latest 40b model, and it worked. But after I set the cudaUseFP16 to be true. It gives errors like these:

terminate called after throwing an instance of 
'StringError'
  what():  CUDA Error, for getOutput file /home/Dreamkeeper/KataGo/cpp/neuralnet/cudabackend.cpp, func cudaMemcpy(inputBuffers->policyResults, buffers->policyBuf, inputBuffers->singlePolicyResultBytes*batchSize, cudaMemcpyDeviceToHost), line 2921, error the launch timed out and was terminated" 

Maybe it's just because of memory issues or something while running 40b model using FP16. Anyways. It works perfectly fine. Thanks again!

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

I would be more skeptical about BUGOUT's fragile build process (tinybrain/KataGo subsystem) than I would about NVIDIA's new Jetson product ☺

from bugout.

Dreamkeeper66666 avatar Dreamkeeper66666 commented on June 12, 2024

I am optimistic about that even though I don't own one...

Thanks! Btw, what's the size of model you are running katago with? Is it 20b or 40b?

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

The 20b! Model is a little bit outdated. I had tried an upgrade but encountered some instability for whatever reason

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

const DEFAULT_MODEL_FILE: &str = "g170e-b20c256x2-s2430231552-d525879064.bin.gz";

The model file is specified here

from bugout.

Dreamkeeper66666 avatar Dreamkeeper66666 commented on June 12, 2024

The 20b! Model is a little bit outdated. I had tried an upgrade but encountered some instability for whatever reason

So what's the benchmark for 20b?

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

???

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

Oh, hi, sorry : I haven't tried benchmarking KataGo on any of the NVIDIA Jetson products. Suffice to say it's pretty slow overall, just from a human-interaction perspective. BUGOUT offers "KataGo One-Star" mode so that you get a weak play which considers the minimum possible number of positions, but cuts down on the time taken to compute moves.

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

Here is the katago binary. I'll post the specific neural net that I'm currently using also (my uploads are slow please bear with me)

https://github.com/Terkwood/BUGOUT/releases/download/v1.4.1/katago

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

And here's the net: https://github.com/Terkwood/BUGOUT/releases/download/v1.4.1/g170e-b20c256x2-s2430231552-d525879064.bin.gz

Hopefully you can compile tinybrain without major difficulty. When you start that application, it'll look for the katago bin and the net in its current working directory.

You can experiment with downloading other , more recent nets from the katago Github, but I have no idea if they'll behave within BUGOUT. If you do that, you need to update a .env file in the same directory as the tinybrain binary to point to a different net:

MODEL_FILE="g170e-b20--snip--.bin.gz"

There are some notes in https://github.com/Terkwood/BUGOUT/blob/unstable/tinybrain/README.md which may be of use during this effort (or which may just confuse you)

from bugout.

Dreamkeeper66666 avatar Dreamkeeper66666 commented on June 12, 2024

Here is the katago binary. I'll post the specific neural net that I'm currently using also (my uploads are slow please bear with me)

https://github.com/Terkwood/BUGOUT/releases/download/v1.4.1/katago

Thanks! Actually I am having problems installing the dependencies. Could you please also include the dependent libraries as well (e.g. libssl.so, libstdc++.so, libc.so, ......) which could be seen via ldd katago.
image

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

Some of those should be installable via (eg)

 sudo apt install zlib1g-dev libzip-dev libboost-filesystem-dev
 sudo apt install libgoogle-perftools-dev  # for TCMALLOC

See https://github.com/Terkwood/BUGOUT/blob/unstable/tinybrain/README.md#build-steps

But you're on your own for tracking down the rest of the deps that aren't covered in those notes. Good luck!

from bugout.

Terkwood avatar Terkwood commented on June 12, 2024

Very nice! I'm glad you were able to succeed. At some point I might look into purchasing one of these and setting up a way to distribute move requests across multiple Nanos. Having the new model in the mix would be fun. 😁

from bugout.

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.