Skip to content

Add NNUE to PZChessBot - #23

Merged
kevlu8 merged 8 commits into
mainfrom
nnue
Mar 22, 2025
Merged

kevlu8 merged 8 commits into
mainfrom
nnue

Conversation

@kevlu8

@kevlu8 kevlu8 commented Mar 20, 2025 •

Copy link
Copy Markdown
Owner
  • This PR FULLY REMOVES HCE and adds NNUE for eval.

TODO before merge:

  • Make the NN UE instead of just NN

@kevlu8
kevlu8 requested a review from Copilot March 20, 2025 18:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request replaces HCE with NNUE for evaluation in PZChessBot by updating the CI workflow to compile the new NNUE engine code.

  • NNUE integration by adding network.cpp in compilation commands
  • Copying nnue.bin into the test directory for both perfts and search builds
Files not reviewed (11)
  • TODO: Language not supported
  • engine/compile: Language not supported
  • engine/compile_win: Language not supported
  • engine/eval.cpp: Language not supported
  • engine/eval.hpp: Language not supported
  • engine/includes.hpp: Language not supported
  • engine/main.cpp: Language not supported
  • engine/nnue/network.cpp: Language not supported
  • engine/nnue/network.hpp: Language not supported
  • engine/search.cpp: Language not supported
  • test/search.cpp: Language not supported
Comments suppressed due to low confidence (2)

.github/workflows/c-cpp.yml:15

  • Consider adding a check to verify that 'nnue.bin' was successfully copied to ensure the subsequent compilation using network.cpp does not fail.
run: cd test && cp ../nnue.bin . && g++ -o perfts.out perfts.cpp ../engine/bitboard.cpp ../engine/movegen.cpp ../engine/search.cpp ../engine/eval.cpp ../engine/ttable.cpp ../engine/nnue/network.cpp -O3 -mbmi -mbmi2 -m64 -mlzcnt -mavx2 -mpopcnt -fPIC -DPERFT

.github/workflows/c-cpp.yml:23

  • Consider adding a check to verify that 'nnue.bin' was successfully copied to prevent build failures during the search binary compilation.
run: cd test && cp ../nnue.bin . && g++ -o search.out search.cpp ../engine/bitboard.cpp ../engine/movegen.cpp ../engine/search.cpp ../engine/eval.cpp ../engine/ttable.cpp ../engine/nnue/network.cpp -O3 -std=c++17 -mbmi -mbmi2 -m64 -mlzcnt -mavx2 -mpopcnt -fPIC

@kevlu8
kevlu8 merged commit 0959e58 into main Mar 22, 2025
@kevlu8
kevlu8 deleted the nnue branch March 22, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants