QEV-2B release files
Browse files- .gitattributes +2 -0
- LICENSE +201 -0
- README.md +220 -0
- chat_template.jinja +154 -0
- config.json +105 -0
- exit16.safetensors +3 -0
- figures/qev_architecture.png +3 -0
- head.safetensors +3 -0
- manifest.json +67 -0
- model.safetensors +3 -0
- processor_config.json +61 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ 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 |
+
figures/qev_architecture.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
library_name: qev
|
| 6 |
+
pipeline_tag: zero-shot-classification
|
| 7 |
+
base_model: Qwen/Qwen3.5-2B
|
| 8 |
+
base_model_relation: finetune
|
| 9 |
+
tags:
|
| 10 |
+
- decision-model
|
| 11 |
+
- typed-decisions
|
| 12 |
+
- multimodal
|
| 13 |
+
- vision
|
| 14 |
+
- classification
|
| 15 |
+
- calibration
|
| 16 |
+
- calibrated-probabilities
|
| 17 |
+
- abstention
|
| 18 |
+
- early-exit
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# QEV-2B
|
| 22 |
+
|
| 23 |
+
**A 2B open multimodal decision model: text and image in, calibrated option probabilities out, in one forward pass with no generated tokens.**
|
| 24 |
+
|
| 25 |
+
[-2563eb)](#results)
|
| 26 |
+
[](#license)
|
| 27 |
+
[](https://huggingface.co/Qwen/Qwen3.5-2B)
|
| 28 |
+
|
| 29 |
+
QEV-2B is the full-size member of the QEV family. It is built on Qwen3.5-2B. You supply the evidence (text, one or more images) and the candidate options with their meanings. The model returns a probability for each option, a typed answer, and an abstain signal.
|
| 30 |
+
|
| 31 |
+
**Headline (self-scored, pending official run):** On the JEV Decision Index vision board (edition 0.3.2, public part), QEV-2B scores **61.99**, the highest score on the board among models up to 2.3B parameters: 2.84 points above vLLM-SR d3-nano (2.21B, 59.15), and above Intern-Decision-4B (4.66B, 61.69) and Jev-Omni (11.96B, 60.10). It ranks first among models up to 2.3B on five of the eleven benchmarks: RealWorldQA, Mind2Web, KIE, Moderation and R-Bench-M.
|
| 32 |
+
|
| 33 |
+
## Results
|
| 34 |
+
|
| 35 |
+
### Leaderboard comparison
|
| 36 |
+
|
| 37 |
+
JEV Decision Index, vision, edition 0.3.2, public part. Board generated 2026-10-16.
|
| 38 |
+
|
| 39 |
+
| Model | Params | Index (public) |
|
| 40 |
+
| --- | ---: | ---: |
|
| 41 |
+
| d3-mini | 4.54B | 67.67 |
|
| 42 |
+
| RSI-Jev v6.1 VL 4B | 4.66B | 63.01 |
|
| 43 |
+
| RSI-Jev v5.0 VL 3B | 4.66B | 62.58 |
|
| 44 |
+
| **QEV-2B (self-scored)** | **2.21B** | **61.99** |
|
| 45 |
+
| Intern-Decision-4B | 4.66B | 61.69 |
|
| 46 |
+
| Jev-Omni | 11.96B | 60.10 |
|
| 47 |
+
| d3-nano | 2.21B | 59.15 |
|
| 48 |
+
| Intern-Decision-2B | 2.27B | 52.92 |
|
| 49 |
+
| OneJev1.5-0.8B | 1.11B | 52.32 |
|
| 50 |
+
|
| 51 |
+
<sub>Board values are copied as published (JEV Decision Index vision, edition 0.3.2, public part, generated 2026-10-16). The QEV-2B value is **self-scored, pending official run**: public evaluation kit, native resolution up to 1.6 MP per image (no shared multi-image budget), single run, full depth, scored on the exact released files. It is not an official leaderboard entry and will be replaced when the official run is available.</sub>
|
| 52 |
+
|
| 53 |
+
### Where QEV-2B leads (self-scored)
|
| 54 |
+
|
| 55 |
+
| Benchmark | QEV-2B | Best other model up to 2.3B (board, public) |
|
| 56 |
+
| --- | ---: | --- |
|
| 57 |
+
| Mind2Web | **82.3** | d3-nano (2.21B) 63.7 |
|
| 58 |
+
| KIE | **93.9** | Intern-Decision-2B (2.27B) 84.4 |
|
| 59 |
+
| RealWorldQA | **56.2** | d3-nano (2.21B) 53.1 |
|
| 60 |
+
| Moderation | **29.9** | OneJev1.5-0.8B (1.11B) 24.7 |
|
| 61 |
+
| R-Bench-M | **16.8** | d3-nano (2.21B) 15.5 |
|
| 62 |
+
|
| 63 |
+
### Per-benchmark scores
|
| 64 |
+
|
| 65 |
+
Index = weighted mean of the benchmarks below. Weights: 1.0 unless noted. R-Bench-M 0.5, MMMU-Pro 0.25.
|
| 66 |
+
|
| 67 |
+
| Benchmark | QEV-2B (self-scored) | Best other model up to 2.3B (board) | Weight |
|
| 68 |
+
| --- | ---: | ---: | ---: |
|
| 69 |
+
| CV-Bench | 70.6 | 71.9 (d3-nano) | 1.0 |
|
| 70 |
+
| BLINK | 47.2 | 53.8 (OneJev1.5-0.8B) | 1.0 |
|
| 71 |
+
| RealWorldQA | **56.2** | 53.1 (d3-nano) | 1.0 |
|
| 72 |
+
| CharXiv | 63.4 | 65.2 (d3-nano) | 1.0 |
|
| 73 |
+
| InfographicVQA | 83.1 | 83.6 (d3-nano) | 1.0 |
|
| 74 |
+
| Mind2Web | **82.3** | 63.7 (d3-nano) | 1.0 |
|
| 75 |
+
| Winoground | 65.5 | 69.0 (d3-nano) | 1.0 |
|
| 76 |
+
| KIE | **93.9** | 84.4 (Intern-Decision-2B) | 1.0 |
|
| 77 |
+
| Moderation | **29.9** | 24.7 (OneJev1.5-0.8B) | 1.0 |
|
| 78 |
+
| R-Bench-M | **16.8** | 15.5 (d3-nano) | 0.5 |
|
| 79 |
+
| MMMU-Pro | 15.6 | 17.8 (d3-nano) | 0.25 |
|
| 80 |
+
| **Index** | **61.99** | 59.15 (d3-nano) | |
|
| 81 |
+
|
| 82 |
+
Evaluation: public evaluation kit, native resolution up to 1.6 MP per image (no shared multi-image budget), single run, full depth, on the released files (merged weights). 95% bootstrap interval of the index (items resampled within each benchmark, 2,000 replicates): 60.63 to 63.34. Benchmarks were not used for checkpoint selection. The previous QEV-2B release (0.2.1) has no score on this board.
|
| 83 |
+
|
| 84 |
+
### Speed and fast mode
|
| 85 |
+
|
| 86 |
+
| Mode | Image cap | Depth | Worst-case p95 | Median p50 | Peak GPU memory |
|
| 87 |
+
| --- | ---: | ---: | ---: | ---: | ---: |
|
| 88 |
+
| Accurate (default) | 1.6 MP | 24 layers | 738.6 ms | 135.3 ms | 4.44 GiB |
|
| 89 |
+
| Fast | 0.26 MP | 16 layers | 225.0 ms | 91.6 ms | 4.13 GiB |
|
| 90 |
+
|
| 91 |
+
<sub>Release loader only (`qev.QEV.load` + `predict`, no CUDA graphs or custom kernels), RTX 4060 Ti 8 GB, batch 1, warm. 47 request profiles (text and image requests with up to 16 options; the largest is 3,229 input tokens in accurate mode), 3 warm-up and 30 timed runs each. Worst-case p95 is the highest per-profile p95; median p50 is the median over profiles of each profile's p50. Peak GPU memory is PyTorch's peak allocation. In both modes the slowest profile is a 16-option image request near the token limit.</sub>
|
| 92 |
+
|
| 93 |
+
Fast mode exits at layer 16 of 24 with a distilled exit head (`exit16.safetensors`) and caps images at 0.26 MP. At the same 0.26 MP input, exiting at layer 16 matched full depth on our internal DEV set: 85.0% versus 84.9% on the coverage-mix selection split (1,859 items), 89.8% versus 90.6% on NLVR2 dev (128), 88.8% versus 89.2% on image diagnostics (400) and 93.0% versus 92.8% on text diagnostics (485). The lower resolution costs accuracy against accurate mode, most on document, chart and screen sources. No index is reported for fast mode, so the numbers above apply to the full-depth mode only. Calibration is fitted for accurate mode and has not been refitted for fast mode.
|
| 94 |
+
|
| 95 |
+
### Calibration and abstention
|
| 96 |
+
|
| 97 |
+
Per-type temperatures and abstain thresholds are fitted on the DEV selection split (the split also used for checkpoint selection; benchmarks are never used), on group-disjoint halves: temperature on one half, threshold on the other. Policy: the lowest confidence threshold at which answered questions have at most 15% error, with at least 20 answered. Numbers are on the held-out policy half, accurate mode. A response always carries the answer; `abstained` is a separate flag, so benchmark scores are unaffected.
|
| 98 |
+
|
| 99 |
+
| Question type | DEV questions | Temperature | Threshold | Answered | Error on answered | ECE (raw -> calibrated) |
|
| 100 |
+
| --- | ---: | ---: | ---: | ---: | ---: | --- |
|
| 101 |
+
| Choice | 1,296 | 0.84 | 0.31 | 100% | 10.5% | 0.025 -> 0.013 |
|
| 102 |
+
| Score | 79 | 0.43 | 0.52 | 100% | 7.6% | 0.140 -> 0.036 |
|
| 103 |
+
| Yes/no | 80 | 0.49 | 0.58 | 100% | 6.3% | 0.196 -> 0.088 |
|
| 104 |
+
|
| 105 |
+
For all three question types the 15% target is met on all DEV questions, so abstention only triggers below the lowest confidence seen on DEV and is rare. The score and yes/no thresholds rest on about 80 DEV questions each (internal text diagnostics) and are less certain than the choice threshold.
|
| 106 |
+
|
| 107 |
+
## Architecture
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
|
| 111 |
+
- Backbone: Qwen3.5-2B language model (hidden size 2048, 24 layers: 18 GatedDeltaNet + 6 full attention), 2.21B parameters.
|
| 112 |
+
- Vision: Qwen3.5 ViT encoder (frozen).
|
| 113 |
+
- Readout: option probabilities read from the hidden states.
|
| 114 |
+
- Condition-modulated binding head, per-type temperature calibration and an abstain decision (fitted on DEV; see Calibration and abstention).
|
| 115 |
+
- Single forward pass, no generated tokens.
|
| 116 |
+
- Fast mode: a distilled exit head reads the options at layer 16 of 24 (`exit16.safetensors`); images are capped at 0.26 MP.
|
| 117 |
+
- GPU inference uses a BF16 backbone and FP32 readouts; the CPU path uses FP32.
|
| 118 |
+
- Fine-tuning: LoRA (rank 8, alpha 16) on the language model plus trained readout and binding heads; the vision encoder and the other base weights are frozen (board category: LoRA + head).
|
| 119 |
+
- Weights are shipped merged: `model.safetensors` (4.43 GB, BF16, both LoRA stages folded in) plus `head.safetensors` (0.7 MB, readout and binding head).
|
| 120 |
+
|
| 121 |
+
## Training data
|
| 122 |
+
|
| 123 |
+
Every source used in training, read from the training script (`qev_mix.py`) and its training log.
|
| 124 |
+
|
| 125 |
+
**Coverage mix (train split, 18 sources).** Each source contributes items from its train split. 5% of each source (up to 120 items) is held out as a selection set and is never trained on.
|
| 126 |
+
|
| 127 |
+
| Source | Split |
|
| 128 |
+
| --- | --- |
|
| 129 |
+
| AI2D | train |
|
| 130 |
+
| A-OKVQA | train |
|
| 131 |
+
| ChartQA | train |
|
| 132 |
+
| CORD | train |
|
| 133 |
+
| DocVQA | train |
|
| 134 |
+
| FUNSD | train |
|
| 135 |
+
| Hateful Memes | train |
|
| 136 |
+
| IconQA | train |
|
| 137 |
+
| InfographicVQA | train |
|
| 138 |
+
| Mind2Web | train |
|
| 139 |
+
| Mind2Web (keyed variant, `mind2web_k`) | train |
|
| 140 |
+
| Options-in-image | train |
|
| 141 |
+
| ScienceQA | train |
|
| 142 |
+
| Screen2Words | train |
|
| 143 |
+
| Synthetic (internal) | train |
|
| 144 |
+
| TallyQA | train |
|
| 145 |
+
| Visual7W | train |
|
| 146 |
+
| VSR | train |
|
| 147 |
+
|
| 148 |
+
**Additional sources**
|
| 149 |
+
|
| 150 |
+
- NLVR2 train split (teacher-filtered targets). The NLVR2 dev split is used only for checkpoint selection.
|
| 151 |
+
- Replay of internal decision units (image and text families, train split), with teacher outputs as targets.
|
| 152 |
+
- Teacher outputs: option-probability distillation from a teacher model.
|
| 153 |
+
|
| 154 |
+
**Deduplication and contamination audit:** all sources use train splits only (evaluation uses test/validation splits). Ten document/KIE/perception sources were filtered at build time: any item whose image is within Hamming distance 4 (64-bit dHash) of an evaluation image was dropped. A post-hoc audit of every training image against every evaluation image (dHash candidate, confirmed by 64x64 grayscale mean absolute difference <= 6/255) found **37 evaluation items** with a near-identical training image: 30 Hateful Memes (shared base images across the dataset's splits), 6 BLINK, 1 Mind2Web. Mind2Web has no action_uid or annotation_id overlap with the evaluation rows. Rescoring without those 37 items changes the index from 61.99 to 62.09 (Moderation 29.93 -> 30.85, BLINK 47.16 -> 47.07, Mind2Web 82.32 -> 82.44).
|
| 155 |
+
|
| 156 |
+
**Teacher cleanup:** a teacher target is kept only where the teacher's top option matches the gold answer. Otherwise only the gold label is trained on.
|
| 157 |
+
|
| 158 |
+
**Selection:** checkpoint chosen on held-out DEV data only (coverage-mix holdout, NLVR2 DEV, internal diagnostics). Public benchmarks were not used for selection.
|
| 159 |
+
|
| 160 |
+
**Training recipe:** continued from QEV-2B 0.2.1 (its LoRA merged into the backbone) with a fresh LoRA (rank 8, alpha 16) on the coverage mix plus replay, 56k items; the released checkpoint is optimizer step 3,616 (end of the cosine schedule). Resolution-elastic batches (0.26 / 1.05 / 1.64 MP). Answer options are permuted per visit, except for sources whose options refer to letters or boxes in the image (Mind2Web, Mind2Web-keyed, options-in-image).
|
| 161 |
+
|
| 162 |
+
## Quickstart
|
| 163 |
+
|
| 164 |
+
This checkpoint needs the qev source (the published `qev==0.2.1` package loads QEV-2B 0.2.1 only).
|
| 165 |
+
|
| 166 |
+
```sh
|
| 167 |
+
python -m pip install "qev @ git+https://github.com/ken-jo/qev" huggingface_hub
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
```python
|
| 171 |
+
from huggingface_hub import snapshot_download
|
| 172 |
+
import qev
|
| 173 |
+
from qev import DecisionRequest
|
| 174 |
+
|
| 175 |
+
path = snapshot_download("ken-jo/QEV-2B")
|
| 176 |
+
model = qev.QEV.load(path, device="cuda") # accurate: full depth, up to 1.6 MP per image
|
| 177 |
+
# model = qev.QEV.load(path, device="cuda", mode="fast") # fast: exit at layer 16, 0.26 MP
|
| 178 |
+
request = DecisionRequest.model_validate({
|
| 179 |
+
"state": {
|
| 180 |
+
"text": "I was charged twice. Please refund the duplicate payment.",
|
| 181 |
+
},
|
| 182 |
+
"questions": {
|
| 183 |
+
"department": {
|
| 184 |
+
"type": "choice",
|
| 185 |
+
"instructions": "Which team should handle this request?",
|
| 186 |
+
"criteria": {"billing": "Payments and refunds", "technical": "Software faults"},
|
| 187 |
+
}
|
| 188 |
+
},
|
| 189 |
+
})
|
| 190 |
+
print(model.predict(request)["answers"])
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
Note on the name: the PyPI package `qev` is also the import name used by OneJev (`from qev import Client`). Install one of them per environment.
|
| 194 |
+
|
| 195 |
+
## Limitations
|
| 196 |
+
|
| 197 |
+
- Weak areas: Moderation (29.9), BLINK (47.2), MMMU-Pro (15.6). QEV-2B trails d3-nano on CV-Bench, CharXiv, InfographicVQA, Winoground and MMMU-Pro, and OneJev1.5-0.8B on BLINK.
|
| 198 |
+
- Scores are self-scored on the public part, single run, up to 1.6 MP per image. The private-part scores are unknown and may differ.
|
| 199 |
+
- Contamination: the training mix includes train splits of several benchmark families (Mind2Web, InfographicVQA, CORD, FUNSD, Hateful Memes). The audit above found 37 near-duplicate evaluation images (0.3% of 12,210 rows); removing them does not lower the score. If you find an overlapping item, please report it.
|
| 200 |
+
- The model returns probabilities, not guarantees. Calibration and abstention are fitted on internal DEV data and can be wrong on other domains; refit on your own data where the abstain decision matters.
|
| 201 |
+
- Visual reasoning is limited; see the evaluation notes in the QEV repository.
|
| 202 |
+
- Evaluation focuses on English.
|
| 203 |
+
|
| 204 |
+
## License
|
| 205 |
+
|
| 206 |
+
Apache-2.0, the same license as the base model. The base model Qwen3.5-2B is subject to its upstream license.
|
| 207 |
+
|
| 208 |
+
The training data is not redistributed with the model. Each training source keeps its own terms; some, such as FUNSD and Hateful Memes, restrict how their data may be used. Check those terms before reusing the data or retraining on it.
|
| 209 |
+
|
| 210 |
+
## Citation
|
| 211 |
+
|
| 212 |
+
```bibtex
|
| 213 |
+
@misc{jo2026qev2b,
|
| 214 |
+
title = {QEV-2B: A Calibrated Multimodal Decision Model},
|
| 215 |
+
author = {Jo, Ken},
|
| 216 |
+
year = {2026},
|
| 217 |
+
howpublished = {Hugging Face model card},
|
| 218 |
+
url = {https://huggingface.co/ken-jo/QEV-2B}
|
| 219 |
+
}
|
| 220 |
+
```
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
+
{{- '<|im_start|>system\n' }}
|
| 47 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
+
{%- for tool in tools %}
|
| 49 |
+
{{- "\n" }}
|
| 50 |
+
{{- tool | tojson }}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{{- "\n</tools>" }}
|
| 53 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
+
{%- if messages[0].role == 'system' %}
|
| 55 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
+
{%- if content %}
|
| 57 |
+
{{- '\n\n' + content }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<|im_end|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{%- if messages[0].role == 'system' %}
|
| 63 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- endif %}
|
| 67 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
+
{%- for message in messages[::-1] %}
|
| 69 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
+
{%- set ns.multi_step_tool = false %}
|
| 74 |
+
{%- set ns.last_query_index = index %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if ns.multi_step_tool %}
|
| 79 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for message in messages %}
|
| 82 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
+
{%- if message.role == "system" %}
|
| 84 |
+
{%- if not loop.first %}
|
| 85 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- elif message.role == "user" %}
|
| 88 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
+
{%- elif message.role == "assistant" %}
|
| 90 |
+
{%- set reasoning_content = '' %}
|
| 91 |
+
{%- if message.reasoning_content is string %}
|
| 92 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
+
{%- else %}
|
| 94 |
+
{%- if '</think>' in content %}
|
| 95 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endif %}
|
| 99 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
+
{%- else %}
|
| 103 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
+
{%- endif %}
|
| 105 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
+
{%- for tool_call in message.tool_calls %}
|
| 107 |
+
{%- if tool_call.function is defined %}
|
| 108 |
+
{%- set tool_call = tool_call.function %}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- if loop.first %}
|
| 111 |
+
{%- if content|trim %}
|
| 112 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
+
{%- else %}
|
| 114 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- else %}
|
| 117 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
+
{%- endif %}
|
| 119 |
+
{%- if tool_call.arguments is defined %}
|
| 120 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
+
{{- args_value }}
|
| 124 |
+
{{- '\n</parameter>\n' }}
|
| 125 |
+
{%- endfor %}
|
| 126 |
+
{%- endif %}
|
| 127 |
+
{{- '</function>\n</tool_call>' }}
|
| 128 |
+
{%- endfor %}
|
| 129 |
+
{%- endif %}
|
| 130 |
+
{{- '<|im_end|>\n' }}
|
| 131 |
+
{%- elif message.role == "tool" %}
|
| 132 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
+
{{- '<|im_start|>user' }}
|
| 134 |
+
{%- endif %}
|
| 135 |
+
{{- '\n<tool_response>\n' }}
|
| 136 |
+
{{- content }}
|
| 137 |
+
{{- '\n</tool_response>' }}
|
| 138 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
+
{{- '<|im_end|>\n' }}
|
| 140 |
+
{%- elif loop.last %}
|
| 141 |
+
{{- '<|im_end|>\n' }}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- else %}
|
| 144 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
+
{%- endif %}
|
| 146 |
+
{%- endfor %}
|
| 147 |
+
{%- if add_generation_prompt %}
|
| 148 |
+
{{- '<|im_start|>assistant\n' }}
|
| 149 |
+
{%- if enable_thinking is defined and enable_thinking is true %}
|
| 150 |
+
{{- '<think>\n' }}
|
| 151 |
+
{%- else %}
|
| 152 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5Model"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_id": 248056,
|
| 7 |
+
"model_type": "qwen3_5",
|
| 8 |
+
"text_config": {
|
| 9 |
+
"attention_bias": false,
|
| 10 |
+
"attention_dropout": 0.0,
|
| 11 |
+
"attn_output_gate": true,
|
| 12 |
+
"bos_token_id": null,
|
| 13 |
+
"dtype": "bfloat16",
|
| 14 |
+
"eos_token_id": 248044,
|
| 15 |
+
"full_attention_interval": 4,
|
| 16 |
+
"head_dim": 256,
|
| 17 |
+
"hidden_act": "silu",
|
| 18 |
+
"hidden_size": 2048,
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 6144,
|
| 21 |
+
"layer_types": [
|
| 22 |
+
"linear_attention",
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"full_attention"
|
| 46 |
+
],
|
| 47 |
+
"linear_conv_kernel_dim": 4,
|
| 48 |
+
"linear_key_head_dim": 128,
|
| 49 |
+
"linear_num_key_heads": 16,
|
| 50 |
+
"linear_num_value_heads": 16,
|
| 51 |
+
"linear_value_head_dim": 128,
|
| 52 |
+
"mamba_ssm_dtype": "float32",
|
| 53 |
+
"max_position_embeddings": 262144,
|
| 54 |
+
"mlp_only_layers": [],
|
| 55 |
+
"model_type": "qwen3_5_text",
|
| 56 |
+
"mtp_num_hidden_layers": 1,
|
| 57 |
+
"mtp_use_dedicated_embeddings": false,
|
| 58 |
+
"num_attention_heads": 8,
|
| 59 |
+
"num_hidden_layers": 24,
|
| 60 |
+
"num_key_value_heads": 2,
|
| 61 |
+
"pad_token_id": null,
|
| 62 |
+
"partial_rotary_factor": 0.25,
|
| 63 |
+
"rms_norm_eps": 1e-06,
|
| 64 |
+
"rope_parameters": {
|
| 65 |
+
"mrope_interleaved": true,
|
| 66 |
+
"mrope_section": [
|
| 67 |
+
11,
|
| 68 |
+
11,
|
| 69 |
+
10
|
| 70 |
+
],
|
| 71 |
+
"partial_rotary_factor": 0.25,
|
| 72 |
+
"rope_theta": 10000000,
|
| 73 |
+
"rope_type": "default"
|
| 74 |
+
},
|
| 75 |
+
"tie_word_embeddings": true,
|
| 76 |
+
"use_cache": true,
|
| 77 |
+
"vocab_size": 248320
|
| 78 |
+
},
|
| 79 |
+
"tie_word_embeddings": true,
|
| 80 |
+
"transformers_version": "5.17.0",
|
| 81 |
+
"video_token_id": 248057,
|
| 82 |
+
"vision_config": {
|
| 83 |
+
"deepstack_visual_indexes": [],
|
| 84 |
+
"depth": 24,
|
| 85 |
+
"dtype": "bfloat16",
|
| 86 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 87 |
+
"hidden_size": 1024,
|
| 88 |
+
"in_channels": 3,
|
| 89 |
+
"initializer_range": 0.02,
|
| 90 |
+
"intermediate_size": 4096,
|
| 91 |
+
"model_type": "qwen3_5_vision",
|
| 92 |
+
"num_heads": 16,
|
| 93 |
+
"num_position_embeddings": 2304,
|
| 94 |
+
"out_hidden_size": 2048,
|
| 95 |
+
"patch_size": 16,
|
| 96 |
+
"rope_parameters": {
|
| 97 |
+
"rope_theta": 10000.0,
|
| 98 |
+
"rope_type": "axial"
|
| 99 |
+
},
|
| 100 |
+
"spatial_merge_size": 2,
|
| 101 |
+
"temporal_patch_size": 2
|
| 102 |
+
},
|
| 103 |
+
"vision_end_token_id": 248054,
|
| 104 |
+
"vision_start_token_id": 248053
|
| 105 |
+
}
|
exit16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc61287b393b8e6d4c88621b7839f21a77f02f3be5f3366ce5ce805f135208cc
|
| 3 |
+
size 16880144
|
figures/qev_architecture.png
ADDED
|
Git LFS Details
|
head.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0057040e29d834d7c0658102ba29b0b7c11119beeac318bb83f7a8d264200d3
|
| 3 |
+
size 709496
|
manifest.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": 2,
|
| 3 |
+
"architecture": "option_readout",
|
| 4 |
+
"decision_views": 1,
|
| 5 |
+
"reasoning_slots": 4,
|
| 6 |
+
"binding_head": {
|
| 7 |
+
"rank": 64,
|
| 8 |
+
"mode": "condition"
|
| 9 |
+
},
|
| 10 |
+
"backbone": {
|
| 11 |
+
"model_id": "ken-jo/QEV-2B",
|
| 12 |
+
"revision": "0000000000000000000000000000000000000000",
|
| 13 |
+
"weights": "merged"
|
| 14 |
+
},
|
| 15 |
+
"encoder": {
|
| 16 |
+
"max_total_tokens": 8192,
|
| 17 |
+
"image_max_pixels": 262144,
|
| 18 |
+
"image_min_pixels": 65536,
|
| 19 |
+
"encoding": "option-v1"
|
| 20 |
+
},
|
| 21 |
+
"calibration": {
|
| 22 |
+
"temperatures": [
|
| 23 |
+
0.8413951416451951,
|
| 24 |
+
0.4340102636447439,
|
| 25 |
+
0.4869675251658631
|
| 26 |
+
],
|
| 27 |
+
"abstain_thresholds": [
|
| 28 |
+
0.3122118931627004,
|
| 29 |
+
0.5157240607035172,
|
| 30 |
+
0.5789704609274517
|
| 31 |
+
],
|
| 32 |
+
"fitted_types": [
|
| 33 |
+
"choice",
|
| 34 |
+
"score",
|
| 35 |
+
"noul"
|
| 36 |
+
],
|
| 37 |
+
"abstention_fitted_types": [
|
| 38 |
+
"choice",
|
| 39 |
+
"score",
|
| 40 |
+
"noul"
|
| 41 |
+
],
|
| 42 |
+
"always_abstain_types": []
|
| 43 |
+
},
|
| 44 |
+
"training": {
|
| 45 |
+
"completed": true,
|
| 46 |
+
"intermediate": false,
|
| 47 |
+
"optimizer_steps": 3616,
|
| 48 |
+
"recipe": "QEV 0.2.1 (Qwen3.5-2B + LoRA, merged) + resolution-elastic option-permutation mix; checkpoint at optimizer step 3616 (end of the cosine schedule); LoRA r8 merged into model.safetensors",
|
| 49 |
+
"checkpoint_selection": "DEV split only"
|
| 50 |
+
},
|
| 51 |
+
"weights_sha256": "a0057040e29d834d7c0658102ba29b0b7c11119beeac318bb83f7a8d264200d3",
|
| 52 |
+
"early_exit": {
|
| 53 |
+
"layer": 16,
|
| 54 |
+
"head": "exit16.safetensors",
|
| 55 |
+
"sha256": "fc61287b393b8e6d4c88621b7839f21a77f02f3be5f3366ce5ce805f135208cc"
|
| 56 |
+
},
|
| 57 |
+
"modes": {
|
| 58 |
+
"accurate": {
|
| 59 |
+
"image_max_pixels": 1638400
|
| 60 |
+
},
|
| 61 |
+
"fast": {
|
| 62 |
+
"image_max_pixels": 262144,
|
| 63 |
+
"early_exit": true
|
| 64 |
+
}
|
| 65 |
+
},
|
| 66 |
+
"default_mode": "accurate"
|
| 67 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f1b8dd81ab0ebd219159a5979bf0e9fb9d7d6c3352aa599d31da5559be42df5
|
| 3 |
+
size 4426555160
|
processor_config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"patch_size": 16,
|
| 20 |
+
"resample": 3,
|
| 21 |
+
"rescale_factor": 0.00392156862745098,
|
| 22 |
+
"size": {
|
| 23 |
+
"longest_edge": 262144,
|
| 24 |
+
"shortest_edge": 65536
|
| 25 |
+
},
|
| 26 |
+
"temporal_patch_size": 2
|
| 27 |
+
},
|
| 28 |
+
"processor_class": "Qwen3VLProcessor",
|
| 29 |
+
"video_processor": {
|
| 30 |
+
"do_convert_rgb": true,
|
| 31 |
+
"do_normalize": true,
|
| 32 |
+
"do_rescale": true,
|
| 33 |
+
"do_resize": true,
|
| 34 |
+
"do_sample_frames": true,
|
| 35 |
+
"fps": 2,
|
| 36 |
+
"image_mean": [
|
| 37 |
+
0.5,
|
| 38 |
+
0.5,
|
| 39 |
+
0.5
|
| 40 |
+
],
|
| 41 |
+
"image_std": [
|
| 42 |
+
0.5,
|
| 43 |
+
0.5,
|
| 44 |
+
0.5
|
| 45 |
+
],
|
| 46 |
+
"max_frames": 768,
|
| 47 |
+
"max_video_tokens": 768,
|
| 48 |
+
"merge_size": 2,
|
| 49 |
+
"min_frames": 4,
|
| 50 |
+
"patch_size": 16,
|
| 51 |
+
"resample": 3,
|
| 52 |
+
"rescale_factor": 0.00392156862745098,
|
| 53 |
+
"return_metadata": false,
|
| 54 |
+
"size": {
|
| 55 |
+
"longest_edge": 25165824,
|
| 56 |
+
"shortest_edge": 4096
|
| 57 |
+
},
|
| 58 |
+
"temporal_patch_size": 2,
|
| 59 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 60 |
+
}
|
| 61 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": false,
|
| 13 |
+
"local_files_only": true,
|
| 14 |
+
"model_max_length": 262144,
|
| 15 |
+
"model_specific_special_tokens": {
|
| 16 |
+
"audio_bos_token": "<|audio_start|>",
|
| 17 |
+
"audio_eos_token": "<|audio_end|>",
|
| 18 |
+
"audio_token": "<|audio_pad|>",
|
| 19 |
+
"image_token": "<|image_pad|>",
|
| 20 |
+
"video_token": "<|video_pad|>",
|
| 21 |
+
"vision_bos_token": "<|vision_start|>",
|
| 22 |
+
"vision_eos_token": "<|vision_end|>"
|
| 23 |
+
},
|
| 24 |
+
"pad_token": "<|endoftext|>",
|
| 25 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
+
"processor_class": "Qwen3VLProcessor",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 29 |
+
"unk_token": null,
|
| 30 |
+
"video_token": "<|video_pad|>",
|
| 31 |
+
"vision_bos_token": "<|vision_start|>",
|
| 32 |
+
"vision_eos_token": "<|vision_end|>"
|
| 33 |
+
}
|