Search found 3554 matches

by Daniel Shawul
Sun Oct 18, 2020 3:04 am
Forum: Computer Chess Club: General Topics
Topic: Embedding Stockfish NNUE to ANY CHESS ENGINE: YouTube series
Replies: 6
Views: 611

Re: Embedding Stockfish NNUE to ANY CHESS ENGINE: YouTube series

Linux version only for now, I'm working on windows compatibility. If you manage to compile it on windows faster than I please share your solution. Btw, if I'm now using SF NNUE does it mean that I need to change the licence to GNU GPL 3 like in SF? A couple of notes. You need to define compiler fla...
by Daniel Shawul
Sat Oct 17, 2020 7:21 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: How to scale stockfish NNUE score?
Replies: 11
Views: 422

Re: How to scale stockfish NNUE score?

Some may want to do scaling to get better compatibility with search prunings such as
futility pruning and razoring, etc. where the margins are tuned probably with your old centi-pawn scores.
Other than that, you don't need scaling unless you use classic evaluation in some way.
by Daniel Shawul
Sat Oct 17, 2020 3:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: How to scale stockfish NNUE score?
Replies: 11
Views: 422

Re: How to scale stockfish NNUE score?

Hi guys, thanks to amazing library to probe stockfish NNUE by Daniel Shawul even a noob like me can now get NNUE score for each position, but it turns out that using that score directly leads to a VERY STRANGE behavior of my engine = it makes strange moves from time to time and sacrifices the queen...
by Daniel Shawul
Fri Oct 16, 2020 2:03 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hacking around CFish NNUE
Replies: 31
Views: 819

Re: Hacking around CFish NNUE

I wonder why auto-vectorization is not used instead of the manual SIMD code NNUE currently has. There is separate code for AVX2, SSE3,SSE2,SSE etc which is kind of ugly. Your code above can be easily auto-vectorized by the compiler, so I wonder why this approach is not taken. I don't see any operat...
by Daniel Shawul
Fri Oct 16, 2020 12:52 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hacking around CFish NNUE
Replies: 31
Views: 819

Re: Hacking around CFish NNUE

I wonder why auto-vectorization is not used instead of the manual SIMD code NNUE currently has. There is separate code for AVX2, SSE3,SSE2,SSE etc which is kind of ugly. Your code above can be easily auto-vectorized by the compiler, so I wonder why this approach is not taken. I don't see any operat...
by Daniel Shawul
Fri Oct 16, 2020 12:49 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hacking around CFish NNUE
Replies: 31
Views: 819

Re: Hacking around CFish NNUE

I just finished implementing the library without incremental updates. https://github.com/dshawul/nnue-probe.git It has a FEN interface and a pieces[],squares[] interface as well DLLExport void _CDECL nnue_init(const char * evalFile); DLLExport int _CDECL nnue_evaluate(int player, int* pieces, int* ...
by Daniel Shawul
Thu Oct 15, 2020 10:56 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hacking around CFish NNUE
Replies: 31
Views: 819

Re: Hacking around CFish NNUE

I just finished implementing the library without incremental updates. https://github.com/dshawul/nnue-probe.git It has a FEN interface and a pieces[],squares[] interface as well DLLExport void _CDECL nnue_init(const char * evalFile); DLLExport int _CDECL nnue_evaluate(int player, int* pieces, int* s...
by Daniel Shawul
Thu Oct 15, 2020 6:06 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hacking around CFish NNUE
Replies: 31
Views: 819

Re: Hacking around CFish NNUE

I wonder why auto-vectorization is not used instead of the manual SIMD code NNUE currently has. There is separate code for AVX2, SSE3,SSE2,SSE etc which is kind of ugly. Your code above can be easily auto-vectorized by the compiler, so I wonder why this approach is not taken. I don't see any operat...
by Daniel Shawul
Thu Oct 15, 2020 5:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hacking around CFish NNUE
Replies: 31
Views: 819

Re: Hacking around CFish NNUE

Think of Position*, containing your FEN and (Accumulator and DirtyPiece) structures. NNUE populate these structures using the function. void half_kp_append_active_indices Modify that to be based on your FEN rather than the bitboards code that it assumes the engine uses exactly like Stockfish does. A...
by Daniel Shawul
Thu Oct 15, 2020 5:07 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hacking around CFish NNUE
Replies: 31
Views: 819

Re: Hacking around CFish NNUE

Why are you bothering with code written by others? Without fancy CPU optimizations NNUE is pretty trivial, right? You just need 2*64*256 piece-square tables, 256 for each location of the white King, and 256 for each location of the black King. The 2*256 PST sums for the current King position are re...