Add files using upload-large-folder tool
Browse files- .gitattributes +6 -0
- LICENSE +202 -0
- README.md +378 -0
- config.json +105 -0
- decider_config.json +1 -0
- gpu-pipelined/decider_2b_vision_decode_fp16_pf16/decider_2b_vision_decode_fp16_pf16.aimodel/main.hash +1 -0
- gpu-pipelined/decider_2b_vision_decode_fp16_pf16/decider_2b_vision_decode_fp16_pf16.aimodel/main.mlirb +3 -0
- gpu-pipelined/decider_2b_vision_decode_fp16_pf16/decider_2b_vision_decode_fp16_pf16.aimodel/metadata.json +5 -0
- gpu-pipelined/decider_2b_vision_decode_fp16_pf16/metadata.json +130 -0
- gpu-pipelined/decider_2b_vision_decode_fp16_pf16/tokenizer/chat_template.jinja +154 -0
- gpu-pipelined/decider_2b_vision_decode_fp16_pf16/tokenizer/tokenizer.json +3 -0
- gpu-pipelined/decider_2b_vision_decode_fp16_pf16/tokenizer/tokenizer_config.json +37 -0
- gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/decider_2b_vision_decode_int8mix_pf16.aimodel/main.hash +0 -0
- gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/decider_2b_vision_decode_int8mix_pf16.aimodel/main.mlirb +3 -0
- gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/decider_2b_vision_decode_int8mix_pf16.aimodel/metadata.json +5 -0
- gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/metadata.json +165 -0
- gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/tokenizer/chat_template.jinja +154 -0
- gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/tokenizer/tokenizer.json +3 -0
- gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/tokenizer/tokenizer_config.json +37 -0
- gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel/main.hash +1 -0
- gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel/main.mlirb +3 -0
- gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel/metadata.json +5 -0
- gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/decider_2b_vision_g448_vision_fp16w32.aimodel/main.hash +1 -0
- gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/decider_2b_vision_g448_vision_fp16w32.aimodel/main.mlirb +3 -0
- gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/decider_2b_vision_g448_vision_fp16w32.aimodel/metadata.json +5 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ 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 |
+
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/decider_2b_vision_g448_vision_fp16w32.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/decider_2b_vision_decode_int8mix_pf16.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/decider_2b_vision_decode_fp16_pf16.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Mapika/decider-2b-vision
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
pipeline_tag: image-text-to-text
|
| 6 |
+
library_name: coreai
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
tags:
|
| 10 |
+
- coreai
|
| 11 |
+
- core-ai
|
| 12 |
+
- apple
|
| 13 |
+
- on-device
|
| 14 |
+
- decision-model
|
| 15 |
+
- vision-language
|
| 16 |
+
- multiple-choice
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# decider-2b-vision — Core AI
|
| 20 |
+
|
| 21 |
+
Apple Core AI (`.aimodel`) conversion of [Mapika/decider-2b-vision](https://huggingface.co/Mapika/decider-2b-vision/tree/863e290863655f1d6b69324d77d09ac972d21609) (revision `863e290`, Apache-2.0): an image and lettered questions in, the probability of every option out, from one forward pass.
|
| 22 |
+
|
| 23 |
+
| Variant | Path | Size | Requires | Tested on |
|
| 24 |
+
|---|---|---:|---|---|
|
| 25 |
+
| Decoder, int8 with layers 0, 2, 5 fp16 (ship) | `gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/` | 2,664 MB | macOS 27; iOS 27 with the increased-memory-limit entitlement | M4 Max, macOS 27.0 (26A428); iPhone 18 Pro, iOS 27.0 (24A437), 2026-09-29 |
|
| 26 |
+
| Decoder, fp16 (reference) | `gpu-pipelined/decider_2b_vision_decode_fp16_pf16/` | 3,786 MB | macOS 27 | M4 Max, macOS 27.0 (26A428), 2026-09-29 (not run on the iPhone) |
|
| 27 |
+
| Vision tower, 256×256 → 64 image rows | `gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/` | 660 MB | macOS 27, iOS 27 | M4 Max; iPhone 18 Pro, 2026-09-29 |
|
| 28 |
+
| Vision tower, 448×448 → 196 image rows | `gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/` | 663 MB | macOS 27, iOS 27 | M4 Max; iPhone 18 Pro, 2026-09-29 |
|
| 29 |
+
|
| 30 |
+
A decision needs one decoder and one tower. On the iPhone 18 Pro the same files run by device JIT: a `g256` decision in 0.75–0.79 s, `g448` in 1.4 s ([measured below](#iphone-18-pro-ios-270-24a437-device-jit-2026-09-29)).
|
| 31 |
+
|
| 32 |
+
```swift
|
| 33 |
+
import CoreAI
|
| 34 |
+
import DeciderVision
|
| 35 |
+
|
| 36 |
+
let root = URL(filePath: "decider-2b-vision-CoreAI/gpu-pipelined") // a download of the HF repo
|
| 37 |
+
var decoderOptions = SpecializationOptions(preferredComputeUnitKind: .gpu)
|
| 38 |
+
decoderOptions.expectFrequentReshapes = true
|
| 39 |
+
let decider = try await VisionDecider(
|
| 40 |
+
bundle: root.appending(path: "decider_2b_vision_decode_int8mix_pf16"),
|
| 41 |
+
towers: [.g256: root.appending(path: "decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel")],
|
| 42 |
+
decoderOptions: decoderOptions, towerOptions: SpecializationOptions(preferredComputeUnitKind: .gpu))
|
| 43 |
+
let probs = try await decider.decide(image: cgImage /* a CGImage */, context: "This is a visual question about the image.",
|
| 44 |
+
questions: [DecisionQuestion(text: "How many circles are in the image?", options: ["1", "2", "3", "4", "5"])],
|
| 45 |
+
grid: .g256) // [[Double]], one row per question
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
The snippet uses the [`DeciderVision`](https://github.com/john-rocky/coreai-model-zoo/tree/main/apps/DeciderVision) Swift package from the model zoo. The zoo card and the gate scripts live in [coreai-model-zoo](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/README.md); the rest of this page is the same text with repository links.
|
| 49 |
+
|
| 50 |
+
Source [Mapika/decider-2b-vision](https://huggingface.co/Mapika/decider-2b-vision/tree/863e290863655f1d6b69324d77d09ac972d21609) (revision `863e290`) · base Qwen/Qwen3.5-2B-Base
|
| 51 |
+
|
| 52 |
+
A **decision model that reads an image**. Give it an image (a photo, a diagram, a game frame), a
|
| 53 |
+
short context and one or more questions with up to 10 lettered options each. It returns a
|
| 54 |
+
probability for every option, read from the letter logits at each question's answer slot in one
|
| 55 |
+
forward pass. It never generates text. Text-only questions go through the same weights.
|
| 56 |
+
|
| 57 |
+
Mapika transplanted the v5 text weights of decider-2b into the Qwen3.5-2B vision-language model
|
| 58 |
+
and fine-tuned it for one epoch on game frames labelled by scripted policies, multiple-choice image
|
| 59 |
+
tasks from The Cauldron and a replay of the text mixture, then ran PPO from pixels (the author's
|
| 60 |
+
card and `decider/vision/` in [Mapika/decider](https://github.com/Mapika/decider)). The text
|
| 61 |
+
mixture's teacher-written items come from a locally run Qwen3.5-27B (`decider/data/teacher_*.py`).
|
| 62 |
+
The author's numbers, quoted from the source card and not re-measured here: Visual7W (held out)
|
| 63 |
+
accuracy 0.89 and ECE 0.03 on 300 items; 0.80–0.95 on six of the mixture's The Cauldron tasks.
|
| 64 |
+
|
| 65 |
+
This port runs that readout as two Core AI graphs. The **vision tower** is baked at a fixed grid:
|
| 66 |
+
`g256` (a 256×256 tile, 64 image tokens) for game frames and speed, `g448` (448×448, 196 tokens)
|
| 67 |
+
for photos. It stores fp16 weights and computes in fp32 (660 / 663 MB). The **decoder** is the
|
| 68 |
+
Qwen3.5 hybrid (18 Gated DeltaNet + 6 full-attention layers) with token ids in and the tower's rows
|
| 69 |
+
as a static input; it derives the three-plane M-RoPE positions inside the graph. Its linears are
|
| 70 |
+
int8 per block of 32 except in layers 0, 2 and 5, and the tied embedding / head stays fp16. It is
|
| 71 |
+
one bundle with an S=1 `main` and an S=16 `prefill` function, 2.64 GB. The gate is probability
|
| 72 |
+
parity with the author's own fp32 code, on a self-made fixture and on 500 held-out photo runs.
|
| 73 |
+
|
| 74 |
+
## Readout contract
|
| 75 |
+
|
| 76 |
+
One row per image; every question of the row is answered in the same pass:
|
| 77 |
+
|
| 78 |
+
```
|
| 79 |
+
<|vision_start|><N image tokens><|vision_end|>Context:\n<context>\n\nQuestion 1: <question>\nOptions:\n(A) <option>\n(B) <option>\nAnswer 1: (\n\nQuestion 2: <question>\n…\nAnswer 2: (
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
- The image block sits directly in front of `Context:`: `<|vision_start|>` (248053), N image
|
| 83 |
+
tokens, `<|vision_end|>` (248054). No BOS, no chat template. N = 64 at `g256`, 196 at `g448`.
|
| 84 |
+
- The author's processor writes the image tokens as N copies of `<|image_pad|>` (248056). This
|
| 85 |
+
decoder takes them as ids V + k instead (V = 248,320, k row-major over the merged grid), so each
|
| 86 |
+
token names its tower row.
|
| 87 |
+
- The text is the author's `build()` at the pinned revision, without shuffling: the context cut
|
| 88 |
+
at 1,536 tokens, then one block per question; the number after `Question` / `Answer` appears
|
| 89 |
+
only when there are several questions. The text is decoded and re-encoded before the ids are
|
| 90 |
+
built, as the author's `prepare()` does.
|
| 91 |
+
- A question's slot is the token `" ("` (318) preceded by `:` (25) with `Answer` (15666) among the
|
| 92 |
+
5 tokens before it.
|
| 93 |
+
- The letters are bare `A`..`J`, ids 32..41, with no leading space. `p = softmax(logits[32 : 32 + n])`
|
| 94 |
+
over the question's n options, at T = 1.
|
| 95 |
+
- Image: RGB → Pillow BICUBIC resize to the grid's square → /255 → (x − 0.5) / 0.5 →
|
| 96 |
+
merge-block-major patches `[4G², 1536]`, the frame repeated at both temporal slots. The aspect
|
| 97 |
+
ratio is not kept: a 256×240 frame becomes 256×256. The author's processor chooses a grid per
|
| 98 |
+
image; [what a fixed grid costs](#what-a-fixed-grid-costs-the-authors-code-only) is measured below.
|
| 99 |
+
- Text-only row: no image block, the same bundle, zero image rows and `rope_shift_start` = 2³⁰.
|
| 100 |
+
|
| 101 |
+
`conversion/decider_vision/oracle_decider_vision.py` runs the checkpoint's own `decider/vision.py`
|
| 102 |
+
(`VisionDecisionModel.prepare()` → `slot_logits()`, fp32, CPU) and records the reference:
|
| 103 |
+
[`fixtures-decider-2b-vision.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/fixtures-decider-2b-vision.json). Its 41 requests use images
|
| 104 |
+
drawn from Pillow primitives by `make_fixture_images.py` (CC0-1.0): the author's own benchmark
|
| 105 |
+
case (a solid-colour 224×224 image), The Cauldron form (shapes, counts, arrows, bar charts,
|
| 106 |
+
seven-segment digits), the author's game-frame prompts with the game titles replaced by plain
|
| 107 |
+
descriptions, and 6 text-only requests. Each image request runs at `g256`, `g448` and `native`
|
| 108 |
+
(the processor's own grid): 111 runs, 157 slots. The smallest oracle top-2 margin is 0.056, so
|
| 109 |
+
the argmax gate needs no near-tie exemption.
|
| 110 |
+
|
| 111 |
+
## Core AI shape
|
| 112 |
+
|
| 113 |
+
**Tower.** The overlay's `qwen3_5_vision.Qwen3_5VisionEncoder`, the tower code of the zoo's
|
| 114 |
+
Qwen3.8-27B vision path, baked at one merged grid by `conversion/export_qwen38vl_pipelined.py
|
| 115 |
+
--skip-decoder`: patches `[4G², 1536]` f32 → `image_embeds [G², 2048]` f32, every positional
|
| 116 |
+
term a constant. This port added `--vision-dtype fp16w32`: parameters stored fp16 and read
|
| 117 |
+
through a cast, the math in fp32. The plain fp16 tower misses the zoo's tower bar on the Mac GPU
|
| 118 |
+
(worst row cosine 0.849 at `g256`, 0.528 at `g448`); fp16w32 keeps every row at 0.9999957 or above.
|
| 119 |
+
|
| 120 |
+
**Decoder.** `conversion/decider_vision/qwen3_5_vl_pipelined.py`, new in this port: the Qwen3.5
|
| 121 |
+
hybrid text decoder with the embedding table inside the graph. An id ≥ V reads row id − V of
|
| 122 |
+
`image_embeds` instead of the table.
|
| 123 |
+
|
| 124 |
+
| | name | shape, type |
|
| 125 |
+
|---|---|---|
|
| 126 |
+
| inputs | `input_ids` | [1, 1] (`main`) or [1, 16] (`prefill`), int32 |
|
| 127 |
+
| | `position_ids` | [1, seq], int32, the ramp 0 .. seq − 1 |
|
| 128 |
+
| static inputs | `image_embeds` | [256, 2048] fp16: tower rows 0..N−1, the rest zero |
|
| 129 |
+
| | `image_rc` | [256, 2] int32: (k // W, k % W) for token k |
|
| 130 |
+
| | `rope_shift_start` | [1] int32: 1 + N, the `<\|vision_end\|>` index |
|
| 131 |
+
| | `rope_shift_amount` | [1] int32: N − max(H, W) |
|
| 132 |
+
| states | `keyCache`, `valueCache` | [6, 1, 2, ctx, 256] fp16, ctx up to 4,096 |
|
| 133 |
+
| | `convState`, `recState` | [18, 1, 6144, 3], [18, 1, 16, 128, 128] fp16 |
|
| 134 |
+
| output | `logits` | [1, 1, 248320] fp16 (the prefill function: the chunk's last position) |
|
| 135 |
+
|
| 136 |
+
An image token k at position p gets (t, h, w) = (p − k, p − k + row, p − k + col) from `image_rc`;
|
| 137 |
+
text after the image gets p − `rope_shift_amount` on all three planes. That is Hugging Face's
|
| 138 |
+
`get_rope_index`: the image spends max(H, W) positions. The row/column table lets one decoder
|
| 139 |
+
take `g256`, `g448` and the processor's own rectangles (the fixture's `native` runs), up to 256
|
| 140 |
+
image tokens.
|
| 141 |
+
|
| 142 |
+
The decoder derives the three planes because that is the author's contract: the checkpoint runs
|
| 143 |
+
full M-RoPE. Its planes equal the ones the author's model used on 111/111 runs. Positions are gated
|
| 144 |
+
by that equality, not by probability: on this fixture, 1-D positions move p by at most 0.0012
|
| 145 |
+
(r14 / r16 at `g256`, [`gate-decider-2b-vision-torch-parity.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/gate-decider-2b-vision-torch-parity.json) P4).
|
| 146 |
+
|
| 147 |
+
**Two functions.** `main` (S=1) and `prefill` (S=16, Gated DeltaNet unrolled in the graph) share
|
| 148 |
+
the weights. Per row, from zeroed states: `prefill` while a whole chunk fits before the next slot,
|
| 149 |
+
then `main` one token at a time up to and including the slot. The bundle's `metadata.json` carries
|
| 150 |
+
this order, the letter ids, the slot rule and the image contract.
|
| 151 |
+
|
| 152 |
+
**No engine.** The pipelined engine exposes no logits (the decider-0.8b finding), so both hosts
|
| 153 |
+
drive the low-level runtime: Swift `AIModel(contentsOf:)` + `loadFunction` with four zeroed states
|
| 154 |
+
per row, Python `coreai.runtime`.
|
| 155 |
+
|
| 156 |
+
## Measured (Apple M4 Max, macOS 27.0 26A428, 2026-09-28 / 29)
|
| 157 |
+
|
| 158 |
+
The Python gates load an AOT `.aimodelc` (`coreai-build compile … --platform macOS
|
| 159 |
+
--preferred-compute gpu --architecture h16c`, `--expect-frequent-reshapes` for the decoder) with
|
| 160 |
+
`SpecializationOptions.default()`. Oracle = the author's fp32 readout above.
|
| 161 |
+
|
| 162 |
+
### Decoder alone: 111 runs with the oracle's ids and fp32 image rows
|
| 163 |
+
|
| 164 |
+
| bundle | functions, order | letter argmax | max \|Δp\| | mean of run means | bar |
|
| 165 |
+
|---|---|---:|---:|---:|---|
|
| 166 |
+
| fp16 | `main`, S=1 | 157/157 | 0.0101 | 0.00016 | PASS |
|
| 167 |
+
| int8hu (int8 body + int8 head) | `main`, S=1 | 157/157 | 0.0206 | 0.00040 | FAIL |
|
| 168 |
+
| int8lin (int8 body, fp16 head) | `main`, S=1 | 157/157 | 0.0217 | 0.00040 | FAIL |
|
| 169 |
+
| int8lin_pf16 | `main` + `prefill`, chunk | 157/157 | 0.0224 | 0.00041 | FAIL |
|
| 170 |
+
| fp16_pf16 (reference) | `main` + `prefill`, chunk | 157/157 | 0.0101 | 0.00017 | PASS |
|
| 171 |
+
| **int8mix_pf16 (ship)** | `main` + `prefill`, chunk | **157/157** | **0.0094** | **0.00026** | **PASS** |
|
| 172 |
+
|
| 173 |
+
The bar was fixed before any result: every slot found, letter argmax equal to the oracle's on
|
| 174 |
+
every slot, the full-vocabulary top-1 equal to the oracle's letter (157/157 on all six), max |Δp|
|
| 175 |
+
≤ 0.02, mean of run means ≤ 0.002, and every process re-running its first run bit for bit.
|
| 176 |
+
Red arm: r14 at `g256` with `image_embeds` zeroed moves the argmax from A to D (|Δp| 0.82) on the
|
| 177 |
+
five bundles that ran it. Transcripts: `gate-decider-2b-vision-readout-<bundle>.json`.
|
| 178 |
+
|
| 179 |
+
Before export, the new decoder module in fp32 torch equals the oracle on 157/157 slots (max |Δp|
|
| 180 |
+
3.3e-6); on text rows it equals the overlay's plain Qwen3.5 text decoder bit for bit, 467/467 steps
|
| 181 |
+
([`gate-decider-2b-vision-torch-parity.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/gate-decider-2b-vision-torch-parity.json)).
|
| 182 |
+
|
| 183 |
+
### End to end: image file → decision, 70 image runs
|
| 184 |
+
|
| 185 |
+
The fixture image → `host.preprocess` (Pillow) → tower `.aimodelc` → decoder, with the ids built
|
| 186 |
+
by `host.build_ids` from the bundle's tokenizer (equal to the oracle's on 70/70 runs):
|
| 187 |
+
|
| 188 |
+
| decoder + tower | letter argmax | max \|Δp\| | mean of run means | bar |
|
| 189 |
+
|---|---:|---:|---:|---|
|
| 190 |
+
| fp16 + fp16w32 | 98/98 | 0.0111 | 0.00019 | PASS |
|
| 191 |
+
| int8hu + fp16w32 | 98/98 | 0.0214 | 0.00038 | FAIL |
|
| 192 |
+
| int8hu + fp16 tower | 98/98 | 0.0285 | 0.00045 | values only |
|
| 193 |
+
| int8lin_pf16 + fp16w32 | 98/98 | 0.0209 | 0.00036 | FAIL |
|
| 194 |
+
| fp16_pf16 + fp16w32 | 98/98 | 0.0085 | 0.00017 | PASS |
|
| 195 |
+
| **int8mix_pf16 + fp16w32 (ship)** | **98/98** | **0.0096** | **0.00029** | **PASS** |
|
| 196 |
+
|
| 197 |
+
[`gate-decider-2b-vision-e2e.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/gate-decider-2b-vision-e2e.json). Tower alone on the same
|
| 198 |
+
images, fp16w32 vs the author's fp32 tower: worst image cosine 0.99999992 (`g256`) / 0.99999997
|
| 199 |
+
(`g448`), worst row 0.9999975 / 0.9999957; the host's patches equal the processor's
|
| 200 |
+
`pixel_values` exactly on every fixture image ([`gate-decider-2b-vision-tower.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/gate-decider-2b-vision-tower.json)).
|
| 201 |
+
|
| 202 |
+
### Held out: 500 photo runs that no choice was made on
|
| 203 |
+
|
| 204 |
+
The 250 photos of the grid-price table below (the first rows of visual7w 150 + vsr 100 in The
|
| 205 |
+
Cauldron, the two subsets the author held out of training), thumbnailed to 768 as the author's
|
| 206 |
+
data code does, each at both grids. The bars were registered before any result; the reference is
|
| 207 |
+
the author's code (fp32 on the Mac's MPS backend).
|
| 208 |
+
|
| 209 |
+
| bundle | ids = processor | argmax, author margin ≥ 0.02 | near-ties agreeing | max \|Δp\| | mean of run means | bar |
|
| 210 |
+
|---|---:|---:|---:|---:|---:|---|
|
| 211 |
+
| **int8mix_pf16 (ship)** | 500/500 | 497/497 | 3/3 | 0.0146 | 0.00144 | PASS |
|
| 212 |
+
| fp16_pf16 | 500/500 | 497/497 | 3/3 | 0.0131 | 0.00061 | PASS |
|
| 213 |
+
|
| 214 |
+
The host's pixels equal the processor's on 500/500 runs. On vsr alone the int8mix mean is 0.00276
|
| 215 |
+
(`g256`) / 0.00274 (`g448`), above 0.002; the bar was registered over all 500 runs (fp16_pf16 on
|
| 216 |
+
vsr: 0.00107 / 0.00105). The two bundles agree on the argmax of 500/500 runs. Red arm: each
|
| 217 |
+
bundle's `g448` probabilities against the author's `g256` reference of the same photo — 233/247
|
| 218 |
+
decisive argmax, max |Δp| 0.69, all three probability bars red. The transcript
|
| 219 |
+
[`gate-decider-2b-vision-heldout.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/gate-decider-2b-vision-heldout.json) holds dataset row
|
| 220 |
+
indices and numbers only; no image or question text is redistributed.
|
| 221 |
+
|
| 222 |
+
### What a fixed grid costs (the author's code only)
|
| 223 |
+
|
| 224 |
+
`conversion/decider_vision/grid_price.py` runs the checkpoint's own code three ways on the same
|
| 225 |
+
photos: the processor's dynamic grid (`native`), and the image resized to 256×256 or 448×448
|
| 226 |
+
first. Gold accuracy on 150 / 100 items, fp32 on the MPS backend:
|
| 227 |
+
|
| 228 |
+
| arm | visual7w accuracy | visual7w argmax = native | vsr accuracy | vsr argmax = native | image tokens |
|
| 229 |
+
|---|---:|---:|---:|---:|---:|
|
| 230 |
+
| native | 0.940 | — | 0.770 | — | 189.5 / 279.1 (mean) |
|
| 231 |
+
| `g256` | 0.913 | 0.947 | 0.740 | 0.910 | 64 |
|
| 232 |
+
| `g448` | 0.940 | 0.980 | 0.770 | 0.940 | 196 |
|
| 233 |
+
|
| 234 |
+
On the fixture's 256×240 game frames the processor itself picks the 64-token grid, and `native`
|
| 235 |
+
equals `g256` probability for probability (7/7 rows). Use `g256` for frames and `g448` for photos.
|
| 236 |
+
|
| 237 |
+
### Swift ([`apps/DeciderVision`](https://github.com/john-rocky/coreai-model-zoo/tree/main/apps/DeciderVision), Mac)
|
| 238 |
+
|
| 239 |
+
| check (fixture, 76 runs: `g256`, `g448`, text) | result |
|
| 240 |
+
|---|---|
|
| 241 |
+
| ids and slots built in Swift = the oracle's | 76/76 |
|
| 242 |
+
| tiles resized in Swift = `host.resize_bicubic` (Pillow's pass order) | 58/58 bit-equal |
|
| 243 |
+
| AOT int8mix_pf16 vs the oracle | argmax 108/108, max \|Δp\| 0.0096, mean 0.00028 |
|
| 244 |
+
| JIT: the bundle's `.aimodel` specialized by the Swift runtime | argmax 108/108, max \|Δp\| 0.0103, mean 0.00026 |
|
| 245 |
+
| AOT fp16_pf16 vs the oracle | argmax 108/108, max \|Δp\| 0.0085 |
|
| 246 |
+
| AOT int8mix_pf16, Swift vs Python on the same bundle | max \|Δp\| 2.9e-5; full logits bit-equal on 104/108 slots |
|
| 247 |
+
|
| 248 |
+
Every Swift/Python difference sits on the 2 runs whose tile Pillow and `resize_bicubic` resize
|
| 249 |
+
differently; everything else is bit-equal. Transcript:
|
| 250 |
+
[`gate-decider-2b-vision-swift.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/gate-decider-2b-vision-swift.json).
|
| 251 |
+
|
| 252 |
+
Time per decision (Release CLI, AOT int8mix_pf16, the machine-wide GPU lock taken with the GPU at
|
| 253 |
+
0 %, two passes; PNG decode + resize + tower + prompt + decoder calls + read-out, 1–3 questions
|
| 254 |
+
per row):
|
| 255 |
+
|
| 256 |
+
| | `g256` (median 143.5 tokens) | `g448` (median 275 tokens) | text (median 76 tokens) |
|
| 257 |
+
|---|---:|---:|---:|
|
| 258 |
+
| decision, median | 0.322 / 0.321 s | 0.584 / 0.579 s | 0.284 / 0.286 s |
|
| 259 |
+
| tower | 22.0 ms | 61.3 / 61.2 ms | — |
|
| 260 |
+
|
| 261 |
+
One `main` call takes 11.6 ms and one `prefill` call (16 tokens) 25.2 / 25.1 ms. Load: 13.1 s in
|
| 262 |
+
the first timed process, 2.2–2.3 s in the others; peak footprint 1.01 GB. The JIT asset's first
|
| 263 |
+
specialization took 14.35 s, and 10.34 s from the cache.
|
| 264 |
+
|
| 265 |
+
### iPhone 18 Pro (iOS 27.0 24A437, device JIT, 2026-09-29)
|
| 266 |
+
|
| 267 |
+
The same `.aimodel` files, specialized on the phone by the Core AI runtime (no AOT asset), driven
|
| 268 |
+
by the same Swift library inside a headless gate app ([`apps/DeciderVisionGate`](https://github.com/john-rocky/coreai-model-zoo/tree/main/apps/DeciderVisionGate),
|
| 269 |
+
one target for iOS and macOS). The app carries the `com.apple.developer.kernel.increased-memory-limit`
|
| 270 |
+
entitlement: without it the decoder's cold specialization dies with `std::bad_alloc` at the default
|
| 271 |
+
limit (about 3.5 GB available), the way the zoo's pipelined-engine note records for 2B-class bundles.
|
| 272 |
+
One cold run (fresh container) and one warm re-run, the phone on USB power at 80 %:
|
| 273 |
+
|
| 274 |
+
| check (fixture, 76 runs: `g256`, `g448`, text) | result |
|
| 275 |
+
|---|---|
|
| 276 |
+
| ids and slots built on the phone = the oracle's | 76/76 |
|
| 277 |
+
| vs the oracle, cold run | argmax 108/108, full-vocabulary top-1 108/108, max \|Δp\| 0.0091, mean 0.00027 |
|
| 278 |
+
| warm re-run vs cold run | slot logits bit-equal 108/108 |
|
| 279 |
+
| vs the Mac Swift JIT run of the same files | argmax 108/108, max \|Δp\| 0.0015 (letter logits bit-equal on 28/108 slots) |
|
| 280 |
+
|
| 281 |
+
Load: tower alone 0.63 s cold / 0.49 s warm; decoder alone 21.6 s cold (14.7 s of it the model's
|
| 282 |
+
specialization, `main` 2.5 s, `prefill` 3.9 s) and 7.9 s from the runtime's cache; decoder plus one
|
| 283 |
+
tower 8.0 / 6.6 s (`g256`) and 7.8 / 7.0 s (`g448`). The runtime's cache for the three graphs takes
|
| 284 |
+
6.7 GB on the phone. Peak process footprint through the runs 543 MB (the weights are mapped). The
|
| 285 |
+
first decision after a cold load took 8.1 s, 0.98 s after a warm load.
|
| 286 |
+
|
| 287 |
+
Time per decision (1 warm-up + 5 timed, each burst under 5 s, USB power, battery 80 %):
|
| 288 |
+
|
| 289 |
+
| row | cold container, median (min–max) | warm re-run, median (min–max) | thermal |
|
| 290 |
+
|---|---:|---:|---|
|
| 291 |
+
| r23 `g256` (a 256×240 frame, 64 image tokens) | 785 ms (767–793) | 754 ms (744–769) | nominal |
|
| 292 |
+
| r23 `g448` (196 image tokens) | 1,439 ms (1,427–1,465) | 1,415 ms (1,389–1,415) | fair (cold) / nominal (warm) |
|
| 293 |
+
| t06 text (76 tokens) | 735 ms (732–746) | 725 ms (713–731) | nominal |
|
| 294 |
+
|
| 295 |
+
Transcript: [`gate-decider-2b-vision-iphone.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/decider-2b-vision/gate-decider-2b-vision-iphone.json), which also
|
| 296 |
+
keeps the stopped run without the entitlement.
|
| 297 |
+
|
| 298 |
+
## Precision
|
| 299 |
+
|
| 300 |
+
int8 per block of 32 over the whole body misses the 0.02 bar on one fixture question: r29 at `g256`,
|
| 301 |
+
a grid-walk frame (its `native` run has the same inputs and the same result), 0.0217 with the fp16
|
| 302 |
+
head (int8lin) and 0.0206 with an int8 head (int8hu). The head is not what fails it. An fp32 torch bisect with the exporter's own int8 weights
|
| 303 |
+
(`conversion/decider_vision/int8_bisect_torch.py`, 4 fixture runs) spread the error over layers
|
| 304 |
+
0–11. No single fp16 layer rescued it, and the smallest set that met its rule was {0, 2, 5}. That
|
| 305 |
+
set costs 165 MB over the all-int8 bundle (main.mlirb 2,644,272,749 vs 2,478,952,184 bytes) and
|
| 306 |
+
saves 1.12 GB against fp16 (3,765,759,218 bytes).
|
| 307 |
+
|
| 308 |
+
The set was chosen on the fixture, so the held-out photos above are its test: argmax 497/497 plus
|
| 309 |
+
3/3 near-ties, max |Δp| 0.0146. The quantizer's scheme is not the lever: coreai-opt 0.2.1's
|
| 310 |
+
`symmetric_with_clipping` did not clip (each block's absmax maps to ±127 on the layer checked), and
|
| 311 |
+
plain `symmetric` did not meet the bisect's rule either. Details: [`knowledge/decider-2b-vision-port.md`](https://github.com/john-rocky/coreai-model-zoo/blob/main/knowledge/decider-2b-vision-port.md).
|
| 312 |
+
|
| 313 |
+
## ⬇️ Bundle
|
| 314 |
+
|
| 315 |
+
Four folders under `gpu-pipelined/`. A decision needs one decoder and one tower.
|
| 316 |
+
|
| 317 |
+
| folder | what | main.mlirb bytes | main.mlirb sha256 |
|
| 318 |
+
|---|---|---:|---|
|
| 319 |
+
| `decider_2b_vision_decode_int8mix_pf16/` | decoder, ship: `.aimodel` + `metadata.json` + `tokenizer/` | 2,644,272,749 | `a82f61ae…bce75` |
|
| 320 |
+
| `decider_2b_vision_decode_fp16_pf16/` | decoder, fp16 reference, same layout | 3,765,759,218 | `a0461812…e04d` |
|
| 321 |
+
| `decider_2b_vision_g256_vision_fp16w32/` | tower, 256×256 → 64 rows (`.aimodel`) | 660,263,631 | `4a0de698…cede1` |
|
| 322 |
+
| `decider_2b_vision_g448_vision_fp16w32/` | tower, 448×448 → 196 rows (`.aimodel`) | 662,696,647 | `9bf6023d…d9bdd` |
|
| 323 |
+
|
| 324 |
+
No AOT asset ships: the Swift runtime specializes the `.aimodel` correctly on the Mac (the JIT row
|
| 325 |
+
above). A Mac AOT compile of the ship decoder is 10.2 GB, and the `prefill` function adds 3.8 GB of
|
| 326 |
+
it (int8lin compiles to 6.2 GB with `main` alone, 10.0 GB with both). The source `config.json`
|
| 327 |
+
and `decider_config.json` are in the repository verbatim. No runtime patch is involved.
|
| 328 |
+
|
| 329 |
+
## Use it
|
| 330 |
+
|
| 331 |
+
Swift: the snippet at the top of this page.
|
| 332 |
+
|
| 333 |
+
The same from the CLI (`swift build -c release` in `apps/DeciderVision` builds `.build/release/decider-vision`):
|
| 334 |
+
|
| 335 |
+
```bash
|
| 336 |
+
R=decider-2b-vision-CoreAI/gpu-pipelined; decider-vision ask --asset jit --bundle $R/decider_2b_vision_decode_int8mix_pf16 --tower $R/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel --grid 256 --image x.png --context "This is a visual question about the image." --question "How many circles are in the image?" --options "1|2|3|4|5"
|
| 337 |
+
```
|
| 338 |
+
|
| 339 |
+
Python, with `conversion/decider_vision/host.py` and `coreai.runtime` (the gates' own code path,
|
| 340 |
+
`heldout_eval.py`): `host.preprocess(image, g)` → the tower → rows 0..N−1 of a zero
|
| 341 |
+
`image_embeds [256, 2048]` fp16; `host.build_ids(True, context, questions, tokenizer, (g, g))` →
|
| 342 |
+
ids, slots, `rope_shift_start`, `rope_shift_amount`; `image_rc[k] = (k // g, k % g)`; zeroed states
|
| 343 |
+
from the function's descriptors; the chunk order above; at each slot
|
| 344 |
+
`softmax(logits[0, -1, 32 : 32 + n])`. The Python gates ran the AOT `.aimodelc` (the `--aot` flag
|
| 345 |
+
below); this port did not use the Python runtime's JIT.
|
| 346 |
+
|
| 347 |
+
## Reproduce
|
| 348 |
+
|
| 349 |
+
Environment: the zoo overlay venv (coreai-core 1.0.0b2, coreai-torch 0.4.1, coreai-opt 0.2.1,
|
| 350 |
+
torch 2.9.0, transformers 4.57.6, overlay `397b337`), the source snapshot pinned at `863e290` in
|
| 351 |
+
`HF_HOME`, `HF_HUB_OFFLINE=1`, Xcode 27.0 RC. The author's code runs in its own venv
|
| 352 |
+
(transformers 5.17.0). The steps, in order, with every flag, are in
|
| 353 |
+
[`conversion/decider_vision/README.md`](https://github.com/john-rocky/coreai-model-zoo/blob/main/conversion/decider_vision/README.md).
|
| 354 |
+
|
| 355 |
+
```bash
|
| 356 |
+
# towers: the Qwen3.8-27B vision exporter with the HF id and the grid swapped
|
| 357 |
+
python conversion/export_qwen38vl_pipelined.py --hf-id Mapika/decider-2b-vision --name decider_2b_vision_g256 \
|
| 358 |
+
--grid-h 8 --grid-w 8 --skip-decoder --vision-dtype fp16w32 --out-dir <work>/_decider2bv/exports
|
| 359 |
+
python conversion/export_qwen38vl_pipelined.py --hf-id Mapika/decider-2b-vision --name decider_2b_vision_g448 \
|
| 360 |
+
--grid-h 14 --grid-w 14 --skip-decoder --vision-dtype fp16w32 --out-dir <work>/_decider2bv/exports
|
| 361 |
+
# decoders (--aot adds the h16c .aimodelc the Python gates load)
|
| 362 |
+
python conversion/decider_vision/export_decoder.py int8mix --fp16-layers 0,2,5 --prefill-chunk 16 --aot
|
| 363 |
+
python conversion/decider_vision/export_decoder.py fp16 --prefill-chunk 16 --aot
|
| 364 |
+
```
|
| 365 |
+
|
| 366 |
+
Port notes: [`knowledge/decider-2b-vision-port.md`](https://github.com/john-rocky/coreai-model-zoo/blob/main/knowledge/decider-2b-vision-port.md).
|
| 367 |
+
|
| 368 |
+
## Other formats
|
| 369 |
+
|
| 370 |
+
GGUF conversions of the same checkpoint on the Hub: `mradermacher/decider-2b-vision-GGUF` and
|
| 371 |
+
`mindchain/decider-2b-vision-GGUF` (not run here).
|
| 372 |
+
|
| 373 |
+
## License
|
| 374 |
+
|
| 375 |
+
Source Apache-2.0 (Mapika/decider-2b-vision declares it in its card and carries no LICENSE file);
|
| 376 |
+
the bundles inherit it, and the Hugging Face repository carries the Apache-2.0 text. The author's
|
| 377 |
+
`decider/` code runs only in the oracle and reference scripts at gate time; it is not part of the
|
| 378 |
+
bundles. The fixture images are generated by this repository's script (CC0-1.0).
|
config.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 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 |
+
}
|
decider_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"neutralize_none": false, "version": "v5-vision", "base": "Qwen/Qwen3.5-2B-Base"}
|
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/decider_2b_vision_decode_fp16_pf16.aimodel/main.hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
�F�O���n���EE�P�d�/0�x�K��M
|
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/decider_2b_vision_decode_fp16_pf16.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0461812914fe7f3a7f26ea9d0f5454503f550e31564982f30b1789e4be0e04d
|
| 3 |
+
size 3765759218
|
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/decider_2b_vision_decode_fp16_pf16.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"creationDate" : "20260928T164029Z",
|
| 3 |
+
"assetVersion" : "2.0",
|
| 4 |
+
"producer" : "coreai-core 1.0.0b2"
|
| 5 |
+
}
|
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/metadata.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata_version": "0.2",
|
| 3 |
+
"kind": "llm",
|
| 4 |
+
"name": "decider_2b_vision_decode_fp16_pf16",
|
| 5 |
+
"assets": {
|
| 6 |
+
"main": "decider_2b_vision_decode_fp16_pf16.aimodel"
|
| 7 |
+
},
|
| 8 |
+
"language": {
|
| 9 |
+
"tokenizer": "Mapika/decider-2b-vision",
|
| 10 |
+
"vocab_size": 248320,
|
| 11 |
+
"max_context_length": 4096,
|
| 12 |
+
"embedded_tokenizer": true,
|
| 13 |
+
"image_tokens_max": 256,
|
| 14 |
+
"static_inputs": [
|
| 15 |
+
"image_embeds",
|
| 16 |
+
"image_rc",
|
| 17 |
+
"rope_shift_start",
|
| 18 |
+
"rope_shift_amount"
|
| 19 |
+
],
|
| 20 |
+
"prefill_chunk": 16,
|
| 21 |
+
"function_map": {
|
| 22 |
+
"main": [
|
| 23 |
+
"main",
|
| 24 |
+
"prefill"
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"source": {
|
| 29 |
+
"model_definition": "torch",
|
| 30 |
+
"hf_model_id": "Mapika/decider-2b-vision",
|
| 31 |
+
"hf_revision": "863e290863655f1d6b69324d77d09ac972d21609"
|
| 32 |
+
},
|
| 33 |
+
"compression": null,
|
| 34 |
+
"decision": {
|
| 35 |
+
"letters": [
|
| 36 |
+
"A",
|
| 37 |
+
"B",
|
| 38 |
+
"C",
|
| 39 |
+
"D",
|
| 40 |
+
"E",
|
| 41 |
+
"F",
|
| 42 |
+
"G",
|
| 43 |
+
"H",
|
| 44 |
+
"I",
|
| 45 |
+
"J"
|
| 46 |
+
],
|
| 47 |
+
"letter_ids": [
|
| 48 |
+
32,
|
| 49 |
+
33,
|
| 50 |
+
34,
|
| 51 |
+
35,
|
| 52 |
+
36,
|
| 53 |
+
37,
|
| 54 |
+
38,
|
| 55 |
+
39,
|
| 56 |
+
40,
|
| 57 |
+
41
|
| 58 |
+
],
|
| 59 |
+
"letter_form": "bare A..J, no leading space",
|
| 60 |
+
"max_options": 10,
|
| 61 |
+
"slot": {
|
| 62 |
+
"token": 318,
|
| 63 |
+
"rule": "token 318 (' (') preceded by 25 (':') with 15666 ('Answer') among the 5 tokens before it; one slot per question"
|
| 64 |
+
},
|
| 65 |
+
"temperature": 1.0,
|
| 66 |
+
"readout": "fresh zero states; per slot s (ascending): while s - cursor + 1 >= 16, 'prefill' on ids[cursor : cursor + 16] with position_ids 0..cursor+15 (its logits are the slot's when cursor + 15 == s), cursor += 16; then 'main' one token at a time up to and including s (the logits at cursor == s are the slot's). At a slot, fp32 softmax (T=1) over logits[32 : 32 + number of options]. The last slot is the row's last token.",
|
| 67 |
+
"prompt": {
|
| 68 |
+
"source": "the author's build() (decider/prompt.py at the pinned revision), no shuffling; the text is decoded and re-encoded as VisionDecisionModel.prepare() does",
|
| 69 |
+
"text": "'Context:\\n' + context (first 1536 tokens), then per question: '\\n\\nQuestion{ k}: {text}\\nOptions:' + '\\n({letter}) {option}' per option + '\\nAnswer{ k}: (' (' k' = the 1-based number, only when there are several questions)",
|
| 70 |
+
"max_ctx_tokens": 1536,
|
| 71 |
+
"add_special_tokens": false,
|
| 72 |
+
"bos": null,
|
| 73 |
+
"chat_template": null,
|
| 74 |
+
"image_prefix": "<|vision_start|> (248053), N ids V+k (k = 0..N-1 row-major over the merged grid, V = 248320), <|vision_end|> (248054), in front of the text"
|
| 75 |
+
}
|
| 76 |
+
},
|
| 77 |
+
"vision": {
|
| 78 |
+
"n_image_max": 256,
|
| 79 |
+
"image_token_base": 248320,
|
| 80 |
+
"image_embeds": "tower rows 0..N-1 (N = H*W merged tokens) as fp16, rows N.. zero",
|
| 81 |
+
"image_rc": "image_rc[k] = (k // W, k % W) for k < N, rows N.. zero",
|
| 82 |
+
"rope_shift_start": "1 + H*W (the <|vision_end|> index)",
|
| 83 |
+
"rope_shift_amount": "H*W - max(H, W)",
|
| 84 |
+
"text_only": {
|
| 85 |
+
"rope_shift_start": 1073741824,
|
| 86 |
+
"rope_shift_amount": 0,
|
| 87 |
+
"image_embeds": "zero",
|
| 88 |
+
"image_rc": "zero"
|
| 89 |
+
},
|
| 90 |
+
"towers": [
|
| 91 |
+
{
|
| 92 |
+
"name": "decider_2b_vision_g256_vision_fp16w32",
|
| 93 |
+
"merged_grid": [
|
| 94 |
+
8,
|
| 95 |
+
8
|
| 96 |
+
],
|
| 97 |
+
"tile": 256,
|
| 98 |
+
"patches": [
|
| 99 |
+
256,
|
| 100 |
+
1536
|
| 101 |
+
],
|
| 102 |
+
"image_embeds": [
|
| 103 |
+
64,
|
| 104 |
+
2048
|
| 105 |
+
]
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"name": "decider_2b_vision_g448_vision_fp16w32",
|
| 109 |
+
"merged_grid": [
|
| 110 |
+
14,
|
| 111 |
+
14
|
| 112 |
+
],
|
| 113 |
+
"tile": 448,
|
| 114 |
+
"patches": [
|
| 115 |
+
784,
|
| 116 |
+
1536
|
| 117 |
+
],
|
| 118 |
+
"image_embeds": [
|
| 119 |
+
196,
|
| 120 |
+
2048
|
| 121 |
+
]
|
| 122 |
+
}
|
| 123 |
+
],
|
| 124 |
+
"host_preprocess": "RGB -> Pillow BICUBIC resize to (32*grid) x (32*grid), aspect not kept -> /255 -> (x - 0.5) / 0.5 -> merge-block-major patchify, the frame repeated at both temporal slots (conversion/decider_vision/host.py preprocess)"
|
| 125 |
+
},
|
| 126 |
+
"compilation": {
|
| 127 |
+
"date": "2026-09-28T16:40:30.469789+00:00",
|
| 128 |
+
"targets": []
|
| 129 |
+
}
|
| 130 |
+
}
|
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/tokenizer/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 %}
|
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/tokenizer/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6d27c11283798debbfbcb1bd3bbdbcebac6c9b20d0be0c5b79231c97de97501
|
| 3 |
+
size 19989493
|
gpu-pipelined/decider_2b_vision_decode_fp16_pf16/tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "<|endoftext|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"max_length": null,
|
| 15 |
+
"model_max_length": 262144,
|
| 16 |
+
"model_specific_special_tokens": {
|
| 17 |
+
"audio_bos_token": "<|audio_start|>",
|
| 18 |
+
"audio_eos_token": "<|audio_end|>",
|
| 19 |
+
"audio_token": "<|audio_pad|>",
|
| 20 |
+
"image_token": "<|image_pad|>",
|
| 21 |
+
"video_token": "<|video_pad|>",
|
| 22 |
+
"vision_bos_token": "<|vision_start|>",
|
| 23 |
+
"vision_eos_token": "<|vision_end|>"
|
| 24 |
+
},
|
| 25 |
+
"pad_to_multiple_of": null,
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"pad_token_type_id": 0,
|
| 28 |
+
"padding_side": "right",
|
| 29 |
+
"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+",
|
| 30 |
+
"processor_class": "Qwen3VLProcessor",
|
| 31 |
+
"split_special_tokens": false,
|
| 32 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 33 |
+
"unk_token": null,
|
| 34 |
+
"video_token": "<|video_pad|>",
|
| 35 |
+
"vision_bos_token": "<|vision_start|>",
|
| 36 |
+
"vision_eos_token": "<|vision_end|>"
|
| 37 |
+
}
|
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/decider_2b_vision_decode_int8mix_pf16.aimodel/main.hash
ADDED
|
Binary file (32 Bytes). View file
|
|
|
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/decider_2b_vision_decode_int8mix_pf16.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a82f61ae00eb2b968072d45cb9abd71e2c079b6ec2e736b68721c706785bce75
|
| 3 |
+
size 2644272749
|
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/decider_2b_vision_decode_int8mix_pf16.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"creationDate" : "20260928T170648Z",
|
| 3 |
+
"producer" : "coreai-core 1.0.0b2",
|
| 4 |
+
"assetVersion" : "2.0"
|
| 5 |
+
}
|
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/metadata.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata_version": "0.2",
|
| 3 |
+
"kind": "llm",
|
| 4 |
+
"name": "decider_2b_vision_decode_int8mix_pf16",
|
| 5 |
+
"assets": {
|
| 6 |
+
"main": "decider_2b_vision_decode_int8mix_pf16.aimodel"
|
| 7 |
+
},
|
| 8 |
+
"language": {
|
| 9 |
+
"tokenizer": "Mapika/decider-2b-vision",
|
| 10 |
+
"vocab_size": 248320,
|
| 11 |
+
"max_context_length": 4096,
|
| 12 |
+
"embedded_tokenizer": true,
|
| 13 |
+
"image_tokens_max": 256,
|
| 14 |
+
"static_inputs": [
|
| 15 |
+
"image_embeds",
|
| 16 |
+
"image_rc",
|
| 17 |
+
"rope_shift_start",
|
| 18 |
+
"rope_shift_amount"
|
| 19 |
+
],
|
| 20 |
+
"prefill_chunk": 16,
|
| 21 |
+
"function_map": {
|
| 22 |
+
"main": [
|
| 23 |
+
"main",
|
| 24 |
+
"prefill"
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"source": {
|
| 29 |
+
"model_definition": "torch",
|
| 30 |
+
"hf_model_id": "Mapika/decider-2b-vision",
|
| 31 |
+
"hf_revision": "863e290863655f1d6b69324d77d09ac972d21609"
|
| 32 |
+
},
|
| 33 |
+
"compression": {
|
| 34 |
+
"scheme": "int8mix",
|
| 35 |
+
"linear": "int8 per-block-32 symmetric_with_clipping (weight only)",
|
| 36 |
+
"fp16_layers": [
|
| 37 |
+
0,
|
| 38 |
+
2,
|
| 39 |
+
5
|
| 40 |
+
],
|
| 41 |
+
"fp16_linear_modules": [
|
| 42 |
+
"model.layers.0.linear_attn.in_proj_qkv",
|
| 43 |
+
"model.layers.0.linear_attn.in_proj_z",
|
| 44 |
+
"model.layers.0.linear_attn.in_proj_b",
|
| 45 |
+
"model.layers.0.linear_attn.in_proj_a",
|
| 46 |
+
"model.layers.0.linear_attn.out_proj",
|
| 47 |
+
"model.layers.0.mlp.gate_proj",
|
| 48 |
+
"model.layers.0.mlp.up_proj",
|
| 49 |
+
"model.layers.0.mlp.down_proj",
|
| 50 |
+
"model.layers.2.linear_attn.in_proj_qkv",
|
| 51 |
+
"model.layers.2.linear_attn.in_proj_z",
|
| 52 |
+
"model.layers.2.linear_attn.in_proj_b",
|
| 53 |
+
"model.layers.2.linear_attn.in_proj_a",
|
| 54 |
+
"model.layers.2.linear_attn.out_proj",
|
| 55 |
+
"model.layers.2.mlp.gate_proj",
|
| 56 |
+
"model.layers.2.mlp.up_proj",
|
| 57 |
+
"model.layers.2.mlp.down_proj",
|
| 58 |
+
"model.layers.5.linear_attn.in_proj_qkv",
|
| 59 |
+
"model.layers.5.linear_attn.in_proj_z",
|
| 60 |
+
"model.layers.5.linear_attn.in_proj_b",
|
| 61 |
+
"model.layers.5.linear_attn.in_proj_a",
|
| 62 |
+
"model.layers.5.linear_attn.out_proj",
|
| 63 |
+
"model.layers.5.mlp.gate_proj",
|
| 64 |
+
"model.layers.5.mlp.up_proj",
|
| 65 |
+
"model.layers.5.mlp.down_proj"
|
| 66 |
+
],
|
| 67 |
+
"head": "tied fp16 embedding table"
|
| 68 |
+
},
|
| 69 |
+
"decision": {
|
| 70 |
+
"letters": [
|
| 71 |
+
"A",
|
| 72 |
+
"B",
|
| 73 |
+
"C",
|
| 74 |
+
"D",
|
| 75 |
+
"E",
|
| 76 |
+
"F",
|
| 77 |
+
"G",
|
| 78 |
+
"H",
|
| 79 |
+
"I",
|
| 80 |
+
"J"
|
| 81 |
+
],
|
| 82 |
+
"letter_ids": [
|
| 83 |
+
32,
|
| 84 |
+
33,
|
| 85 |
+
34,
|
| 86 |
+
35,
|
| 87 |
+
36,
|
| 88 |
+
37,
|
| 89 |
+
38,
|
| 90 |
+
39,
|
| 91 |
+
40,
|
| 92 |
+
41
|
| 93 |
+
],
|
| 94 |
+
"letter_form": "bare A..J, no leading space",
|
| 95 |
+
"max_options": 10,
|
| 96 |
+
"slot": {
|
| 97 |
+
"token": 318,
|
| 98 |
+
"rule": "token 318 (' (') preceded by 25 (':') with 15666 ('Answer') among the 5 tokens before it; one slot per question"
|
| 99 |
+
},
|
| 100 |
+
"temperature": 1.0,
|
| 101 |
+
"readout": "fresh zero states; per slot s (ascending): while s - cursor + 1 >= 16, 'prefill' on ids[cursor : cursor + 16] with position_ids 0..cursor+15 (its logits are the slot's when cursor + 15 == s), cursor += 16; then 'main' one token at a time up to and including s (the logits at cursor == s are the slot's). At a slot, fp32 softmax (T=1) over logits[32 : 32 + number of options]. The last slot is the row's last token.",
|
| 102 |
+
"prompt": {
|
| 103 |
+
"source": "the author's build() (decider/prompt.py at the pinned revision), no shuffling; the text is decoded and re-encoded as VisionDecisionModel.prepare() does",
|
| 104 |
+
"text": "'Context:\\n' + context (first 1536 tokens), then per question: '\\n\\nQuestion{ k}: {text}\\nOptions:' + '\\n({letter}) {option}' per option + '\\nAnswer{ k}: (' (' k' = the 1-based number, only when there are several questions)",
|
| 105 |
+
"max_ctx_tokens": 1536,
|
| 106 |
+
"add_special_tokens": false,
|
| 107 |
+
"bos": null,
|
| 108 |
+
"chat_template": null,
|
| 109 |
+
"image_prefix": "<|vision_start|> (248053), N ids V+k (k = 0..N-1 row-major over the merged grid, V = 248320), <|vision_end|> (248054), in front of the text"
|
| 110 |
+
}
|
| 111 |
+
},
|
| 112 |
+
"vision": {
|
| 113 |
+
"n_image_max": 256,
|
| 114 |
+
"image_token_base": 248320,
|
| 115 |
+
"image_embeds": "tower rows 0..N-1 (N = H*W merged tokens) as fp16, rows N.. zero",
|
| 116 |
+
"image_rc": "image_rc[k] = (k // W, k % W) for k < N, rows N.. zero",
|
| 117 |
+
"rope_shift_start": "1 + H*W (the <|vision_end|> index)",
|
| 118 |
+
"rope_shift_amount": "H*W - max(H, W)",
|
| 119 |
+
"text_only": {
|
| 120 |
+
"rope_shift_start": 1073741824,
|
| 121 |
+
"rope_shift_amount": 0,
|
| 122 |
+
"image_embeds": "zero",
|
| 123 |
+
"image_rc": "zero"
|
| 124 |
+
},
|
| 125 |
+
"towers": [
|
| 126 |
+
{
|
| 127 |
+
"name": "decider_2b_vision_g256_vision_fp16w32",
|
| 128 |
+
"merged_grid": [
|
| 129 |
+
8,
|
| 130 |
+
8
|
| 131 |
+
],
|
| 132 |
+
"tile": 256,
|
| 133 |
+
"patches": [
|
| 134 |
+
256,
|
| 135 |
+
1536
|
| 136 |
+
],
|
| 137 |
+
"image_embeds": [
|
| 138 |
+
64,
|
| 139 |
+
2048
|
| 140 |
+
]
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "decider_2b_vision_g448_vision_fp16w32",
|
| 144 |
+
"merged_grid": [
|
| 145 |
+
14,
|
| 146 |
+
14
|
| 147 |
+
],
|
| 148 |
+
"tile": 448,
|
| 149 |
+
"patches": [
|
| 150 |
+
784,
|
| 151 |
+
1536
|
| 152 |
+
],
|
| 153 |
+
"image_embeds": [
|
| 154 |
+
196,
|
| 155 |
+
2048
|
| 156 |
+
]
|
| 157 |
+
}
|
| 158 |
+
],
|
| 159 |
+
"host_preprocess": "RGB -> Pillow BICUBIC resize to (32*grid) x (32*grid), aspect not kept -> /255 -> (x - 0.5) / 0.5 -> merge-block-major patchify, the frame repeated at both temporal slots (conversion/decider_vision/host.py preprocess)"
|
| 160 |
+
},
|
| 161 |
+
"compilation": {
|
| 162 |
+
"date": "2026-09-28T17:06:49.500088+00:00",
|
| 163 |
+
"targets": []
|
| 164 |
+
}
|
| 165 |
+
}
|
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/tokenizer/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 %}
|
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/tokenizer/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6d27c11283798debbfbcb1bd3bbdbcebac6c9b20d0be0c5b79231c97de97501
|
| 3 |
+
size 19989493
|
gpu-pipelined/decider_2b_vision_decode_int8mix_pf16/tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "<|endoftext|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"max_length": null,
|
| 15 |
+
"model_max_length": 262144,
|
| 16 |
+
"model_specific_special_tokens": {
|
| 17 |
+
"audio_bos_token": "<|audio_start|>",
|
| 18 |
+
"audio_eos_token": "<|audio_end|>",
|
| 19 |
+
"audio_token": "<|audio_pad|>",
|
| 20 |
+
"image_token": "<|image_pad|>",
|
| 21 |
+
"video_token": "<|video_pad|>",
|
| 22 |
+
"vision_bos_token": "<|vision_start|>",
|
| 23 |
+
"vision_eos_token": "<|vision_end|>"
|
| 24 |
+
},
|
| 25 |
+
"pad_to_multiple_of": null,
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"pad_token_type_id": 0,
|
| 28 |
+
"padding_side": "right",
|
| 29 |
+
"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+",
|
| 30 |
+
"processor_class": "Qwen3VLProcessor",
|
| 31 |
+
"split_special_tokens": false,
|
| 32 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 33 |
+
"unk_token": null,
|
| 34 |
+
"video_token": "<|video_pad|>",
|
| 35 |
+
"vision_bos_token": "<|vision_start|>",
|
| 36 |
+
"vision_eos_token": "<|vision_end|>"
|
| 37 |
+
}
|
gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel/main.hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
J
|
gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a0de69836ef3eefe2288be07adf43f1f463d4575d2ba53760019b884a0cede1
|
| 3 |
+
size 660263631
|
gpu-pipelined/decider_2b_vision_g256_vision_fp16w32/decider_2b_vision_g256_vision_fp16w32.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"creationDate" : "20260928T145640Z",
|
| 3 |
+
"assetVersion" : "2.0",
|
| 4 |
+
"producer" : "coreai-core 1.0.0b2"
|
| 5 |
+
}
|
gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/decider_2b_vision_g448_vision_fp16w32.aimodel/main.hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
��=���^,(ǰ"�k�#�����L
|
gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/decider_2b_vision_g448_vision_fp16w32.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bf6023d9ec6e25e2c28c7b022f56bf523fbd514b2f4861606fb4c0d508d9bdd
|
| 3 |
+
size 662696647
|
gpu-pipelined/decider_2b_vision_g448_vision_fp16w32/decider_2b_vision_g448_vision_fp16w32.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"producer" : "coreai-core 1.0.0b2",
|
| 3 |
+
"creationDate" : "20260928T145658Z",
|
| 4 |
+
"assetVersion" : "2.0"
|
| 5 |
+
}
|