Focus paper weights on ViT-L/B/S inference and preserve legacy downloads
Browse files- LICENSE-DINOv2 +203 -0
- NOTICE +11 -0
- README.md +121 -79
- chessqueries-vitL14-644-joint.ckpt +0 -3
- chessquerieslite-vits-644-coreml-fp16-r2.mlpackage.zip +0 -3
- chessquerieslite-vits-644-fp32.onnx +0 -3
- chessquerieslite-vits-644-int8.onnx +0 -3
- legacy/chessquerieslite-vits-644-coreml-fp16-r2.json +111 -0
- legacy/chessquerieslite-vits-644-onnx-fp32-r1.json +103 -0
- legacy/chessquerieslite-vits-644-onnx-int8-r1.json +103 -0
LICENSE-DINOv2
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
Apache License
|
| 4 |
+
Version 2.0, January 2004
|
| 5 |
+
http://www.apache.org/licenses/
|
| 6 |
+
|
| 7 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 8 |
+
|
| 9 |
+
1. Definitions.
|
| 10 |
+
|
| 11 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 12 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 13 |
+
|
| 14 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 15 |
+
the copyright owner that is granting the License.
|
| 16 |
+
|
| 17 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 18 |
+
other entities that control, are controlled by, or are under common
|
| 19 |
+
control with that entity. For the purposes of this definition,
|
| 20 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 21 |
+
direction or management of such entity, whether by contract or
|
| 22 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 23 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 24 |
+
|
| 25 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 26 |
+
exercising permissions granted by this License.
|
| 27 |
+
|
| 28 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 29 |
+
including but not limited to software source code, documentation
|
| 30 |
+
source, and configuration files.
|
| 31 |
+
|
| 32 |
+
"Object" form shall mean any form resulting from mechanical
|
| 33 |
+
transformation or translation of a Source form, including but
|
| 34 |
+
not limited to compiled object code, generated documentation,
|
| 35 |
+
and conversions to other media types.
|
| 36 |
+
|
| 37 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 38 |
+
Object form, made available under the License, as indicated by a
|
| 39 |
+
copyright notice that is included in or attached to the work
|
| 40 |
+
(an example is provided in the Appendix below).
|
| 41 |
+
|
| 42 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 43 |
+
form, that is based on (or derived from) the Work and for which the
|
| 44 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 45 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 46 |
+
of this License, Derivative Works shall not include works that remain
|
| 47 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 48 |
+
the Work and Derivative Works thereof.
|
| 49 |
+
|
| 50 |
+
"Contribution" shall mean any work of authorship, including
|
| 51 |
+
the original version of the Work and any modifications or additions
|
| 52 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 53 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 54 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 55 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 56 |
+
means any form of electronic, verbal, or written communication sent
|
| 57 |
+
to the Licensor or its representatives, including but not limited to
|
| 58 |
+
communication on electronic mailing lists, source code control systems,
|
| 59 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 60 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 61 |
+
excluding communication that is conspicuously marked or otherwise
|
| 62 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 63 |
+
|
| 64 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 65 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 66 |
+
subsequently incorporated within the Work.
|
| 67 |
+
|
| 68 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 69 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 70 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 71 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 72 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 73 |
+
Work and such Derivative Works in Source or Object form.
|
| 74 |
+
|
| 75 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 76 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 77 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 78 |
+
(except as stated in this section) patent license to make, have made,
|
| 79 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 80 |
+
where such license applies only to those patent claims licensable
|
| 81 |
+
by such Contributor that are necessarily infringed by their
|
| 82 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 83 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 84 |
+
institute patent litigation against any entity (including a
|
| 85 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 86 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 87 |
+
or contributory patent infringement, then any patent licenses
|
| 88 |
+
granted to You under this License for that Work shall terminate
|
| 89 |
+
as of the date such litigation is filed.
|
| 90 |
+
|
| 91 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 92 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 93 |
+
modifications, and in Source or Object form, provided that You
|
| 94 |
+
meet the following conditions:
|
| 95 |
+
|
| 96 |
+
(a) You must give any other recipients of the Work or
|
| 97 |
+
Derivative Works a copy of this License; and
|
| 98 |
+
|
| 99 |
+
(b) You must cause any modified files to carry prominent notices
|
| 100 |
+
stating that You changed the files; and
|
| 101 |
+
|
| 102 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 103 |
+
that You distribute, all copyright, patent, trademark, and
|
| 104 |
+
attribution notices from the Source form of the Work,
|
| 105 |
+
excluding those notices that do not pertain to any part of
|
| 106 |
+
the Derivative Works; and
|
| 107 |
+
|
| 108 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 109 |
+
distribution, then any Derivative Works that You distribute must
|
| 110 |
+
include a readable copy of the attribution notices contained
|
| 111 |
+
within such NOTICE file, excluding those notices that do not
|
| 112 |
+
pertain to any part of the Derivative Works, in at least one
|
| 113 |
+
of the following places: within a NOTICE text file distributed
|
| 114 |
+
as part of the Derivative Works; within the Source form or
|
| 115 |
+
documentation, if provided along with the Derivative Works; or,
|
| 116 |
+
within a display generated by the Derivative Works, if and
|
| 117 |
+
wherever such third-party notices normally appear. The contents
|
| 118 |
+
of the NOTICE file are for informational purposes only and
|
| 119 |
+
do not modify the License. You may add Your own attribution
|
| 120 |
+
notices within Derivative Works that You distribute, alongside
|
| 121 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 122 |
+
that such additional attribution notices cannot be construed
|
| 123 |
+
as modifying the License.
|
| 124 |
+
|
| 125 |
+
You may add Your own copyright statement to Your modifications and
|
| 126 |
+
may provide additional or different license terms and conditions
|
| 127 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 128 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 129 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 130 |
+
the conditions stated in this License.
|
| 131 |
+
|
| 132 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 133 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 134 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 135 |
+
this License, without any additional terms or conditions.
|
| 136 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 137 |
+
the terms of any separate license agreement you may have executed
|
| 138 |
+
with Licensor regarding such Contributions.
|
| 139 |
+
|
| 140 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 141 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 142 |
+
except as required for reasonable and customary use in describing the
|
| 143 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 144 |
+
|
| 145 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 146 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 147 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 148 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 149 |
+
implied, including, without limitation, any warranties or conditions
|
| 150 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 151 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 152 |
+
appropriateness of using or redistributing the Work and assume any
|
| 153 |
+
risks associated with Your exercise of permissions under this License.
|
| 154 |
+
|
| 155 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 156 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 157 |
+
unless required by applicable law (such as deliberate and grossly
|
| 158 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 159 |
+
liable to You for damages, including any direct, indirect, special,
|
| 160 |
+
incidental, or consequential damages of any character arising as a
|
| 161 |
+
result of this License or out of the use or inability to use the
|
| 162 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 163 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 164 |
+
other commercial damages or losses), even if such Contributor
|
| 165 |
+
has been advised of the possibility of such damages.
|
| 166 |
+
|
| 167 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 168 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 169 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 170 |
+
or other liability obligations and/or rights consistent with this
|
| 171 |
+
License. However, in accepting such obligations, You may act only
|
| 172 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 173 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 174 |
+
defend, and hold each Contributor harmless for any liability
|
| 175 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 176 |
+
of your accepting any such warranty or additional liability.
|
| 177 |
+
|
| 178 |
+
END OF TERMS AND CONDITIONS
|
| 179 |
+
|
| 180 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 181 |
+
|
| 182 |
+
To apply the Apache License to your work, attach the following
|
| 183 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 184 |
+
replaced with your own identifying information. (Don't include
|
| 185 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 186 |
+
comment syntax for the file format. We also recommend that a
|
| 187 |
+
file or class name and description of purpose be included on the
|
| 188 |
+
same "printed page" as the copyright notice for easier
|
| 189 |
+
identification within third-party archives.
|
| 190 |
+
|
| 191 |
+
Copyright [yyyy] [name of copyright owner]
|
| 192 |
+
|
| 193 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 194 |
+
you may not use this file except in compliance with the License.
|
| 195 |
+
You may obtain a copy of the License at
|
| 196 |
+
|
| 197 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 198 |
+
|
| 199 |
+
Unless required by applicable law or agreed to in writing, software
|
| 200 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 201 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 202 |
+
See the License for the specific language governing permissions and
|
| 203 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ChessQueries / ChessQ Lite model weights
|
| 2 |
+
Required Notice: Copyright (c) 2026 Joël Seytre.
|
| 3 |
+
The fine-tuned ChessQueries model weights are distributed under PolyForm Noncommercial 1.0.0.
|
| 4 |
+
|
| 5 |
+
These models incorporate DINOv2 pretrained encoders developed by Meta AI.
|
| 6 |
+
DINOv2: Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 7 |
+
https://github.com/facebookresearch/dinov2
|
| 8 |
+
DINOv2 is licensed under Apache License 2.0; see LICENSE-DINOv2.
|
| 9 |
+
The encoder weights were fine-tuned for chessboard recognition, combined with a
|
| 10 |
+
ChessQueries decoder, and exported to the documented precision.
|
| 11 |
+
The upstream license does not replace the license of the ChessQueries release.
|
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: polyform-noncommercial-license-1.0.0
|
| 4 |
-
license_link:
|
| 5 |
library_name: chessqueries
|
| 6 |
tags:
|
| 7 |
- chess
|
|
@@ -9,102 +9,144 @@ tags:
|
|
| 9 |
- arxiv:2608.30762
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# ChessQueries model weights
|
| 13 |
|
| 14 |
-
|
| 15 |
-
[
|
| 16 |
-
[Code [GitHub]](https://github.com/JSeytre/chessqueries) ·
|
| 17 |
-
[SLCC dataset annotations [HuggingFace]](https://huggingface.co/datasets/joelseytre/slcc)
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |

|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
Release weights for ChessQueries, a real-life chessboard recognizer using a
|
| 27 |
-
DINOv2 ViT-L/14 encoder and a square-query decoder. The model takes
|
| 28 |
-
644 × 644 inputs and was jointly trained on ChessReD, ChessCog, and SLCC.
|
| 29 |
-
|
| 30 |
-
## Files
|
| 31 |
-
|
| 32 |
-
- `chessqueries-vitl-644-safetensors-fp16-r1.safetensors` — CUDA/web deployment
|
| 33 |
-
weights (743.35 MB), FP16 weights/input/logits; SHA-256
|
| 34 |
-
`45edb69bf156f94299256fc51d1c75805f1de745ecfe34dc0615ef21265ab506`.
|
| 35 |
-
- `chessqueries-vitL14-644-joint.safetensors` — FP32 source/reference, tensor-only
|
| 36 |
-
inference weights; SHA-256
|
| 37 |
-
`6151bdd98fbe25f32080c097eba7ae75808b5615160e4867240931085fc762e5`.
|
| 38 |
-
- `chessqueries-vitL14-644-joint.ckpt` — original full PyTorch Lightning
|
| 39 |
-
checkpoint; SHA-256
|
| 40 |
-
`958e30d0a982873cfaef7fd3267489c8e554a8b2e75a9fb8441a511cd5a0ff18`.
|
| 41 |
-
- `chessquerieslite-vits-644-fp32.onnx` — ViT-S/14 at 644 × 644,
|
| 42 |
-
FP32 ONNX (127.57 MB).
|
| 43 |
-
- `chessquerieslite-vits-644-int8.onnx` — the same ViT-S/14 model,
|
| 44 |
-
INT8 ONNX (36.03 MB).
|
| 45 |
-
|
| 46 |
-
- `chessquerieslite-vits-644-coreml-fp16-r2.mlpackage.zip` — dedicated iOS
|
| 47 |
-
Lite Core ML package (62.47 MB), applied EXIF orientation and float32 tensor I/O;
|
| 48 |
-
SHA-256 `e01695f8adb0de7216bb1aae3a20ac2bb2f988a6c269a430181440e5d6f3292f`.
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
-
|
| 56 |
-
on all 3,196 test boards: ChessReD 2,129, ChessCog 342, SLCC 373 and CVChess 352.
|
| 57 |
-
All 204,544 square predictions matched; exact-board accuracies were unchanged
|
| 58 |
-
(99.624%, 98.538%, 87.668% and 87.216%, respectively). Both models ran at batch
|
| 59 |
-
one on an RTX 4090 with PyTorch 2.8.0, timm 1.0.27 and TF32 disabled. This
|
| 60 |
-
validates this artifact/runtime combination, not every backend or future export.
|
| 61 |
|
| 62 |
-
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
## Citation
|
| 86 |
|
| 87 |
```bibtex
|
| 88 |
@misc{seytre2026chessqueries,
|
| 89 |
-
title
|
| 90 |
-
author
|
| 91 |
-
year
|
| 92 |
-
eprint
|
| 93 |
archivePrefix = {arXiv},
|
| 94 |
-
primaryClass
|
| 95 |
-
|
| 96 |
-
url = {https://arxiv.org/abs/2608.30762}
|
| 97 |
}
|
| 98 |
```
|
| 99 |
-
|
| 100 |
-
## License
|
| 101 |
-
|
| 102 |
-
The ChessQueries model weights are licensed under the
|
| 103 |
-
[PolyForm Noncommercial License 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0).
|
| 104 |
-
They may be used, modified, and redistributed for permitted noncommercial
|
| 105 |
-
purposes; commercial use is not licensed. Third-party components, including the
|
| 106 |
-
DINOv2 encoder, remain subject to their respective upstream terms.
|
| 107 |
-
|
| 108 |
-
## Contact
|
| 109 |
-
|
| 110 |
-
Questions and enquiries: contact "at" chessq.org
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: polyform-noncommercial-license-1.0.0
|
| 4 |
+
license_link: LICENSE
|
| 5 |
library_name: chessqueries
|
| 6 |
tags:
|
| 7 |
- chess
|
|
|
|
| 9 |
- arxiv:2608.30762
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# ChessQueries paper model weights
|
| 13 |
|
| 14 |
+
[Paper](https://arxiv.org/abs/2608.30762) · [Code](https://github.com/JSeytre/chessqueries) ·
|
| 15 |
+
[Demo](https://chessq.org) · [SLCC annotations](https://huggingface.co/datasets/joelseytre/slcc)
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
These are selected original paper checkpoints for recognizing a chess position
|
| 18 |
+
from a photograph. Each model uses a DINOv2 encoder, square-query decoder and
|
| 19 |
+
644 × 644 RGB input. Outputs describe piece placement; side to move, castling
|
| 20 |
+
rights and other game-history fields are not inferred.
|
| 21 |
+
|
| 22 |
+
Newer **ChessQ Lite** ViT-S releases, starting with V4, are published separately
|
| 23 |
+
at [joelseytre/chessq-lite](https://huggingface.co/joelseytre/chessq-lite).
|
| 24 |
+
The [online demo](https://chessq.org) also offers newer models trained on
|
| 25 |
+
additional private data. The weights below remain the paper models.
|
| 26 |
|
| 27 |

|
| 28 |
|
| 29 |
+
## Recommended downloads
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
| Paper model | FP16 safetensors file | Download size | Manifest |
|
| 32 |
+
| --- | --- | ---: | --- |
|
| 33 |
+
| ViT-L | `chessqueries-vitl-644-safetensors-fp16-r1.safetensors` | 743.35 MB | [JSON](chessqueries-vitl-644-safetensors-fp16-r1.json) |
|
| 34 |
+
| ViT-B | `chessqueries-vitb-644-safetensors-fp16-r1.safetensors` | 248.95 MB | [JSON](chessqueries-vitb-644-safetensors-fp16-r1.json) |
|
| 35 |
+
| ViT-S | `chessquerieslite-vits-644-safetensors-fp16-r1.safetensors` | 63.15 MB | [JSON](chessquerieslite-vits-644-safetensors-fp16-r1.json) |
|
| 36 |
|
| 37 |
+
Each manifest gives an immutable artifact URL, exact bytes, SHA-256, architecture,
|
| 38 |
+
preprocessing and output contract. This is one selected checkpoint per
|
| 39 |
+
architecture, not every paper training seed. ViT-B uses original seed 1; ViT-S
|
| 40 |
+
uses original seed 2.
|
| 41 |
|
| 42 |
+
## Quick start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
+
Use Python 3.12 and this tested public package revision:
|
| 45 |
|
| 46 |
+
```sh
|
| 47 |
+
python3.12 -m venv .venv
|
| 48 |
+
. .venv/bin/activate
|
| 49 |
+
python -m pip install "git+https://github.com/JSeytre/chessqueries.git@63839c8886ce65be1de2acf7d29d5a6f23dd210a"
|
| 50 |
+
chessqueries-predict photo.jpg
|
| 51 |
+
```
|
| 52 |
|
| 53 |
+
The first prediction downloads and verifies the 743 MB ViT-L FP16 checkpoint.
|
| 54 |
+
CUDA runs in FP16. CPU uses the same download with FP32 arithmetic. Preprocessing
|
| 55 |
+
remains FP32 on both paths. The default batch size is one; `--device cpu` forces
|
| 56 |
+
CPU execution. CPU upcasting does not restore the original FP32 weight precision.
|
| 57 |
+
|
| 58 |
+
To select ViT-B, download through its pinned manifest and run it on your photo:
|
| 59 |
+
|
| 60 |
+
```python
|
| 61 |
+
from pathlib import Path
|
| 62 |
+
from urllib.request import urlopen, urlretrieve
|
| 63 |
+
|
| 64 |
+
from chessqueries.contracts.inference import verify_artifact
|
| 65 |
+
from chessqueries.contracts.models import ModelManifest
|
| 66 |
+
from chessqueries.models.predictor import Predictor
|
| 67 |
+
|
| 68 |
+
release = "chessqueries-vitb-644-safetensors-fp16-r1"
|
| 69 |
+
revision = "5d29dfc5b289a31c80018154c797ebe4f0713321"
|
| 70 |
+
url = f"https://huggingface.co/joelseytre/chessqueries/resolve/{revision}/{release}.json"
|
| 71 |
+
with urlopen(url) as response:
|
| 72 |
+
manifest = ModelManifest.model_validate_json(response.read())
|
| 73 |
+
artifact = Path(manifest.artifact.filename)
|
| 74 |
+
urlretrieve(str(manifest.artifact.url), artifact)
|
| 75 |
+
verify_artifact(artifact, manifest)
|
| 76 |
+
prediction = Predictor.from_checkpoint(artifact).predict(["photo.jpg"])[0]
|
| 77 |
+
print(prediction.fen)
|
| 78 |
+
```
|
| 79 |
|
| 80 |
+
For ViT-S, set `release = "chessquerieslite-vits-644-safetensors-fp16-r1"`.
|
| 81 |
+
For ViT-L, set `release = "chessqueries-vitl-644-safetensors-fp16-r1"`.
|
| 82 |
+
Once downloaded, all three can also use:
|
| 83 |
|
| 84 |
+
```sh
|
| 85 |
+
chessqueries-predict photo.jpg --checkpoint /path/to/model.safetensors
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
The portable CPU predictor is distinct from the strict manifest-bound serving
|
| 89 |
+
adapter. These FP16 manifests declare the validated `pytorch-cuda` runtime;
|
| 90 |
+
`ReleasePredictor` enforces that declaration and does not silently fall back.
|
| 91 |
+
|
| 92 |
+
## Preprocessing and validation
|
| 93 |
+
|
| 94 |
+
Decode RGB, ignore EXIF orientation for these safetensors releases, resize to
|
| 95 |
+
644 × 644 using float32 bilinear antialiasing without crop/padding, and normalize
|
| 96 |
+
with ImageNet mean/std. Cast to FP16 only before CUDA inference. The package
|
| 97 |
+
implements this contract; native/browser image resizing needs its own parity
|
| 98 |
+
checks. Logits are `[1, 64, 13]`, in a8-to-h1 order with classes
|
| 99 |
+
`. P N B R Q K p n b r q k`.
|
| 100 |
+
|
| 101 |
+
The published FP16 CUDA conversions were compared with their original FP32
|
| 102 |
+
sources on 3,196 images across ChessReD, ChessCog, SLCC and CVChess. ViT-L matched
|
| 103 |
+
all square labels. ViT-B changed seven square predictions and ViT-S changed one,
|
| 104 |
+
with no decrease in exact-board accuracy in any domain. They are not numerically
|
| 105 |
+
identical to their FP32 sources. Synthetic references and B/S validation summaries
|
| 106 |
+
accompany the manifests. These results do not establish accuracy or performance
|
| 107 |
+
for every backend, browser or phone.
|
| 108 |
+
|
| 109 |
+
## Legacy and reference downloads
|
| 110 |
+
|
| 111 |
+
The original `chessqueries-vitL14-644-joint.safetensors` (1.49 GB) remains at its
|
| 112 |
+
existing URL for older clients and full-precision reference comparisons.
|
| 113 |
+
SHA-256: `6151bdd98fbe25f32080c097eba7ae75808b5615160e4867240931085fc762e5`.
|
| 114 |
+
|
| 115 |
+
Older deployment exports and the full training checkpoint remain available at
|
| 116 |
+
immutable historical revisions. They are outside the recommended file list:
|
| 117 |
+
|
| 118 |
+
- [Paper ViT-S ONNX FP32](https://huggingface.co/joelseytre/chessqueries/resolve/a8a5cbadbcb38d4a6864c72ef9322f6b87de4508/chessquerieslite-vits-644-fp32.onnx), 127.57 MB;
|
| 119 |
+
SHA-256 `c085f7060ce848c33389ca6e90db5b1d7e41d56fc0566f5a1e4c96cf1460f897`.
|
| 120 |
+
- [Paper ViT-S ONNX INT8](https://huggingface.co/joelseytre/chessqueries/resolve/a8a5cbadbcb38d4a6864c72ef9322f6b87de4508/chessquerieslite-vits-644-int8.onnx), 36.03 MB;
|
| 121 |
+
SHA-256 `1c7b2968263b9a51b4405f4cad8228a81283fdc458031f13f0c53fa2c147c402`.
|
| 122 |
+
- [Paper ViT-S Core ML FP16 r2](https://huggingface.co/joelseytre/chessqueries/resolve/4929cd255442cc5eb3f770f9ac28c93a4ebf4747/chessquerieslite-vits-644-coreml-fp16-r2.mlpackage.zip), 62.47 MB;
|
| 123 |
+
SHA-256 `e01695f8adb0de7216bb1aae3a20ac2bb2f988a6c269a430181440e5d6f3292f`.
|
| 124 |
+
- [Original ViT-L Lightning training checkpoint](https://huggingface.co/joelseytre/chessqueries/resolve/5d29dfc5b289a31c80018154c797ebe4f0713321/chessqueries-vitL14-644-joint.ckpt), 4.46 GB;
|
| 125 |
+
SHA-256 `958e30d0a982873cfaef7fd3267489c8e554a8b2e75a9fb8441a511cd5a0ff18`.
|
| 126 |
+
|
| 127 |
+
[Legacy manifests](legacy/) describe the ONNX and Core ML interfaces. The Core ML
|
| 128 |
+
package applies EXIF orientation; it does not share the safetensors orientation
|
| 129 |
+
policy. These legacy exports are paper models, not ChessQ Lite V4.
|
| 130 |
+
|
| 131 |
+
## License
|
| 132 |
+
|
| 133 |
+
Weights are available under [PolyForm Noncommercial 1.0.0](LICENSE). Commercial
|
| 134 |
+
use requires separate permission. Keep the license and required notices with
|
| 135 |
+
redistributed copies and conversions. Third-party components, including DINOv2,
|
| 136 |
+
retain their upstream terms; see [third-party notices](NOTICE).
|
| 137 |
+
|
| 138 |
+
For questions about licensing, reach out to 'contact "at" chessq.org'.
|
| 139 |
|
| 140 |
## Citation
|
| 141 |
|
| 142 |
```bibtex
|
| 143 |
@misc{seytre2026chessqueries,
|
| 144 |
+
title = {ChessQueries: Toward Better Chess Board Recognition},
|
| 145 |
+
author = {Seytre, Jo{\"e}l},
|
| 146 |
+
year = {2026},
|
| 147 |
+
eprint = {2608.30762},
|
| 148 |
archivePrefix = {arXiv},
|
| 149 |
+
primaryClass = {cs.CV},
|
| 150 |
+
url = {https://arxiv.org/abs/2608.30762}
|
|
|
|
| 151 |
}
|
| 152 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chessqueries-vitL14-644-joint.ckpt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:958e30d0a982873cfaef7fd3267489c8e554a8b2e75a9fb8441a511cd5a0ff18
|
| 3 |
-
size 4460379188
|
|
|
|
|
|
|
|
|
|
|
|
chessquerieslite-vits-644-coreml-fp16-r2.mlpackage.zip
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e01695f8adb0de7216bb1aae3a20ac2bb2f988a6c269a430181440e5d6f3292f
|
| 3 |
-
size 62465170
|
|
|
|
|
|
|
|
|
|
|
|
chessquerieslite-vits-644-fp32.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c085f7060ce848c33389ca6e90db5b1d7e41d56fc0566f5a1e4c96cf1460f897
|
| 3 |
-
size 127572508
|
|
|
|
|
|
|
|
|
|
|
|
chessquerieslite-vits-644-int8.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1c7b2968263b9a51b4405f4cad8228a81283fdc458031f13f0c53fa2c147c402
|
| 3 |
-
size 36028599
|
|
|
|
|
|
|
|
|
|
|
|
legacy/chessquerieslite-vits-644-coreml-fp16-r2.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"model": {
|
| 4 |
+
"release": "chessquerieslite-vits-644-coreml-fp16-r2",
|
| 5 |
+
"format": "chessqueries-coreml-v1",
|
| 6 |
+
"artifact_sha256": "e01695f8adb0de7216bb1aae3a20ac2bb2f988a6c269a430181440e5d6f3292f"
|
| 7 |
+
},
|
| 8 |
+
"variant": "vit-s14",
|
| 9 |
+
"precision": "fp16",
|
| 10 |
+
"artifact": {
|
| 11 |
+
"filename": "chessquerieslite-vits-644-coreml-fp16-r2.mlpackage.zip",
|
| 12 |
+
"artifact_bytes": 62465170,
|
| 13 |
+
"url": "https://huggingface.co/joelseytre/chessqueries/resolve/4929cd255442cc5eb3f770f9ac28c93a4ebf4747/chessquerieslite-vits-644-coreml-fp16-r2.mlpackage.zip",
|
| 14 |
+
"distribution_revision": "4929cd255442cc5eb3f770f9ac28c93a4ebf4747"
|
| 15 |
+
},
|
| 16 |
+
"preprocessing_version": "rgb-imagenet-f32-bilinear-apply-exif-v1",
|
| 17 |
+
"input": {
|
| 18 |
+
"name": "image",
|
| 19 |
+
"representation": "tensor",
|
| 20 |
+
"dtype": "float32",
|
| 21 |
+
"shape": [
|
| 22 |
+
1,
|
| 23 |
+
3,
|
| 24 |
+
644,
|
| 25 |
+
644
|
| 26 |
+
],
|
| 27 |
+
"layout": "NCHW",
|
| 28 |
+
"color_order": "RGB",
|
| 29 |
+
"resize": {
|
| 30 |
+
"size_wh": [
|
| 31 |
+
644,
|
| 32 |
+
644
|
| 33 |
+
],
|
| 34 |
+
"interpolation": "bilinear",
|
| 35 |
+
"antialias": true,
|
| 36 |
+
"arithmetic": "float32",
|
| 37 |
+
"preserve_aspect_ratio": false,
|
| 38 |
+
"crop": false,
|
| 39 |
+
"padding": false
|
| 40 |
+
},
|
| 41 |
+
"reference_exif_orientation": "applied",
|
| 42 |
+
"normalization": {
|
| 43 |
+
"formula": "(pixel / 255.0 - mean[channel]) / std[channel]",
|
| 44 |
+
"mean": [
|
| 45 |
+
0.485,
|
| 46 |
+
0.456,
|
| 47 |
+
0.406
|
| 48 |
+
],
|
| 49 |
+
"std": [
|
| 50 |
+
0.229,
|
| 51 |
+
0.224,
|
| 52 |
+
0.225
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
"normalization_location": "client"
|
| 56 |
+
},
|
| 57 |
+
"output": {
|
| 58 |
+
"name": "logits",
|
| 59 |
+
"dtype": "float32",
|
| 60 |
+
"shape": [
|
| 61 |
+
1,
|
| 62 |
+
64,
|
| 63 |
+
13
|
| 64 |
+
],
|
| 65 |
+
"class_symbols": [
|
| 66 |
+
".",
|
| 67 |
+
"P",
|
| 68 |
+
"N",
|
| 69 |
+
"B",
|
| 70 |
+
"R",
|
| 71 |
+
"Q",
|
| 72 |
+
"K",
|
| 73 |
+
"p",
|
| 74 |
+
"n",
|
| 75 |
+
"b",
|
| 76 |
+
"r",
|
| 77 |
+
"q",
|
| 78 |
+
"k"
|
| 79 |
+
],
|
| 80 |
+
"square_order": "a8 through h8, then a7 through h7, continuing to a1 through h1",
|
| 81 |
+
"class_selection": "argmax over the last dimension; first index wins ties",
|
| 82 |
+
"fen_output": "piece placement only"
|
| 83 |
+
},
|
| 84 |
+
"provenance": {
|
| 85 |
+
"source_checkpoint_sha256": "3c1f3f91bdcd77402321fbc479eab00c74dbc6a9f29dc891e143510e09fc7e4f",
|
| 86 |
+
"source_revision": "053327c778c5729261a5118f5168a520ff6cc813",
|
| 87 |
+
"export_versions": {
|
| 88 |
+
"torch": "2.8.0",
|
| 89 |
+
"timm": "1.0.27",
|
| 90 |
+
"coremltools": "9.0",
|
| 91 |
+
"numpy": "1.26.4",
|
| 92 |
+
"python": "3.12.13"
|
| 93 |
+
},
|
| 94 |
+
"evidence": "Maintainer macOS 26.6.2 / coremltools 9.0 CPU_AND_GPU smoke test: 3 synthetic inputs, 192/192 square labels match the PyTorch FP16 target; max absolute logit error 0.006613254547119141 at provisional atol=0.01, rtol=0.001. All 192 labels also match the original FP32 source; max absolute logit difference 0.008028507232666016. Reference inputs/source SHA-256 f5cb4e31add9faca452ef5e5cf947b72664e120f87bd6953ca65c43560daeebd; precision-target metadata SHA-256 45ce30e4e8e45a34ab8ad7e7a4969f0b8734d71e1986f2cfa540881e1811bf34. Input/output names, shapes and float32 dtypes verified in the published package. Photo accuracy and iPhone latency/memory remain unvalidated."
|
| 95 |
+
},
|
| 96 |
+
"runtime_requirements": [
|
| 97 |
+
{
|
| 98 |
+
"runtime": "coreml",
|
| 99 |
+
"minimum_version": "system",
|
| 100 |
+
"platform": "ios",
|
| 101 |
+
"minimum_platform_version": "17.0"
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"runtime": "coreml",
|
| 105 |
+
"minimum_version": "system",
|
| 106 |
+
"platform": "macos",
|
| 107 |
+
"minimum_platform_version": "14.0"
|
| 108 |
+
}
|
| 109 |
+
],
|
| 110 |
+
"license": "PolyForm-Noncommercial-1.0.0"
|
| 111 |
+
}
|
legacy/chessquerieslite-vits-644-onnx-fp32-r1.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"model": {
|
| 4 |
+
"release": "chessquerieslite-vits-644-onnx-fp32-r1",
|
| 5 |
+
"format": "chessqueries-lite-onnx-v1",
|
| 6 |
+
"artifact_sha256": "c085f7060ce848c33389ca6e90db5b1d7e41d56fc0566f5a1e4c96cf1460f897"
|
| 7 |
+
},
|
| 8 |
+
"variant": "vit-s14",
|
| 9 |
+
"precision": "fp32",
|
| 10 |
+
"artifact": {
|
| 11 |
+
"filename": "chessquerieslite-vits-644-fp32.onnx",
|
| 12 |
+
"artifact_bytes": 127572508,
|
| 13 |
+
"url": "https://huggingface.co/joelseytre/chessqueries/resolve/a8a5cbadbcb38d4a6864c72ef9322f6b87de4508/chessquerieslite-vits-644-fp32.onnx",
|
| 14 |
+
"distribution_revision": "a8a5cbadbcb38d4a6864c72ef9322f6b87de4508"
|
| 15 |
+
},
|
| 16 |
+
"preprocessing_version": "rgb-imagenet-f32-bilinear-ignore-exif-v1",
|
| 17 |
+
"input": {
|
| 18 |
+
"name": "image",
|
| 19 |
+
"representation": "tensor",
|
| 20 |
+
"dtype": "float32",
|
| 21 |
+
"shape": [
|
| 22 |
+
1,
|
| 23 |
+
3,
|
| 24 |
+
644,
|
| 25 |
+
644
|
| 26 |
+
],
|
| 27 |
+
"layout": "NCHW",
|
| 28 |
+
"color_order": "RGB",
|
| 29 |
+
"resize": {
|
| 30 |
+
"size_wh": [
|
| 31 |
+
644,
|
| 32 |
+
644
|
| 33 |
+
],
|
| 34 |
+
"interpolation": "bilinear",
|
| 35 |
+
"antialias": true,
|
| 36 |
+
"arithmetic": "float32",
|
| 37 |
+
"preserve_aspect_ratio": false,
|
| 38 |
+
"crop": false,
|
| 39 |
+
"padding": false
|
| 40 |
+
},
|
| 41 |
+
"reference_exif_orientation": "ignored",
|
| 42 |
+
"normalization": {
|
| 43 |
+
"formula": "(pixel / 255.0 - mean[channel]) / std[channel]",
|
| 44 |
+
"mean": [
|
| 45 |
+
0.485,
|
| 46 |
+
0.456,
|
| 47 |
+
0.406
|
| 48 |
+
],
|
| 49 |
+
"std": [
|
| 50 |
+
0.229,
|
| 51 |
+
0.224,
|
| 52 |
+
0.225
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
"normalization_location": "client"
|
| 56 |
+
},
|
| 57 |
+
"output": {
|
| 58 |
+
"name": "logits",
|
| 59 |
+
"dtype": "float32",
|
| 60 |
+
"shape": [
|
| 61 |
+
1,
|
| 62 |
+
64,
|
| 63 |
+
13
|
| 64 |
+
],
|
| 65 |
+
"class_symbols": [
|
| 66 |
+
".",
|
| 67 |
+
"P",
|
| 68 |
+
"N",
|
| 69 |
+
"B",
|
| 70 |
+
"R",
|
| 71 |
+
"Q",
|
| 72 |
+
"K",
|
| 73 |
+
"p",
|
| 74 |
+
"n",
|
| 75 |
+
"b",
|
| 76 |
+
"r",
|
| 77 |
+
"q",
|
| 78 |
+
"k"
|
| 79 |
+
],
|
| 80 |
+
"square_order": "a8 through h8, then a7 through h7, continuing to a1 through h1",
|
| 81 |
+
"class_selection": "argmax over the last dimension; first index wins ties",
|
| 82 |
+
"fen_output": "piece placement only"
|
| 83 |
+
},
|
| 84 |
+
"provenance": {
|
| 85 |
+
"source_checkpoint_sha256": "3c1f3f91bdcd77402321fbc479eab00c74dbc6a9f29dc891e143510e09fc7e4f",
|
| 86 |
+
"source_revision": null,
|
| 87 |
+
"export_versions": {
|
| 88 |
+
"torch": "2.8.0+cu128",
|
| 89 |
+
"onnx": "1.19.1",
|
| 90 |
+
"onnxruntime": "1.23.2"
|
| 91 |
+
},
|
| 92 |
+
"evidence": "Historical six-image export comparison: provenance/lite-fp32.json; exact exporter git revision was not recorded."
|
| 93 |
+
},
|
| 94 |
+
"runtime_requirements": [
|
| 95 |
+
{
|
| 96 |
+
"runtime": "onnxruntime",
|
| 97 |
+
"minimum_version": "1.23.2",
|
| 98 |
+
"platform": "linux-cpu",
|
| 99 |
+
"minimum_platform_version": null
|
| 100 |
+
}
|
| 101 |
+
],
|
| 102 |
+
"license": "PolyForm-Noncommercial-1.0.0"
|
| 103 |
+
}
|
legacy/chessquerieslite-vits-644-onnx-int8-r1.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"model": {
|
| 4 |
+
"release": "chessquerieslite-vits-644-onnx-int8-r1",
|
| 5 |
+
"format": "chessqueries-lite-onnx-v1",
|
| 6 |
+
"artifact_sha256": "1c7b2968263b9a51b4405f4cad8228a81283fdc458031f13f0c53fa2c147c402"
|
| 7 |
+
},
|
| 8 |
+
"variant": "vit-s14",
|
| 9 |
+
"precision": "int8",
|
| 10 |
+
"artifact": {
|
| 11 |
+
"filename": "chessquerieslite-vits-644-int8.onnx",
|
| 12 |
+
"artifact_bytes": 36028599,
|
| 13 |
+
"url": "https://huggingface.co/joelseytre/chessqueries/resolve/a8a5cbadbcb38d4a6864c72ef9322f6b87de4508/chessquerieslite-vits-644-int8.onnx",
|
| 14 |
+
"distribution_revision": "a8a5cbadbcb38d4a6864c72ef9322f6b87de4508"
|
| 15 |
+
},
|
| 16 |
+
"preprocessing_version": "rgb-imagenet-f32-bilinear-ignore-exif-v1",
|
| 17 |
+
"input": {
|
| 18 |
+
"name": "image",
|
| 19 |
+
"representation": "tensor",
|
| 20 |
+
"dtype": "float32",
|
| 21 |
+
"shape": [
|
| 22 |
+
1,
|
| 23 |
+
3,
|
| 24 |
+
644,
|
| 25 |
+
644
|
| 26 |
+
],
|
| 27 |
+
"layout": "NCHW",
|
| 28 |
+
"color_order": "RGB",
|
| 29 |
+
"resize": {
|
| 30 |
+
"size_wh": [
|
| 31 |
+
644,
|
| 32 |
+
644
|
| 33 |
+
],
|
| 34 |
+
"interpolation": "bilinear",
|
| 35 |
+
"antialias": true,
|
| 36 |
+
"arithmetic": "float32",
|
| 37 |
+
"preserve_aspect_ratio": false,
|
| 38 |
+
"crop": false,
|
| 39 |
+
"padding": false
|
| 40 |
+
},
|
| 41 |
+
"reference_exif_orientation": "ignored",
|
| 42 |
+
"normalization": {
|
| 43 |
+
"formula": "(pixel / 255.0 - mean[channel]) / std[channel]",
|
| 44 |
+
"mean": [
|
| 45 |
+
0.485,
|
| 46 |
+
0.456,
|
| 47 |
+
0.406
|
| 48 |
+
],
|
| 49 |
+
"std": [
|
| 50 |
+
0.229,
|
| 51 |
+
0.224,
|
| 52 |
+
0.225
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
"normalization_location": "client"
|
| 56 |
+
},
|
| 57 |
+
"output": {
|
| 58 |
+
"name": "logits",
|
| 59 |
+
"dtype": "float32",
|
| 60 |
+
"shape": [
|
| 61 |
+
1,
|
| 62 |
+
64,
|
| 63 |
+
13
|
| 64 |
+
],
|
| 65 |
+
"class_symbols": [
|
| 66 |
+
".",
|
| 67 |
+
"P",
|
| 68 |
+
"N",
|
| 69 |
+
"B",
|
| 70 |
+
"R",
|
| 71 |
+
"Q",
|
| 72 |
+
"K",
|
| 73 |
+
"p",
|
| 74 |
+
"n",
|
| 75 |
+
"b",
|
| 76 |
+
"r",
|
| 77 |
+
"q",
|
| 78 |
+
"k"
|
| 79 |
+
],
|
| 80 |
+
"square_order": "a8 through h8, then a7 through h7, continuing to a1 through h1",
|
| 81 |
+
"class_selection": "argmax over the last dimension; first index wins ties",
|
| 82 |
+
"fen_output": "piece placement only"
|
| 83 |
+
},
|
| 84 |
+
"provenance": {
|
| 85 |
+
"source_checkpoint_sha256": "3c1f3f91bdcd77402321fbc479eab00c74dbc6a9f29dc891e143510e09fc7e4f",
|
| 86 |
+
"source_revision": null,
|
| 87 |
+
"export_versions": {
|
| 88 |
+
"torch": "2.8.0+cu128",
|
| 89 |
+
"onnx": "1.19.1",
|
| 90 |
+
"onnxruntime": "1.23.2"
|
| 91 |
+
},
|
| 92 |
+
"evidence": "Historical six-image export comparison: provenance/lite-int8.json; exact exporter git revision was not recorded."
|
| 93 |
+
},
|
| 94 |
+
"runtime_requirements": [
|
| 95 |
+
{
|
| 96 |
+
"runtime": "onnxruntime",
|
| 97 |
+
"minimum_version": "1.23.2",
|
| 98 |
+
"platform": "linux-cpu",
|
| 99 |
+
"minimum_platform_version": null
|
| 100 |
+
}
|
| 101 |
+
],
|
| 102 |
+
"license": "PolyForm-Noncommercial-1.0.0"
|
| 103 |
+
}
|