|
Download README.md from brasszero/brasszero-ppo: direct link, hf CLI and curl.
- Browser
- Download file 7.11 kB
-
https://huggingface.co/brasszero/brasszero-ppo/resolve/main/README.md
- Command line
-
hf download hf://brasszero/brasszero-ppo/README.md
-
curl -L -o README.md https://huggingface.co/brasszero/brasszero-ppo/resolve/main/README.md
7.11 kB
| license: apache-2.0 | |
| library_name: pytorch | |
| pipeline_tag: reinforcement-learning | |
| tags: | |
| - reinforcement-learning | |
| - self-play | |
| - ppo | |
| - multi-agent | |
| - board-games | |
| datasets: | |
| - brasszero/brasszero-games | |
| # BrassZero PPO checkpoints | |
| Policy networks for four-player Brass: Birmingham, trained through self-play in the | |
| [BrassZero](https://github.com/script-amv/brasszero) research project. This repository holds | |
| 16 selected checkpoints along one training line, from update 0 to update 4097. | |
| **Start with `update-0788`**, the project's recommended working model. `update-4097` is the latest | |
| checkpoint, and its playing strength has not been evaluated. A higher update number does not mean a | |
| stronger model: update 1919 scored lower than update 843 in a matched study. | |
| Playing strength against human players has not been measured. | |
| ## Loading | |
| These are not `transformers` models. They load only with the BrassZero code and the engine identity | |
| `engine-sha256-v1:65f8fb9c52a421f6e5fb0da636c15d5fc50749d0db1aaa0439aee4d7230f00a5`. Loading was tested on macOS (Intel, CPU, Python 3.9). Linux has not been tested for this release. | |
| ```sh | |
| git clone https://github.com/script-amv/brasszero | |
| cd brasszero | |
| make setup | |
| make setup-training | |
| export PYTHONPATH="$PWD/engine/tools:$PWD/training:$PWD/players/search" | |
| uvx --from huggingface_hub python -m huggingface_hub.cli.hf download brasszero/brasszero-ppo --include "update-0788/*" --local-dir dist/hf-models | |
| recordings=$(mktemp -d) | |
| BRASS_REPLAY_ROOT="$recordings" training/.venv/bin/python -m brass_rl arena \ | |
| --agent "model=dist/hf-models/update-0788" --mode argmax -- \ | |
| match --agents model greedy greedy greedy --deals 1 --seed 123 --out "$recordings/match.jsonl" | |
| ``` | |
| Each folder contains `manifest.json`, `metadata.json` and `policy.pt`. The loader rejects a folder with | |
| any other file, a checksum mismatch or a different engine identity. | |
| **Load only files you trust.** The project pins PyTorch 2.2.2, where a crafted weights file can run code on | |
| your computer even with `torch.load(..., weights_only=True)`, which the loader uses | |
| ([CVE-2025-32434](https://github.com/advisories/GHSA-53q9-r3pm-6pq6), | |
| [CVE-2026-24747](https://github.com/advisories/GHSA-63cw-57p8-fm3p)). Download checkpoints from this | |
| repository or the project's GitHub releases. The checksums in a folder detect damage; they do not show who | |
| made the files. | |
| ## Checkpoints | |
| | Folder | Update | Note | | |
| | --- | ---: | --- | | |
| | [`update-0000`](tree/main/update-0000) | 0 | First saved checkpoint of the line | | |
| | [`update-0100`](tree/main/update-0100) | 100 | Early school line | | |
| | [`update-0252`](tree/main/update-0252) | 252 | End of the first school run | | |
| | [`update-0302`](tree/main/update-0302) | 302 | Continuation point of the school line | | |
| | [`update-0500`](tree/main/update-0500) | 500 | School line | | |
| | [`update-0688`](tree/main/update-0688) | 688 | End of the school line; fixed opponent in later studies | | |
| | [`update-0738`](tree/main/update-0738) | 738 | Control branch; fixed opponent in later studies | | |
| | [`update-0788`](tree/main/update-0788) | 788 | Recommended working model | | |
| | [`update-0843`](tree/main/update-0843) | 843 | League study continuation | | |
| | [`update-1400`](tree/main/update-1400) | 1400 | Long continuation from 843 | | |
| | [`update-1919`](tree/main/update-1919) | 1919 | End of the long continuation; weaker than 843 in a matched study | | |
| | [`update-2500`](tree/main/update-2500) | 2500 | Long continuation from 1919 | | |
| | [`update-3000`](tree/main/update-3000) | 3000 | Long continuation from 1919 | | |
| | [`update-4055`](tree/main/update-4055) | 4055 | Source of the stability study | | |
| | [`update-4071`](tree/main/update-4071) | 4071 | Candidate learner from the stability study | | |
| | [`update-4097`](tree/main/update-4097) | 4097 | Latest main-line checkpoint; strength not evaluated | | |
| [`checkpoints.csv`](checkpoints.csv) lists the policy ID, weight checksum and the number of games in the | |
| dataset snapshot that name that policy ID. Some games identify a model by a training weight digest instead, | |
| so these counts are lower bounds. | |
| ## Model | |
| A graph encoder over the board with a recurrent memory of public events (`entity_dim` 64, | |
| `context_dim` 128, `recurrent_dim` 64, 2 message-passing rounds; 390,342 parameters). The policy | |
| sees its own observation and public events only. | |
| ## Training line | |
| | Updates | What produced them | | |
| | --- | --- | | |
| | 0 to 688 | PPO self-play with a league of frozen opponents (school line) | | |
| | 689 to 738 | Control branch | | |
| | 739 to 788 | Combined critic and score-reward treatments (labelled `BC`) | | |
| | 789 to 1919 | Continuations of the 788 line, including a league study at 794 to 843 | | |
| | 1920 to 4055 | A further continuation | | |
| | 4056 to 4071 | Candidate learner with eight games per update and a separate critic | | |
| | 4072 to 4097 | Continuation of that candidate | | |
| `BC` is an internal label for the combined critic and score-reward treatments. It does not mean | |
| behaviour cloning. | |
| For updates 4071 and 4097, the value head inside the exported policy is kept for format compatibility. | |
| It is not the separately trained critic, so do not use its values for search. | |
| ## Evaluation | |
| Each table below is a separate study with its own deals. Do not compare numbers across tables. A win is a | |
| sole first place after native tiebreakers. Greedy is a rule-based baseline player. Each study uses one | |
| training run, so run-to-run variation is unmeasured. | |
| ### Update 788: 8 deals, all 4 seats | |
| | Opponents | Games | Mean VP | Sole wins | | |
| | --- | ---: | ---: | ---: | | |
| | frozen 688 | 32 | 63.06 | 11 | | |
| | Greedy | 32 | 52.28 | 31 | | |
| Against frozen 688, the mean-VP difference from the control was +7.19 (paired 95% interval -3.34 to | |
| +17.22). The interval crosses zero, so this is a trend, not an established win. | |
| ### Updates 843 and 1919: 16 deals, all 4 seats | |
| | Opponents | Update | Games | Mean VP | Sole wins | Mean place | | |
| | --- | ---: | ---: | ---: | ---: | ---: | | |
| | 3 Greedy | 843 | 64 | 65.88 | 63 | 1.02 | | |
| | 3 Greedy | 1919 | 64 | 51.67 | 61 | 1.09 | | |
| | fixed 688, 738, 793 | 843 | 64 | 71.22 | 35 | 1.70 | | |
| | fixed 688, 738, 793 | 1919 | 64 | 57.20 | 14 | 2.41 | | |
| The paired mean-VP difference (1919 minus 843) was -14.20 against Greedy (95% interval -19.16 to -9.66) | |
| and -14.02 against the fixed trio (-21.23 to -7.25). | |
| ### Updates 4055 and 4071: 16 deals, all 4 seats | |
| | Opponents | Update | Games | Mean VP | Sole wins | Mean place | | |
| | --- | ---: | ---: | ---: | ---: | ---: | | |
| | 3 Greedy | 4055 | 64 | 56.11 | 60 | 1.16 | | |
| | 3 Greedy | 4071 | 64 | 60.97 | 63 | 1.05 | | |
| | fixed 688, 738, 793 | 4055 | 64 | 67.56 | 24 | 2.06 | | |
| | fixed 688, 738, 793 | 4071 | 64 | 67.09 | 27 | 1.98 | | |
| The paired mean-VP difference (4071 minus 4055) was +4.86 against Greedy (95% interval 1.45 to 8.25) and | |
| -0.47 against the fixed trio (-8.86 to 8.28). | |
| No frozen evaluation is attached for the other checkpoints. | |
| ## Licence and trademark | |
| Weights and cards are released under Apache-2.0. | |
| BrassZero is an independent research project. Brass: Birmingham is a trademark of Roxley Games. This | |
| project is not affiliated with, sponsored by or endorsed by Roxley Games. | |