Upload 66 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+1
- README.mdAdded+129
- decoder-0.binAdded+3
- decoder-1.binAdded+3
- decoder-10.binAdded+3
- decoder-11.binAdded+3
- decoder-12.binAdded+3
- decoder-13.binAdded+3
- decoder-14.binAdded+3
- decoder-15.binAdded+3
- decoder-16.binAdded+3
- decoder-17.binAdded+3
- decoder-18.binAdded+3
- decoder-19.binAdded+3
- decoder-2.binAdded+3
- decoder-20.binAdded+3
- decoder-21.binAdded+3
- decoder-22.binAdded+3
- decoder-23.binAdded+3
- decoder-24.binAdded+3
- decoder-25.binAdded+3
- decoder-26.binAdded+3
- decoder-27.binAdded+3
- decoder-28.binAdded+3
- decoder-29.binAdded+3
- decoder-3.binAdded+3
- decoder-30.binAdded+3
- decoder-31.binAdded+3
- decoder-32.binAdded+3
- decoder-33.binAdded+3
- decoder-34.binAdded+3
- decoder-35.binAdded+3
- decoder-4.binAdded+3
- decoder-5.binAdded+3
- decoder-6.binAdded+3
- decoder-7.binAdded+3
- decoder-8.binAdded+3
- decoder-9.binAdded+3
- embedding.binAdded+3
- encoder-0.onnxAdded+3
- encoder-1.onnxAdded+3
- encoder-10.onnxAdded+3
- encoder-11.onnxAdded+3
- encoder-12.onnxAdded+3
- encoder-13.onnxAdded+3
- encoder-14.onnxAdded+3
- encoder-15.onnxAdded+3
- encoder-2.onnxAdded+3
- encoder-3.onnxAdded+3
- encoder-4.onnxAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129---
language:
- en
base_model: princeton-nlp/queen_pawn-8
base_model_relation: quantized
tags:
- chess
- board-conditioned
- webgpu
- onnx
- quantized
- acas
---
# Queen PAWN-8 Q4 for A.C.A.S
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).
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.
This is an experimental quantized conversion, not an official Princeton NLP release. No additional fine-tuning was performed for this package.
## Package details
| Property | Value |
| --- | --- |
| Original checkpoint | `princeton-nlp/queen_pawn-8` |
| Source revision | `5027687fac08b64b2403b13aca5b198e68294fe9` |
| Package format | `acas-queen`, version 2 |
| Manifest precision label | `q4` |
| Activations | Float32 |
| Decoder layers | 36 |
| Board encoder layers | 16 |
| Context length | 2,304 tokens |
| Required payload size | About 3.65 GiB |
| Output language | English |
| Intended chess variant | Standard chess |
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.
The PAWN-8 suffix refers to the upstream training iteration, not an 8-billion-parameter model.
## Using it with A.C.A.S
1. Open A.C.A.S and go to **Miscellaneous > Queen**.
2. Enter this repository's raw `queen.json` URL in **Package URL**.
3. Click **Download** and keep the tab open until downloading and verification finish.
4. Select the saved model and enable **Queen**.
The URL must use this shape:
```text
https://huggingface.co/OWNER/REPOSITORY/resolve/COMMIT_SHA/queen.json
```
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.
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.
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.
This package does not load with `AutoModelForCausalLM` or a generic ONNX text-generation pipeline. Use the matching A.C.A.S Queen runtime.
## Device requirements
- HTTPS or localhost.
- A current browser with WebGPU and hardware acceleration enabled.
- A compatible hardware GPU with enough available memory.
- Several GiB of free browser storage, plus working space for installation.
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.
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.
## Generation and app behavior
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.
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.
## Evaluation results
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.
### Small original-versus-browser comparison
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.
The original reference recomputed full forward passes without a KV cache. It was not the official Linux vLLM runner.
| Position | Original BF16 recommendation | Browser Q4 recommendation |
| --- | --- | --- |
| Starting position | d4 | Nf3 |
| After 1.e4 | d6 | d6 |
| Fool's Mate opportunity | Qh4# | Qh4# |
| Hanging queen on g5 | Nxg5 | Nxg5 |
Additional checks reported:
- Exact matches for the tested history planes, including black-to-move cases.
- A maximum absolute board-projection error of approximately `1.69e-5` against the upstream FP32 counterpart.
- Matching next-token argmax on 18 of 20 forced-prefix probes.
- Different complete replies between the original and quantized versions.
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.
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).
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.
## Limitations and intended use
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.
English is the supported output language. Broader language performance and demographic or cultural biases have not been evaluated for this conversion.
Follow the rules of the chess site or event you are using. Do not use outside assistance in games where it is prohibited.
## Attribution and licensing
- Original model: [princeton-nlp/queen_pawn-8](https://huggingface.co/princeton-nlp/queen_pawn-8).
- Original architecture and source: [Queen Project](https://github.com/queen-project/queen).
- Base language model: [HuggingFaceTB/SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B).
- Board encoder: [Leela Chess Zero](https://lczero.org/), BT5-1024x15x32h-rpe-swa-3700000.
- Browser conversion and integration: [A.C.A.S](https://github.com/Psyyke/A.C.A.S).
**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.
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.123version https://git-lfs.github.com/spec/v1oid sha256:d424bda1c2400435b6ce45e97de9b8545fb53a27568262dab250e3a735d4af86size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:8a5ff08580fd474d3066e62655bb058a55247eff412ca5f771217f0556183ef7size 48842088123version https://git-lfs.github.com/spec/v1oid sha256:81207dbaa287eef00073b08b954de559389eb3778a97cc29124996d6d0bbc7f6size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:092fa0a66885a87ac7e651dc9b4f1c45ebce11e643a08fa1879c1ad78249ef61size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:ab5aa2562440e2652493d82af87c71f246b8d080c633c336dc03ff691ef64222size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:44766a6f364cc9a5ec51e00d939e9cdffbdc22a2cf58cbb99b454164d4c1434dsize 48842088123version https://git-lfs.github.com/spec/v1oid sha256:2981c9184a79b0b85bdf4fd82a65791904a1fda4593a28148172d71c7b54b24fsize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:41e4690bfb0504ec180da711d5c0d1fc02635d2e17fb741da40571f560b6d481size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:936a43b2a5e9dae48b04cab17471789263b98979a37db7b65594a9a4fa99ffdbsize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:10bb03573e5c35405541543b3714b1f3b7e952e784fe4ef8e99b4687f2c0ea13size 48842088123version https://git-lfs.github.com/spec/v1oid sha256:478d89938eb3027db0da45698793fab70837d30964d3d86b2eaca08cd6bbd45bsize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:5f44c0b57529cc8a40cfb749e719204136f8d5a369a05a5233e80d6d239a3d27size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:7d40fdbfca94eb9d44032b205047711f9a6e81e81babbf81e014934225b91d5csize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:efb5d73852719cc1b1316b71ef9c38f5276453eb3ac49f5e9be0350f2042b05bsize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:14c564ae94238f0fdeadbaaac3bdba50860ba2524e059d7deaa0b7b7a1028e41size 48842088123version https://git-lfs.github.com/spec/v1oid sha256:1c8e0bf6c7fb3975ca63866f563358ed2607328a167c971cf410e78fe804701fsize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:84aed79867fea4275b9fa75b0452d748824187de9158e8e9fdb6962dac6b2d92size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:6713a6d6513c6ec4776bfdc110fa4c8ea6efcdf6925cd2941bbaadb1aac7f5a7size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:48ce2794aaf4681ec22e6074005a408b83c01df491f433dbb89d179c6dd5841asize 48842088123version https://git-lfs.github.com/spec/v1oid sha256:2415ed3102e68ad87009f08a3ebba01cd8fd8767ec454a92ee8c784bb4e45730size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:99830fdfcd8488d2c4e3c6d913e755c566cc7ea6006948255172b695e74c66e6size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:38c50cae8ab27d46eaeca8e5e3575553715545ded324fbee4e1af8765efebcb7size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:4afe52760af48e0c1ff107411899c9cfe4a6d4771672dfaa1e6c2e21bd3d1643size 48842088123version https://git-lfs.github.com/spec/v1oid sha256:5cfc830a56df15ef5dc7f5779687bb247c3e6915475462610dea46456f870de0size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:d324ef1ebcb1e8031d2a88237c51c210b37e01643576423e1eb798f396c94831size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:9c82a3572c4c161e4e943085b11eb0234c28fa074cc65de67b0328c2a06ca2f8size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:9537af249cf2a62b923a4694cfb9247be1c4c5c2434462d4136107e94354440esize 48842088123version https://git-lfs.github.com/spec/v1oid sha256:3cfcbe04e82a8bdd6991ef55cefe4e76740604846a9f0df4d13a7f0f0a75f416size 48842088123version https://git-lfs.github.com/spec/v1oid sha256:eb3fba975ec23dac2de89c7a2cd961a33416ab990913493ac45346ea4564b9absize 48842088123version https://git-lfs.github.com/spec/v1oid sha256:432f3d09d2f252bdcd3fc0333913a7995c2f7fe8121822b88c8c00d7317a1dacsize 48841752123version https://git-lfs.github.com/spec/v1oid sha256:3bb69460d7deb037ea9c01dc77fbcab8f6edde4559d55229c489961f8a97294bsize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:b36853544582c1cd7f49923ae6d2455e3ae654cbf83e47bd06356f5c4f928637size 48842088123version https://git-lfs.github.com/spec/v1oid sha256:4e2945b8e3d3429809222559104e83feba20cfb6a81b0f8a26d3a16f989bb4casize 64604720123version https://git-lfs.github.com/spec/v1oid sha256:9167a3e3ffe0870bd18aaf0ba7b41c1b61617934891d9444473e4acd506325c5size 48841752123version https://git-lfs.github.com/spec/v1oid sha256:b54ae3e82acf0559f097f79bb0bbe3b4f1f655e02dd4198be604163fc10e0027size 64604720123version https://git-lfs.github.com/spec/v1oid sha256:b3da8ef9c953ac7b4497959b633309003d897b0736330b0d02c8a685b1495d1csize 48842088123version https://git-lfs.github.com/spec/v1oid sha256:daba639884ce54ac9592e0e014aae016530651974d19e34bb33f75e64ae0698asize 525651968123version https://git-lfs.github.com/spec/v1oid sha256:4b7a5de9cfcd6e5694e59a64448cef32c6a560f2b62aeb911e66dcb2d2dc3922size 154263039123version https://git-lfs.github.com/spec/v1oid sha256:1f5f2bb2eaeb3b8f4f68da24b2a7bd1f476928ed7405992dfe186614f0932795size 69944176123version https://git-lfs.github.com/spec/v1oid sha256:c38bc3cabcec1e14da0fc2bc286fa1f0af3653af0842981d3204659d76606adcsize 69944176123version https://git-lfs.github.com/spec/v1oid sha256:56b2caac036b1f9990de0b99c0c76333913cc43ed9e12c5f89c99ffd1a11db69size 69944176123version https://git-lfs.github.com/spec/v1oid sha256:cea14f91137e0f17e743f9486912db9e808d778a02009874bff102936e5217e9size 69944176123version https://git-lfs.github.com/spec/v1oid sha256:e5eef8fe517c303a1370187f5fd73215e5f08c56e2e625f353ada7953d4b82dcsize 69944176123version https://git-lfs.github.com/spec/v1oid sha256:40f6d9eeb9a63609f98ac90d8985e2c7bf469d6ee5bf70d541d12933535b830bsize 69944176123version https://git-lfs.github.com/spec/v1oid sha256:94d68c839fb77063e11aabbb613d4975b4e47a78055ef972c4d08355417f6890size 69944176123version https://git-lfs.github.com/spec/v1oid sha256:fc27c4c3e83c7cb86f0e8646642a1b95ad7731ec5f889bc55de14f99e07eafc2size 69944176123version https://git-lfs.github.com/spec/v1oid sha256:53942db922235efb0157b62130be4cf44e9802e7b5b4f21b5551b7e4224c8290size 69944176123version https://git-lfs.github.com/spec/v1oid sha256:ef518c02a8754e20bc2312f34c1e03c8365e17e0a82ef36936a0f56939fc3864size 69944176.gitattributes+1
README.mdAdded+129
decoder-0.binAdded+3
decoder-1.binAdded+3
decoder-10.binAdded+3
decoder-11.binAdded+3
decoder-12.binAdded+3
decoder-13.binAdded+3
decoder-14.binAdded+3
decoder-15.binAdded+3
decoder-16.binAdded+3
decoder-17.binAdded+3
decoder-18.binAdded+3
decoder-19.binAdded+3
decoder-2.binAdded+3
decoder-20.binAdded+3
decoder-21.binAdded+3
decoder-22.binAdded+3
decoder-23.binAdded+3
decoder-24.binAdded+3
decoder-25.binAdded+3
decoder-26.binAdded+3
decoder-27.binAdded+3
decoder-28.binAdded+3
decoder-29.binAdded+3
decoder-3.binAdded+3
decoder-30.binAdded+3
decoder-31.binAdded+3
decoder-32.binAdded+3
decoder-33.binAdded+3
decoder-34.binAdded+3
decoder-35.binAdded+3
decoder-4.binAdded+3
decoder-5.binAdded+3
decoder-6.binAdded+3
decoder-7.binAdded+3
decoder-8.binAdded+3
decoder-9.binAdded+3
embedding.binAdded+3
encoder-0.onnxAdded+3
encoder-1.onnxAdded+3
encoder-10.onnxAdded+3
encoder-11.onnxAdded+3
encoder-12.onnxAdded+3
encoder-13.onnxAdded+3
encoder-14.onnxAdded+3
encoder-15.onnxAdded+3
encoder-2.onnxAdded+3
encoder-3.onnxAdded+3
encoder-4.onnxAdded+3