-
Notifications
You must be signed in to change notification settings - Fork 615
Pull Request: Enhanced Training and Analysis Features for KataGo #1072
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
Open
anonym-g
wants to merge
52
commits into
lightvector:master
Choose a base branch
from
anonym-g:master
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.
Conversation
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
Script for adding random noises to model weights
b28c512nbt models' parameter list & structure overview
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.
This pull request introduces several new features to improve the training and analysis capabilities of the KataGo project. The additions include scripts for noise injection, model merging, Elo estimation, and training statistics visualization, each designed to streamline workflows and enhance model performance.
New Features
Noise Injection Scripts
python/noise.py
) and Bash wrapper (python/selfplay/noise.sh
) to apply noise after training.stdout.txt
by the modifiedtrain.py
.Model Merging Scripts
python/merge.py
) and Bash wrapper (python/selfplay/merge.sh
) for merging multiple checkpoint files into a single.bin.gz
model.Elo Estimation Script
python/elo_estimate.py
) for streamlined estimation of model Elo ratings.Training Statistics Visualization
Statistical Noise Injection (SNI) Results
The noise injection scripts enable efficient fine-tuning of pre-trained models. Key findings from testing include:
noise.sh
), fine-tuned models achieved performance comparable to official updates trained on 150,000–200,000 games (6.9M–9.25M rows).Example from Pair 3:
kata1-b28c512nbt-s8003120896-d4541551568
(2024-11-23, Elo: 13935.7 ± 16.3, 3113 games)kata1-b28c512nbt-s8032072448-d4548958859
(2024-11-28, Elo: 13950.1 ± 16.4, 3372 games)kata1-b28c512nbt-s8003240928-d120263
&noisy-1.0-1000iters-s8003240928-d120263
Model Merging
The merging scripts consolidate multiple checkpoint files into a unified
.bin.gz
model, simplifying deployment and analysis. This approach may resemble the methodology behind the experimental network released on April 28, 2025.Elo Estimation
The
elo_estimate.py
script provides a convenient method to estimate two models' Elo rating difference.Notes and Next Steps