Comments (6)
BigInteger might be your answer!
from chess-challenge.
from chess-challenge.
You could try packing the data into 128 bit integers and use buffer.blockcopy to convert it into the format your model uses, but other than that, there's no way to get around the limitation. You'll just have to use a smaller model or try some other method.
from chess-challenge.
For machine learning, since there is a max of 1024 tokens, the best data storage medium is 64 bits (the ways of getting around the limit have been disallowed or never worked in the first place.). The NNUE model uses 64 (king square)*64 (piece square)*5 (piece type minus king)*2 (piece color) = 40960 inputs (assuming you use the same weights for each color and rotate the board). That's 10240 64 bit values for just the inputs. You can simplify this (and weaken the model) by removing the king square, for 160 64 bit values for the input neurons. I haven't trained a model to see how good one would be with those few inputs, but in theory that's the easiest way for it to work.
Maybe it could be possible to store numbers in some other approximate form, which would be super heavy on the theory but possible for finding some sort of tradeoff of extra neurons for accuracy. Good luck if anyone tries to do this.
from chess-challenge.
The NNUE model uses 64 (king square)*64 (piece square)*5 (piece type minus king)*2 (piece color) = 40960 inputs (assuming you use the same weights for each color and rotate the board). That's 10240 64 bit values for just the inputs.
That is one way, yes, but plenty of NNUE engines (most, even) just use flat 12 pieces * 64 squares inputs, or some bucketing system with a lot fewer than 64 king buckets. Still a lot of weights, but there's absolutely no need for 64 buckets, or even any buckets at all.
from chess-challenge.
Is this really an issue with the code?
from chess-challenge.
Related Issues (20)
- Canβt open board HOT 5
- board.cs has an error. HOT 4
- Significant performance boost to IsDraw method HOT 3
- Copying boards/overriding fen strings HOT 2
- Each character in string counts as token HOT 3
- Please select a valid startup item
- Black pawn appearing on h4
- Build errors when trying to run MyBot without changing anything from when downloading it. HOT 1
- Bot Brain Capacity change. HOT 2
- SquareIsAttackedByOpponent is returning true, although the square isn't attacked HOT 1
- Game over every time, even when MyBot won the round. HOT 6
- Final knockout tournament clarification HOT 2
- HOw to set custom Chess position to test bot HOT 2
- Run codes from strings in C# HOT 8
- Submission Deadline Clarification HOT 1
- [Critical Bug] The Token Counter is bugged HOT 5
- bot submission size limit issue HOT 1
- Is there any update on competition? HOT 14
- PGN parser
- Segmentation fault (core dumped) when launching Chess-Challenge v1.20 on Ubuntu 20.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chess-challenge.