Torom / BotLi

Lichess Bot
GNU Affero General Public License v3.0
46 stars 82 forks source link

NNUE using #18

Closed FatFritz2 closed 2 years ago

FatFritz2 commented 2 years ago

Hey author, Please tell me how to use NNUE on the bot please Thank you

Torom commented 2 years ago

You would have to be more specific what you want please. Every Stockfish since version 12 uses NNUE.

FatFritz2 commented 2 years ago

I want to know how to use a NNUE file to make my engine stronger

Torom commented 2 years ago

All engines I know implement the NNUE in the binary. So there are no further steps necessary.

If this is not the case, you can probably control it via the UCI options. These can be set in the config.yml in the uci_options section.

FatFritz2 commented 2 years ago

I mean is there anyway to enter a link with the NNUE file in config.yml or any other files ?

Torom commented 2 years ago

A link? Can you please be more specific about which engine you would like to run with BotLi?

FatFritz2 commented 2 years ago

Stockfish 200622_modern.exe + NNUE file

Torom commented 2 years ago

If you have the binary from abrok or somewhere else, the NNUE is already implemented. You don't have to do anything to use NNUE.

FatFritz2 commented 2 years ago

I rlly want to change the NNUE to make it stronger

Torom commented 2 years ago

There is no stronger network than the official one. But anyway.

Here is how to set the NNUE to use. Just add such a line to the uci_options section in config.yml.

EvalFile: "nn-3c0aa92af1da.nnue"

For example. Of course you have to make sure that the engine can find the NNUE.

FatFritz2 commented 2 years ago

THANK YOU

FatFritz2 commented 2 years ago

But why my engine got an error i added the nnue in the Path

Torom commented 2 years ago

As I said, you need to make sure that the engine can find the NNUE. So you have to download it and put it in the same folder as the engine.

FatFritz2 commented 2 years ago

uh ok

FatFritz2 commented 2 years ago

image thats what happened when i tried to start the bot :(

Torom commented 2 years ago

It would be best if you test it first without BotLi. So directly with the engine. If that works, BotLi should have no problems.

There can be many reasons why it does not work. Maybe the net is not the right architecture.

FatFritz2 commented 2 years ago

please help me it's not working

Torom commented 2 years ago

It would be helpful if you could tell me which net you are trying to use.

FatFritz2 commented 2 years ago

image here...

Torom commented 2 years ago

What is this? I don't see anything helpful in the screenshot.

What net are you trying to use? Where did you get it? Does it work with Stockfish outside of BotLi?

FatFritz2 commented 2 years ago

My NET is v4.0 i think... I got the NNUE file from fairy-stockfish.github.io The NNUE worked on f-s 14 outside of BotLi of course

Torom commented 2 years ago

That's the problem, NNUE from fairy-stockfish are not compatible with Stockfish. Either you use fairy-stockfish or you use Stockfish compatible nets.

FatFritz2 commented 2 years ago

wow ok thanks

Torom commented 2 years ago

If you have the binary from abrok or somewhere else, the NNUE is already implemented. You don't have to do anything to use NNUE.