-
Notifications
You must be signed in to change notification settings - Fork 1
implement lc0 neural network inference #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
NripeshN
merged 50 commits into
main
from
copilot/implement-lc0-neural-network-inference-again
Feb 9, 2026
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
6c6d985
Initial plan
Copilot 0786d8c
Implement neural network infrastructure for MCTS
Copilot 4de5a4d
Address code review issues
Copilot 1f471ef
Implement full policy tables with 1858 move mappings
Copilot a3973d6
Implement full position encoder with 8-position history and canonical…
Copilot d382173
Implement Metal/MPSGraph backend for transformer neural network infer…
Copilot 6fe652c
Add Metal backend documentation and fix memory management
Copilot 6dc2713
Implement Metal/MPSGraph transformer backend for NN inference
Copilot d3d1b38
Complete MCTS integration with neural network backend
Copilot 68cc845
Address code review: Extract magic numbers to named constants
Copilot 05311a1
Complete verification tests with all 15 benchmark positions and updat…
Copilot bfb3fcf
Merge main into copilot/implement-lc0-neural-network-inference-again
NripeshN b3f7f9f
Fix PR review issues: remove build artifacts and map knight promotion…
Copilot 7106b13
Update Elo tournament workflow to support manual trigger with optiona…
NripeshN 686ed6c
Enhance CI workflows by adding dependency installation steps for macO…
NripeshN 9000926
Refactor MCTS source files in CMakeLists.txt by removing unused files
NripeshN 74b84d3
Enhance CMake configuration and CI workflows for protobuf and absl in…
NripeshN e0a6f37
Update CMake and CI workflows to improve absl library handling
NripeshN 6593b74
Fix critical bugs: recalculate max_score after NN blending and use re…
Copilot c63ee6c
Fix castling plane order consistency and invalid move policy index
Copilot b43f2a6
Add MetalFish transformer inference
NripeshN cae7dd8
Fix multiple bugs in NN encoder and policy map
cursoragent 919a924
Update src/nn/metal/metal_network.mm
NripeshN d21e4ca
Add Lc0 compatible Metal inference
NripeshN 3e73645
Implement MetalFish inference for Lc
NripeshN a322040
Implement MetalFish neural inference
NripeshN a2483e8
Add transform support and network factory improvements
NripeshN a419df0
Add Metal backend Lc0 inference
NripeshN ecccdd0
Add MetalFish Metal NN inference
NripeshN 75c6e00
Add lc0_ref submodule config
NripeshN 5d533e8
Fix CMake build issues: add missing NN_SOURCES to CUDA tests and remo…
cursoragent c48b4e0
Implement MetalFish Lc0-style nn
NripeshN a9dde74
Handle missing NN history states
NripeshN db792a8
Implement MetalFish Lc0 inference
NripeshN 2a6621d
Fix neural network policy and encoding bugs
cursoragent 1e18020
Fix NN comparison mismatch initial
NripeshN 0de7f97
Fix policy map transform bugs and add missing Accelerate framework link
cursoragent 53ab23a
Add policy softmax temperature and simplify transform logic
NripeshN 54459a3
delete ref
NripeshN 2e2f68f
Fix NN policy logit filtering and redundant NN evaluations
cursoragent 9695b8d
Refactor CMake configuration and add new source files for benchmarks
NripeshN d77a7f6
Fix three bugs: Metal batch size, NNUE paths, encoder flip
cursoragent 1121bde
refactor codebase
NripeshN f97b5cd
Update README to reflect restructured codebase
NripeshN 1051d59
fast operations
NripeshN 0b93f6b
remove cuda tests
NripeshN 498a7a8
UCI clean up
NripeshN 94538b2
clean tests
NripeshN fad6356
Refactor Metal and MCTS components for improved performance and clarity
NripeshN e61c002
Add GatherBatchEvaluator for cooperative batching in MCTS
NripeshN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [submodule "lc0_ref"] | ||
| path = lc0_ref | ||
| url = https://github.com/LeelaChessZero/lc0 | ||
| branch = master |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.