-
Notifications
You must be signed in to change notification settings - Fork 119
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
Tf 214 #220
Open
Ergodice
wants to merge
140
commits into
LeelaChessZero:master
Choose a base branch
from
Ergodice:tf-214
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tf 214 #220
Conversation
This file contains 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
dense function combines dydense/dyrelu/linearscaling/gating into one function
Add logit gating, dense_layer, stop file, make dyrelu slopes/intercepts trainable
Weight gen (simple_gen) generates attention weights from each square by compressing then doing a batched dense to 64; buckets divides the training data based on material left.
Weight gen, buckets
Dytalking heads at this stage dynamically generates the projection matrices for the attention weights (same for all square pairs). Fixed set_visible_devices error by initializing tensorflow first in TFProcess and making DyDense temperature an instance attribute.
DyDense layers had issue saving sublayers so the design approach of the squeeze-excite layers is used, i.e., sublayers are moved outside into a function.
Fullgen compresses the tokens and combines them to extract global information into attention weights.
Dytalking heads adds residual to matrix specifying linear transformation
Removed old modules which were not useful including yaml references, also removed legacy resnet code. Added arc's encoding with option in yaml and also added example.yaml
update Readme to describe talking heads, fullgen, and dynamic kernel methods. Removed leelalogs and configs, except for example.yaml.
Fixed typo in tfprocess and Readme, made some config stuff oprtional, fixed arc encoding, removed fullgen bias
Added search_loss, which is one over the prediction for the best move, and confident_accuracy, which is the accuracy for positions where there is a clear best move. Removed simple gating. Also updated README to include info on auxiliary losses.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.