Skip to content

Commit

Permalink
1.14: newer default network (#638)
Browse files Browse the repository at this point in the history
* 1.12.4 (#606)

* edit katrain/core/sgf_parser.py

* edit katrain/i18n/locales/de/LC_MESSAGES/katrain.po, edit katrain/i18n/locales/cn/LC_MESSAGES/katrain.po and 17 other changes

* Bump requests from 2.25.0 to 2.31.0 (#623)

Bumps [requests](https://github.com/psf/requests) from 2.25.0 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.25.0...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* edit katrain/gui/popups.py

* edit katrain/gui/popups.py

* win exe

* edit katrain/KataGo/katago

* update workflows

* upgrade model

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sander Land <[email protected]>
Co-authored-by: Sander Land <[email protected]>
  • Loading branch information
4 people committed Jul 8, 2023
1 parent 5784bbd commit 0130237
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: 3.8

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions katrain/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"engine": {
"katago": "",
"altcommand": "",
"model": "katrain/models/g170e-b15c192-s1672170752-d466197061.bin.gz",
"model": "katrain/models/kata1-b18c384nbt-s6582191360-d3422816034.bin.gz",
"config": "katrain/KataGo/analysis_config.cfg",
"threads": 12,
"max_visits": 500,
Expand All @@ -28,7 +28,7 @@
"anim_pv_time": 0.5,
"debug_level": 0,
"lang": "en",
"version": "1.13.0",
"version": "1.14.0",
"load_fast_analysis": false,
"load_sgf_rewind": true
},
Expand Down
4 changes: 2 additions & 2 deletions katrain/core/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PROGRAM_NAME = "KaTrain"
VERSION = "1.13.0"
VERSION = "1.14.0"
HOMEPAGE = "https://github.com/sanderland/katrain"
CONFIG_MIN_VERSION = "1.11.0" # keep config files from this version
CONFIG_MIN_VERSION = "1.14.0" # keep config files from this version
ANALYSIS_FORMAT_VERSION = "1.0"
DATA_FOLDER = "~/.katrain"

Expand Down
16 changes: 8 additions & 8 deletions katrain/gui/popups.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,15 +468,14 @@ class BaseConfigPopup(QuickConfigGui):
"Strongest distributed model": "https://katagotraining.org/api/networks/get_strongest/",
}
MODELS = {
"20 block model": "https://github.com/lightvector/KataGo/releases/download/v1.4.5/g170e-b20c256x2-s5303129600-d1228401921.bin.gz",
"30 block model": "https://github.com/lightvector/KataGo/releases/download/v1.4.5/g170-b30c320x2-s4824661760-d1229536699.bin.gz",
"40 block model": "https://github.com/lightvector/KataGo/releases/download/v1.4.5/g170-b40c256x2-s5095420928-d1229425124.bin.gz",
"18 'nested residual block' model": "https://github.com/lightvector/KataGo/releases/download/v1.12.2/b18c384nbt-uec.bin.gz",
"18 block 'optimistic policy' model": "https://github.com/lightvector/KataGo/releases/download/v1.13.0/b18c384nbt-optimisticv13-s5971M.bin.gz",
"old 15 block model": "https://github.com/lightvector/KataGo/releases/download/v1.3.2/g170e-b15c192-s1672170752-d466197061.txt.gz",
}
MODEL_DESC = {
"Fat 40 block model": "https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170e-b40c384x2-s2348692992-d1229892979.zip",
"15 block model": "https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170e-b15c192-s1672170752-d466197061.bin.gz",
"Recommended 18b model": "https://media.katagotraining.org/uploaded/networks/models/kata1/kata1-b18c384nbt-s6582191360-d3422816034.bin.gz",
"old 20 block model": "https://github.com/lightvector/KataGo/releases/download/v1.4.5/g170e-b20c256x2-s5303129600-d1228401921.bin.gz",
"old 30 block model": "https://github.com/lightvector/KataGo/releases/download/v1.4.5/g170-b30c320x2-s4824661760-d1229536699.bin.gz",
"old 40 block model": "https://github.com/lightvector/KataGo/releases/download/v1.4.5/g170-b40c256x2-s5095420928-d1229425124.bin.gz",
}

KATAGOS = {
Expand All @@ -495,6 +494,8 @@ class BaseConfigPopup(QuickConfigGui):
"just-descriptions": {
"CUDA v1.13.0 (Windows)": "https://github.com/lightvector/KataGo/releases/download/v1.13.0/katago-v1.13.0-cuda11.2-windows-x64.zip",
"CUDA v1.13.0 (Linux)": "https://github.com/lightvector/KataGo/releases/download/v1.13.0/katago-v1.13.0-cuda11.1-linux-x64.zip",
"Cuda/TensorRT v1.13.0 (Windows)": "https://github.com/lightvector/KataGo/releases/download/v1.13.0/katago-v1.13.1-trt8.2-cuda11.2-windows-x64.zip",
"Cuda/TensorRT v1.13.0 (Linux)": "https://github.com/lightvector/KataGo/releases/download/v1.13.0/katago-v1.12.1-trt8.2-cuda11.1-linux-x64.zip",
},
}

Expand Down Expand Up @@ -548,7 +549,7 @@ def find_description(path):
# no description to bottom
model_files = sorted(
[(find_description(path), path) for path in model_files],
key=lambda descpath: "Z" * 10 + path if descpath[0] == descpath[1] else descpath[0],
key=lambda descpath: ("Recommended" not in descpath[0], " - " not in descpath[0], descpath[0]),
)
models_available_msg = i18n._("models available").format(num=len(model_files))
self.model_files.values = [models_available_msg] + [desc for desc, path in model_files]
Expand Down Expand Up @@ -907,7 +908,6 @@ def _refresh(self, _dt=0):
("aitop5", "{:.1%}", "ai_top5_move", 1, True),
]
):

statcell = {
bw: TableStatLabel(
text=fmt.format(sum_stats[bw][stat]) if stat in sum_stats[bw] else "",
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 0130237

Please sign in to comment.