Hakorr commited on
Commit
e1eba66
·
verified ·
1 Parent(s): a0be3fb

Upload 66 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ base_model: princeton-nlp/queen_pawn-8
5
+ base_model_relation: quantized
6
+ tags:
7
+ - chess
8
+ - board-conditioned
9
+ - webgpu
10
+ - onnx
11
+ - quantized
12
+ - acas
13
+ ---
14
+
15
+ # Queen PAWN-8 Q4 for A.C.A.S
16
+
17
+ A browser-ready conversion of [Princeton NLP's Queen PAWN-8](https://huggingface.co/princeton-nlp/queen_pawn-8), prepared for [A.C.A.S](https://github.com/Psyyke/A.C.A.S).
18
+
19
+ Queen suggests chess moves and explains the position. It combines a fine-tuned SmolLM3 decoder, an LC0 BT5 board encoder, and trained cross-attention bridges. It is conditioned on the board, not just a text prompt containing a FEN.
20
+
21
+ This is an experimental quantized conversion, not an official Princeton NLP release. No additional fine-tuning was performed for this package.
22
+
23
+ ## Package details
24
+
25
+ | Property | Value |
26
+ | --- | --- |
27
+ | Original checkpoint | `princeton-nlp/queen_pawn-8` |
28
+ | Source revision | `5027687fac08b64b2403b13aca5b198e68294fe9` |
29
+ | Package format | `acas-queen`, version 2 |
30
+ | Manifest precision label | `q4` |
31
+ | Activations | Float32 |
32
+ | Decoder layers | 36 |
33
+ | Board encoder layers | 16 |
34
+ | Context length | 2,304 tokens |
35
+ | Required payload size | About 3.65 GiB |
36
+ | Output language | English |
37
+ | Intended chess variant | Standard chess |
38
+
39
+ The Q4 label describes the exported quantization format, not a claim that every tensor uses four bits. The browser decoder and output head use custom WGSL kernels with `.bin` weights. The board encoder uses ONNX Runtime WebGPU.
40
+
41
+ The PAWN-8 suffix refers to the upstream training iteration, not an 8-billion-parameter model.
42
+
43
+ ## Using it with A.C.A.S
44
+
45
+ 1. Open A.C.A.S and go to **Miscellaneous > Queen**.
46
+ 2. Enter this repository's raw `queen.json` URL in **Package URL**.
47
+ 3. Click **Download** and keep the tab open until downloading and verification finish.
48
+ 4. Select the saved model and enable **Queen**.
49
+
50
+ The URL must use this shape:
51
+
52
+ ```text
53
+ https://huggingface.co/OWNER/REPOSITORY/resolve/COMMIT_SHA/queen.json
54
+ ```
55
+
56
+ Replace the placeholders with this repository's owner, name, and upload commit hash. That commit hash is separate from the original checkpoint's source revision.
57
+
58
+ Alternatively, download the package files into one folder and use **Import folder**. Keep the manifest and all files it lists together, with their original filenames.
59
+
60
+ A.C.A.S downloads the files beside the manifest and checks each payload's size and SHA-256 checksum before installing it in browser storage. Installed files can be reused without importing them for every session. Clearing site data removes the installation.
61
+
62
+ This package does not load with `AutoModelForCausalLM` or a generic ONNX text-generation pipeline. Use the matching A.C.A.S Queen runtime.
63
+
64
+ ## Device requirements
65
+
66
+ - HTTPS or localhost.
67
+ - A current browser with WebGPU and hardware acceleration enabled.
68
+ - A compatible hardware GPU with enough available memory.
69
+ - Several GiB of free browser storage, plus working space for installation.
70
+
71
+ The full pipeline has run in Chrome on an NVIDIA RTX 4070 Ti SUPER with 16 GiB VRAM. This is tested hardware, not a minimum-memory requirement or a guarantee for other cards.
72
+
73
+ There is no CPU fallback or hosted inference service in this integration. Chess inference runs locally after the files are downloaded. Downloading the package contacts the hosting service.
74
+
75
+ ## Generation and app behavior
76
+
77
+ The current A.C.A.S worker defaults to temperature `0.6`, top-k `20`, top-p `0.95`, and a maximum of `1,024` output tokens. The retained upstream `inference_config.json` describes the original runner, including its `2,048`-token output setting. Not all upstream runner settings apply to the browser.
78
+
79
+ A.C.A.S can shorten explanations, show board cues, and check recommendations with a separate single-threaded Stockfish engine. Those are app features, not changes to these weights. A legal move or a successful move check does not establish that the accompanying explanation is correct.
80
+
81
+ ## Evaluation results
82
+
83
+ The package remains marked **`validated: false`** in `queen.json`. Existing checks are useful conversion diagnostics, not full numerical parity, a playing-strength benchmark, or a certification of explanation accuracy.
84
+
85
+ ### Small original-versus-browser comparison
86
+
87
+ A local four-position comparison used the original upstream PyTorch model in BF16 and the browser Q4 runtime on an RTX 4070 Ti SUPER. Generation was greedy with a maximum of 1,024 output tokens.
88
+
89
+ The original reference recomputed full forward passes without a KV cache. It was not the official Linux vLLM runner.
90
+
91
+ | Position | Original BF16 recommendation | Browser Q4 recommendation |
92
+ | --- | --- | --- |
93
+ | Starting position | d4 | Nf3 |
94
+ | After 1.e4 | d6 | d6 |
95
+ | Fool's Mate opportunity | Qh4# | Qh4# |
96
+ | Hanging queen on g5 | Nxg5 | Nxg5 |
97
+
98
+ Additional checks reported:
99
+
100
+ - Exact matches for the tested history planes, including black-to-move cases.
101
+ - A maximum absolute board-projection error of approximately `1.69e-5` against the upstream FP32 counterpart.
102
+ - Matching next-token argmax on 18 of 20 forced-prefix probes.
103
+ - Different complete replies between the original and quantized versions.
104
+
105
+ Four positions and 20 token probes are too small to establish equal playing strength or general equivalence. Both versions produced factual errors. No Elo score or standardized explanation-accuracy score is claimed for this conversion.
106
+
107
+ Methods and limitations are documented in the [A.C.A.S Queen documentation](https://github.com/Psyyke/A.C.A.S/blob/main/app/assets/engines/queen/README.md).
108
+
109
+ These diagnostics are described in text rather than published as leaderboard results in model-card metadata. There is no standardized benchmark result to attach to this package.
110
+
111
+ ## Limitations and intended use
112
+
113
+ Use this model for casual chess analysis and experimental coaching where you can inspect its suggestions. Explanations can invent history, describe impossible continuations, or give unsupported strategic reasons. Quantization can change recommendations and wording.
114
+
115
+ English is the supported output language. Broader language performance and demographic or cultural biases have not been evaluated for this conversion.
116
+
117
+ Follow the rules of the chess site or event you are using. Do not use outside assistance in games where it is prohibited.
118
+
119
+ ## Attribution and licensing
120
+
121
+ - Original model: [princeton-nlp/queen_pawn-8](https://huggingface.co/princeton-nlp/queen_pawn-8).
122
+ - Original architecture and source: [Queen Project](https://github.com/queen-project/queen).
123
+ - Base language model: [HuggingFaceTB/SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B).
124
+ - Board encoder: [Leela Chess Zero](https://lczero.org/), BT5-1024x15x32h-rpe-swa-3700000.
125
+ - Browser conversion and integration: [A.C.A.S](https://github.com/Psyyke/A.C.A.S).
126
+
127
+ **The combined model's redistribution license has not been clarified.** The pinned upstream model card states that upstream component terms apply and does not assert a blanket license for the combined fine-tuned release.
128
+
129
+ SmolLM3 and Queen source-code licensing do not, by themselves, establish a license for all combined weights. No blanket weight license is assigned in this model card.
decoder-0.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d424bda1c2400435b6ce45e97de9b8545fb53a27568262dab250e3a735d4af86
3
+ size 64604720
decoder-1.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a5ff08580fd474d3066e62655bb058a55247eff412ca5f771217f0556183ef7
3
+ size 48842088
decoder-10.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81207dbaa287eef00073b08b954de559389eb3778a97cc29124996d6d0bbc7f6
3
+ size 64604720
decoder-11.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:092fa0a66885a87ac7e651dc9b4f1c45ebce11e643a08fa1879c1ad78249ef61
3
+ size 48841752
decoder-12.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab5aa2562440e2652493d82af87c71f246b8d080c633c336dc03ff691ef64222
3
+ size 64604720
decoder-13.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44766a6f364cc9a5ec51e00d939e9cdffbdc22a2cf58cbb99b454164d4c1434d
3
+ size 48842088
decoder-14.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2981c9184a79b0b85bdf4fd82a65791904a1fda4593a28148172d71c7b54b24f
3
+ size 64604720
decoder-15.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41e4690bfb0504ec180da711d5c0d1fc02635d2e17fb741da40571f560b6d481
3
+ size 48841752
decoder-16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:936a43b2a5e9dae48b04cab17471789263b98979a37db7b65594a9a4fa99ffdb
3
+ size 64604720
decoder-17.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10bb03573e5c35405541543b3714b1f3b7e952e784fe4ef8e99b4687f2c0ea13
3
+ size 48842088
decoder-18.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:478d89938eb3027db0da45698793fab70837d30964d3d86b2eaca08cd6bbd45b
3
+ size 64604720
decoder-19.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f44c0b57529cc8a40cfb749e719204136f8d5a369a05a5233e80d6d239a3d27
3
+ size 48841752
decoder-2.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d40fdbfca94eb9d44032b205047711f9a6e81e81babbf81e014934225b91d5c
3
+ size 64604720
decoder-20.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efb5d73852719cc1b1316b71ef9c38f5276453eb3ac49f5e9be0350f2042b05b
3
+ size 64604720
decoder-21.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14c564ae94238f0fdeadbaaac3bdba50860ba2524e059d7deaa0b7b7a1028e41
3
+ size 48842088
decoder-22.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c8e0bf6c7fb3975ca63866f563358ed2607328a167c971cf410e78fe804701f
3
+ size 64604720
decoder-23.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84aed79867fea4275b9fa75b0452d748824187de9158e8e9fdb6962dac6b2d92
3
+ size 48841752
decoder-24.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6713a6d6513c6ec4776bfdc110fa4c8ea6efcdf6925cd2941bbaadb1aac7f5a7
3
+ size 64604720
decoder-25.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48ce2794aaf4681ec22e6074005a408b83c01df491f433dbb89d179c6dd5841a
3
+ size 48842088
decoder-26.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2415ed3102e68ad87009f08a3ebba01cd8fd8767ec454a92ee8c784bb4e45730
3
+ size 64604720
decoder-27.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99830fdfcd8488d2c4e3c6d913e755c566cc7ea6006948255172b695e74c66e6
3
+ size 48841752
decoder-28.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38c50cae8ab27d46eaeca8e5e3575553715545ded324fbee4e1af8765efebcb7
3
+ size 64604720
decoder-29.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4afe52760af48e0c1ff107411899c9cfe4a6d4771672dfaa1e6c2e21bd3d1643
3
+ size 48842088
decoder-3.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cfc830a56df15ef5dc7f5779687bb247c3e6915475462610dea46456f870de0
3
+ size 48841752
decoder-30.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d324ef1ebcb1e8031d2a88237c51c210b37e01643576423e1eb798f396c94831
3
+ size 64604720
decoder-31.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c82a3572c4c161e4e943085b11eb0234c28fa074cc65de67b0328c2a06ca2f8
3
+ size 48841752
decoder-32.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9537af249cf2a62b923a4694cfb9247be1c4c5c2434462d4136107e94354440e
3
+ size 48842088
decoder-33.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cfcbe04e82a8bdd6991ef55cefe4e76740604846a9f0df4d13a7f0f0a75f416
3
+ size 48842088
decoder-34.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb3fba975ec23dac2de89c7a2cd961a33416ab990913493ac45346ea4564b9ab
3
+ size 48842088
decoder-35.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:432f3d09d2f252bdcd3fc0333913a7995c2f7fe8121822b88c8c00d7317a1dac
3
+ size 48841752
decoder-4.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bb69460d7deb037ea9c01dc77fbcab8f6edde4559d55229c489961f8a97294b
3
+ size 64604720
decoder-5.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b36853544582c1cd7f49923ae6d2455e3ae654cbf83e47bd06356f5c4f928637
3
+ size 48842088
decoder-6.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e2945b8e3d3429809222559104e83feba20cfb6a81b0f8a26d3a16f989bb4ca
3
+ size 64604720
decoder-7.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9167a3e3ffe0870bd18aaf0ba7b41c1b61617934891d9444473e4acd506325c5
3
+ size 48841752
decoder-8.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b54ae3e82acf0559f097f79bb0bbe3b4f1f655e02dd4198be604163fc10e0027
3
+ size 64604720
decoder-9.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3da8ef9c953ac7b4497959b633309003d897b0736330b0d02c8a685b1495d1c
3
+ size 48842088
embedding.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daba639884ce54ac9592e0e014aae016530651974d19e34bb33f75e64ae0698a
3
+ size 525651968
encoder-0.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b7a5de9cfcd6e5694e59a64448cef32c6a560f2b62aeb911e66dcb2d2dc3922
3
+ size 154263039
encoder-1.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f5f2bb2eaeb3b8f4f68da24b2a7bd1f476928ed7405992dfe186614f0932795
3
+ size 69944176
encoder-10.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c38bc3cabcec1e14da0fc2bc286fa1f0af3653af0842981d3204659d76606adc
3
+ size 69944176
encoder-11.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56b2caac036b1f9990de0b99c0c76333913cc43ed9e12c5f89c99ffd1a11db69
3
+ size 69944176
encoder-12.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cea14f91137e0f17e743f9486912db9e808d778a02009874bff102936e5217e9
3
+ size 69944176
encoder-13.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5eef8fe517c303a1370187f5fd73215e5f08c56e2e625f353ada7953d4b82dc
3
+ size 69944176
encoder-14.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40f6d9eeb9a63609f98ac90d8985e2c7bf469d6ee5bf70d541d12933535b830b
3
+ size 69944176
encoder-15.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94d68c839fb77063e11aabbb613d4975b4e47a78055ef972c4d08355417f6890
3
+ size 69944176
encoder-2.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc27c4c3e83c7cb86f0e8646642a1b95ad7731ec5f889bc55de14f99e07eafc2
3
+ size 69944176
encoder-3.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53942db922235efb0157b62130be4cf44e9802e7b5b4f21b5551b7e4224c8290
3
+ size 69944176
encoder-4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef518c02a8754e20bc2312f34c1e03c8365e17e0a82ef36936a0f56939fc3864
3
+ size 69944176