Confucius4-R2T2 converted for Core ML on the Apple Neural Engine (encoder fp16, decoder LUT8 with 128-row prefill and verify head)
Browse files- .gitattributes +1 -0
- LICENSE-Qwen3-ASR.txt +202 -0
- MODEL_LICENSE +62 -0
- NOTICE +32 -0
- R2T2AudioEncoder.mlmodelc/analytics/coremldata.bin +3 -0
- R2T2AudioEncoder.mlmodelc/coremldata.bin +3 -0
- R2T2AudioEncoder.mlmodelc/metadata.json +86 -0
- R2T2AudioEncoder.mlmodelc/model.mil +0 -0
- R2T2AudioEncoder.mlmodelc/weights/weight.bin +3 -0
- README.md +157 -0
- SHA256SUMS +7 -0
- embed_tokens.f16.bin +3 -0
- r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/analytics/coremldata.bin +3 -0
- r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/coremldata.bin +3 -0
- r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/metadata.json +321 -0
- r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/model.mil +0 -0
- r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/weights/weight.bin +3 -0
- r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/analytics/coremldata.bin +3 -0
- r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/coremldata.bin +3 -0
- r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/metadata.json +321 -0
- r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/model.mil +0 -0
- r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/weights/weight.bin +3 -0
- r2t2_lm_head_lut8.mlmodelc/analytics/coremldata.bin +3 -0
- r2t2_lm_head_lut8.mlmodelc/coremldata.bin +3 -0
- r2t2_lm_head_lut8.mlmodelc/metadata.json +481 -0
- r2t2_lm_head_lut8.mlmodelc/model.mil +0 -0
- r2t2_lm_head_lut8.mlmodelc/weights/weight.bin +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +549 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE-Qwen3-ASR.txt
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.
|
MODEL_LICENSE
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
NetEase Youdao Model Use License Agreement
|
| 2 |
+
|
| 3 |
+
By clicking “I agree” to this NetEase Youdao Model Use License Agreement (“this Agreement”) , or by otherwise using any portion or element of the Model or any Derivative Work, you will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately. If you do not agree to this Agreement, you must immediately cease all use and permanently delete the Model and any Derivative Works.
|
| 4 |
+
|
| 5 |
+
1. Definitions
|
| 6 |
+
1.1 “This Agreement”: means the NetEase Youdao Model Use License Agreement, including all of its terms and conditions.
|
| 7 |
+
1.2 “We”, “us”, or “our”: means NetEase Youdao , the original right-holder of the Model.
|
| 8 |
+
1.3 “You”: means any natural person or legal entity exercising rights granted by this Agreement and/or using the Model for any purpose and in any field of use.
|
| 9 |
+
1.4 “Model”: means the artificial-intelligence model named “NetEase Youdao Confucius4-R2T2, including but not limited to model weights and final code, in each case only to the extent that such components are published by us at https://github.com/netease-youdao/Confucius4-R2T2.
|
| 10 |
+
1.5 “Derivative Work”: means any derivative of the Model, including without limitation:
|
| 11 |
+
(i) any modification of the Model, model outputs, or their derivatives;
|
| 12 |
+
(ii) any work based on the Model, model outputs, or their derivatives;
|
| 13 |
+
(iii) any other machine learning model which is created by re-training, fine-tuning, quantizing, LoRA, parameter-efficient fine-tuning, or any other method involving incremental weights or merged checkpoints, in each case based on the Model, model outputs, or their derivatives.
|
| 14 |
+
1.6 “Use”: means downloading, copying, training, modifying, creating Derivative Works, distributing, publishing, running, fine-tuning, publicly displaying, communicating to the public, or otherwise exploiting the Model or any Derivative Work.
|
| 15 |
+
|
| 16 |
+
2. Scope of License and Restrictions
|
| 17 |
+
2.1 Subject to the terms and conditions of this Agreement, we grant you a worldwide, non-exclusive, non-transferable, royalty-free limited license to Use the Model or any Derivative Work based on the intellectual properties or other rights owned by Us embodied in the Model or any Derivative Work.
|
| 18 |
+
2.2 If You intend to Use, or have already Used, the Model or any Derivative Work, and either (i) your or any of your Affiliates’ products or services had more than 100 million monthly active users in the immediately preceding calendar month, or (ii) your or any of your Affiliates’ annual revenue in the immediately preceding calendar year exceeded RMB 1 billion, You must request a separated license from us, which We may grant to You in our sole discretion. You are not authorized to exercise any of the rights under this Agreement unless and until We have expressly granted You such rights in writing.
|
| 19 |
+
2.3 Commercial Licensing Application Channel
|
| 20 |
+
Department: Youdao Zhiyun Business Team
|
| 21 |
+
Tel: 010-8255-8901
|
| 22 |
+
Email: AIcloud_Business@corp.youdao.com
|
| 23 |
+
Address: NetEase (Beijing) Co., Ltd., Building 7, West District, Zhongguancun Software Park Phase II, No. 10 Xibeiwang East Road, Haidian District, Beijing, China
|
| 24 |
+
2.4 This Agreement is an open-source license for the Model in which we possess intellectual properties and other rights. It governs your Use of the Model only and does not limit any rights that we have regarding the Model.
|
| 25 |
+
|
| 26 |
+
3. Disclaimer and Risk Allocation
|
| 27 |
+
3.1 The Model and any outputs generated thereby are provided “AS IS,” without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, non-infringement, absence of errors or omissions, continuity, accuracy, reliability, or stability. You are solely responsible for determining the appropriateness of using or redistributing the Model and assume all risks associated with exercising any rights granted under this Agreement.
|
| 28 |
+
3.2 You shall bear sole responsibility for any infringement, illegality, breach of contract, damages, fines, regulatory investigations, or other liabilities (including, without limitation, infringement of third-party patents, copyrights, trademarks, trade secrets, personality rights, data-protection rights, or any other rights) arising out of or related to your Use of the Model or any outputs generated thereby. We assume no joint, several, supplementary, or advance payment liability.
|
| 29 |
+
3.3 Under no circumstances shall we be liable to you or any third party for any direct, indirect, incidental, special, punitive, or consequential damages (including, without limitation, loss of data, business interruption, or loss of profits) arising out of or related to the Use of the Model, even if we have been advised of the possibility of such damages.
|
| 30 |
+
3.4 Additional Obligations for You and Downstream Recipients
|
| 31 |
+
a) You must ensure that any downstream recipient of the Model or any Derivative Work that you distribute complies with this Agreement, and you must impose appropriate contractual terms on such downstream recipients. If any downstream recipient breaches this Agreement, you shall be responsible for the consequences thereof.
|
| 32 |
+
b) You must retain all original copyright notices and a copy of this Agreement in every copy of the Model or any Derivative Work that you Use.
|
| 33 |
+
c) You may not Use the NetEase Youdao Confucius4-R2T2 or any Derivative Work to improve any AI model, except for the NetEase Youdao Confucius4-R2T2 itself, its Derivative Works,or non-commercial AI models.
|
| 34 |
+
|
| 35 |
+
4. Compliance Obligations
|
| 36 |
+
4.1 Usage Restrictions
|
| 37 |
+
a) If you distribute a Derivative Work, you must clearly state in the distribution page or accompanying documentation: “Any modifications made to the original model in this Derivative Work are not endorsed, warranted, or guaranteed by the original right-holder of the original model, and the original right-holder disclaims all liability related to this Derivative Work.”
|
| 38 |
+
b) If your Use of the Model or any Derivative Work incorporates any third-party data or weights, you must obtain all necessary authorizations on your own and bear full responsibility for compliance.
|
| 39 |
+
c) You may not Use the Model or any Derivative Work for any purpose that violates the laws or regulatory requirements of the jurisdiction where the outputs and/or the Model are generated or used (including, without limitation, generating false information, discriminatory content, or content that infringes privacy).
|
| 40 |
+
d) If the Model or any Derivative Work is capable of generating content, you must ensure that such content does not violate the laws or regulatory requirements of the applicable jurisdiction (including, without limitation, generating false information, discriminatory content, or content that infringes privacy).
|
| 41 |
+
4.2 Prohibited High-Risk Use
|
| 42 |
+
You must ensure that the Model and any Derivative Work are not deployed, directly or indirectly, in high-risk scenarios such as medical diagnosis, autonomous driving, military applications, critical-infrastructure control, large-scale biometric surveillance, or automated decision-making (e.g., credit or employment evaluations). If you insist on such deployment, you must independently complete all compliance obligations under applicable laws and regulations (including but not limited to GDPR, CCPA, HIPAA, export-control laws, and AI-specific regulations), and we shall bear no liability for any consequences arising therefrom.
|
| 43 |
+
4.3 Infringement Liability
|
| 44 |
+
Should any third party raise claims against you with respect to any Derivative Work you develop or your Use of the Model or any Derivative Work, you shall bear full and independent responsibility for defending against and resolving such claims. If your actions cause us to incur any third-party claims, administrative penalties, or other losses, you shall indemnify us for all losses we thereby suffer, including but not limited to attorney fees, litigation costs, damages, and fines, and shall take all necessary measures to eliminate any adverse impact on us.
|
| 45 |
+
|
| 46 |
+
5. Reserved Rights
|
| 47 |
+
5.1 We reserve the right to revoke the license granted to you under this Agreement in the event of your breach. Upon revocation, you must immediately cease all Use and permanently delete all copies of the Model and any Derivative Work. Sections 3 and 6 of this Agreement shall survive termination of this Agreement under this circumstance.
|
| 48 |
+
5.2 Nothing in this Agreement grants you any right to use our trade names, trademarks, service marks, or product names, except as reasonably and customarily required to describe the origin of the Model or any Derivative Work—such as reproducing the content of a NOTICE file under Section 3.4 of this Agreement.
|
| 49 |
+
5.3 If you or any of your Affiliates institutes or participates in any legal proceeding (including any cross-claim or counterclaim in a lawsuit) against us or any of our Affiliates, alleging that the Model or any output or any portion thereof infringes any intellectual property or other rights that you own or control, all licenses granted to you under this Agreement shall terminate automatically as of the date such proceeding is filed.
|
| 50 |
+
|
| 51 |
+
6. Governing Law and Dispute Resolution
|
| 52 |
+
6.1 This Agreement shall be governed by and construed in accordance with the laws of the People’s Republic of China.
|
| 53 |
+
6.2 In the event of any dispute arising out of or in connection with this Agreement, the parties shall first attempt to resolve such dispute through friendly negotiation. If negotiation fails, the parties agree that the dispute shall be arbitrated by the China International Economic and Trade Arbitration Commission ("CIETAC") in Beijing, China, in accordance with CIETAC's arbitration rules then in effect and applicable law, and shall be heard by three (3) arbitrators. The arbitration award shall be final and binding on both parties. The prevailing party shall be entitled to recover reasonable costs, including notarization and investigation fees, arbitration costs, attorneys’ fees, and travel expenses.
|
| 54 |
+
|
| 55 |
+
7. Severability
|
| 56 |
+
If any provision of this Agreement is held to be invalid or unenforceable, the remaining provisions shall remain in full force and effect. The invalid or unenforceable provision shall be replaced with a valid and enforceable provision that, to the maximum extent permitted by law, most closely reflects the original intent of the invalid or unenforceable provision.
|
| 57 |
+
|
| 58 |
+
8. Version Updates
|
| 59 |
+
We may release new versions of the AI Model Use License Agreement. Any new version will apply only to Uses occurring after the date of its release. If you obtained the Model under an earlier version, the new version will not have retroactive effect; nevertheless, you are encouraged to adopt the new version voluntarily.
|
| 60 |
+
|
| 61 |
+
9. Language Version
|
| 62 |
+
In the event of any discrepancy or conflict between the English-language version set forth above and the Chinese-language version of this NetEase Youdao Model Use License Agreement, the Chinese-language version shall prevail for all purposes and shall govern the rights and obligations of the parties.
|
NOTICE
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Confucius4-R2T2, Core ML / Apple Neural Engine conversion
|
| 2 |
+
==========================================================
|
| 3 |
+
|
| 4 |
+
This is a Derivative Work of the NetEase Youdao Confucius4-R2T2 model.
|
| 5 |
+
|
| 6 |
+
Original model
|
| 7 |
+
NetEase Youdao Confucius4-R2T2
|
| 8 |
+
Copyright (c) NetEase Youdao. All rights reserved.
|
| 9 |
+
https://huggingface.co/netease-youdao/Confucius4-R2T2
|
| 10 |
+
https://github.com/netease-youdao/Confucius4-R2T2
|
| 11 |
+
Released under the NetEase Youdao Model Use License Agreement (see MODEL_LICENSE).
|
| 12 |
+
|
| 13 |
+
Base model
|
| 14 |
+
Qwen3-ASR-1.7B, Copyright (c) Alibaba Cloud.
|
| 15 |
+
https://huggingface.co/Qwen/Qwen3-ASR-1.7B
|
| 16 |
+
Released under the Apache License, Version 2.0 (see LICENSE-Qwen3-ASR.txt).
|
| 17 |
+
The tokenizer files (tokenizer.json, tokenizer_config.json) are those of the original model.
|
| 18 |
+
|
| 19 |
+
This conversion
|
| 20 |
+
The weights in this repository are the original Confucius4-R2T2 weights converted for Core ML on
|
| 21 |
+
Apple silicon: the audio encoder in fp16, the text decoder palettised to 8 bits (LUT8) in two
|
| 22 |
+
stateful chunks, and the language-model head palettised to 8 bits. No re-training or fine-tuning
|
| 23 |
+
was performed. The conversion pipeline and the runtime that drives these files are published with
|
| 24 |
+
the VoiceInk fork that uses them (GPL-3.0, like VoiceInk).
|
| 25 |
+
|
| 26 |
+
Any modifications made to the original model in this Derivative Work are not endorsed, warranted,
|
| 27 |
+
or guaranteed by the original right-holder of the original model, and the original right-holder
|
| 28 |
+
disclaims all liability related to this Derivative Work.
|
| 29 |
+
|
| 30 |
+
Use of these files constitutes acceptance of the NetEase Youdao Model Use License Agreement
|
| 31 |
+
(MODEL_LICENSE). Anyone redistributing these files, or any further derivative, must keep this
|
| 32 |
+
NOTICE and the MODEL_LICENSE with every copy.
|
R2T2AudioEncoder.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cecce3e737a2f11e9dc4a9016e4e8c559828fe0e4eeb318934f8255fa0d0fa32
|
| 3 |
+
size 243
|
R2T2AudioEncoder.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:407519b071466ab084c6a8624f0277874bdc7d33984aa50f0b117a5ac38f9a9d
|
| 3 |
+
size 415
|
R2T2AudioEncoder.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"metadataOutputVersion" : "3.0",
|
| 4 |
+
"storagePrecision" : "Mixed (Float16, Int32)",
|
| 5 |
+
"outputSchema" : [
|
| 6 |
+
{
|
| 7 |
+
"hasShapeFlexibility" : "0",
|
| 8 |
+
"isOptional" : "0",
|
| 9 |
+
"dataType" : "Float16",
|
| 10 |
+
"formattedType" : "MultiArray (Float16 1 × 2048 × 1 × 104)",
|
| 11 |
+
"shortDescription" : "",
|
| 12 |
+
"shape" : "[1, 2048, 1, 104]",
|
| 13 |
+
"name" : "audio_embeds",
|
| 14 |
+
"type" : "MultiArray"
|
| 15 |
+
}
|
| 16 |
+
],
|
| 17 |
+
"modelParameters" : [
|
| 18 |
+
|
| 19 |
+
],
|
| 20 |
+
"specificationVersion" : 9,
|
| 21 |
+
"mlProgramOperationTypeHistogram" : {
|
| 22 |
+
"Ios18.batchNorm" : 49,
|
| 23 |
+
"Ios18.conv" : 150,
|
| 24 |
+
"Ios18.sub" : 49,
|
| 25 |
+
"Ios18.matmul" : 384,
|
| 26 |
+
"Ios18.concat" : 24,
|
| 27 |
+
"Ios18.rsqrt" : 49,
|
| 28 |
+
"Ios18.add" : 538,
|
| 29 |
+
"Ios16.einsum" : 384,
|
| 30 |
+
"Ios18.tanh" : 28,
|
| 31 |
+
"Ios16.reduceMean" : 98,
|
| 32 |
+
"Ios18.pow" : 49,
|
| 33 |
+
"Ios18.transpose" : 1155,
|
| 34 |
+
"Ios18.softmax" : 384,
|
| 35 |
+
"Ios18.reshape" : 1156,
|
| 36 |
+
"Split" : 72,
|
| 37 |
+
"Ios18.mul" : 217
|
| 38 |
+
},
|
| 39 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 40 |
+
"isUpdatable" : "0",
|
| 41 |
+
"stateSchema" : [
|
| 42 |
+
|
| 43 |
+
],
|
| 44 |
+
"availability" : {
|
| 45 |
+
"macOS" : "15.0",
|
| 46 |
+
"tvOS" : "18.0",
|
| 47 |
+
"visionOS" : "2.0",
|
| 48 |
+
"watchOS" : "11.0",
|
| 49 |
+
"iOS" : "18.0",
|
| 50 |
+
"macCatalyst" : "18.0"
|
| 51 |
+
},
|
| 52 |
+
"modelType" : {
|
| 53 |
+
"name" : "MLModelType_mlProgram"
|
| 54 |
+
},
|
| 55 |
+
"userDefinedMetadata" : {
|
| 56 |
+
"com.github.apple.coremltools.conversion_date" : "2026-09-20",
|
| 57 |
+
"com.github.apple.coremltools.source" : "torch==2.8.0",
|
| 58 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 59 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript"
|
| 60 |
+
},
|
| 61 |
+
"inputSchema" : [
|
| 62 |
+
{
|
| 63 |
+
"hasShapeFlexibility" : "0",
|
| 64 |
+
"isOptional" : "0",
|
| 65 |
+
"dataType" : "Float16",
|
| 66 |
+
"formattedType" : "MultiArray (Float16 1 × 128 × 800)",
|
| 67 |
+
"shortDescription" : "",
|
| 68 |
+
"shape" : "[1, 128, 800]",
|
| 69 |
+
"name" : "input_features",
|
| 70 |
+
"type" : "MultiArray"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"hasShapeFlexibility" : "0",
|
| 74 |
+
"isOptional" : "0",
|
| 75 |
+
"dataType" : "Float16",
|
| 76 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 1 × 104)",
|
| 77 |
+
"shortDescription" : "",
|
| 78 |
+
"shape" : "[1, 1, 1, 104]",
|
| 79 |
+
"name" : "key_bias",
|
| 80 |
+
"type" : "MultiArray"
|
| 81 |
+
}
|
| 82 |
+
],
|
| 83 |
+
"generatedClassName" : "R2T2AudioEncoder",
|
| 84 |
+
"method" : "predict"
|
| 85 |
+
}
|
| 86 |
+
]
|
R2T2AudioEncoder.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
R2T2AudioEncoder.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25e004c2e3c91144a7227bf347d129af836917cead9740c276ba50e32163ebf4
|
| 3 |
+
size 635020608
|
README.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: netease-model-use-license-agreement
|
| 4 |
+
license_link: https://raw.githubusercontent.com/netease-youdao/Confucius4-R2T2/refs/heads/master/MODEL_LICENSE
|
| 5 |
+
base_model: netease-youdao/Confucius4-R2T2
|
| 6 |
+
pipeline_tag: automatic-speech-recognition
|
| 7 |
+
library_name: coreml
|
| 8 |
+
tags:
|
| 9 |
+
- coreml
|
| 10 |
+
- apple-neural-engine
|
| 11 |
+
- apple-silicon
|
| 12 |
+
- asr
|
| 13 |
+
- speech-recognition
|
| 14 |
+
- streaming
|
| 15 |
+
- real-time
|
| 16 |
+
- qwen3-asr
|
| 17 |
+
- confucius4
|
| 18 |
+
- r2t2
|
| 19 |
+
language:
|
| 20 |
+
- en
|
| 21 |
+
- pt
|
| 22 |
+
- zh
|
| 23 |
+
- es
|
| 24 |
+
- fr
|
| 25 |
+
- de
|
| 26 |
+
- it
|
| 27 |
+
- ja
|
| 28 |
+
- ko
|
| 29 |
+
- ru
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
# Confucius4-R2T2 for Core ML and the Apple Neural Engine
|
| 33 |
+
|
| 34 |
+
> Any modifications made to the original model in this Derivative Work are not endorsed, warranted,
|
| 35 |
+
> or guaranteed by the original right-holder of the original model, and the original right-holder
|
| 36 |
+
> disclaims all liability related to this Derivative Work.
|
| 37 |
+
|
| 38 |
+
This is [NetEase Youdao's Confucius4-R2T2](https://huggingface.co/netease-youdao/Confucius4-R2T2)
|
| 39 |
+
(a real-time speech-recognition fine-tune of Qwen3-ASR-1.7B, 30 languages) converted to Core ML
|
| 40 |
+
programs that run almost entirely on the Apple Neural Engine: every op of the encoder, 99 % of the
|
| 41 |
+
decoder's, and the head's, with the single-row argmax and a dozen index ops per decoder function on
|
| 42 |
+
the CPU. No re-training or fine-tuning was done; the weights are the original ones, converted and
|
| 43 |
+
palettised.
|
| 44 |
+
|
| 45 |
+
It is the model used by the R2T2 provider in a fork of [VoiceInk](https://github.com/Beingpax/VoiceInk),
|
| 46 |
+
whose runtime and conversion pipeline are published with that fork. The files here are not a
|
| 47 |
+
general-purpose Core ML model with a single input and output: the decoder is a stateful,
|
| 48 |
+
multifunction program that the runtime drives one pass at a time (see *How it is run*).
|
| 49 |
+
|
| 50 |
+
## Contents
|
| 51 |
+
|
| 52 |
+
| file | what | size |
|
| 53 |
+
|---|---|---|
|
| 54 |
+
| `R2T2AudioEncoder.mlmodelc` | audio encoder, fp16, one fixed 800-frame (8 s) mel window with a key mask → 104 rows | 607 MB |
|
| 55 |
+
| `r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc` | decoder layers 0–13, LUT8, functions `prefill` (128 rows) and `infer` (1 row), stateful KV cache | 692 MB |
|
| 56 |
+
| `r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc` | decoder layers 14–27 + final norm, same functions | 692 MB |
|
| 57 |
+
| `r2t2_lm_head_lut8.mlmodelc` | language-model head, LUT8, 16-way split: `infer` (one row → logits) and `verify` (128 rows → 128 argmaxes) | 306 MB |
|
| 58 |
+
| `embed_tokens.f16.bin` | token embedding table, fp16, 151 936 × 2048, memory-mapped by the runtime | 622 MB |
|
| 59 |
+
| `tokenizer.json`, `tokenizer_config.json` | the original tokenizer | 11 MB |
|
| 60 |
+
| `MODEL_LICENSE`, `LICENSE-Qwen3-ASR.txt`, `NOTICE`, `SHA256SUMS` | licences, attribution, checksums | |
|
| 61 |
+
|
| 62 |
+
Requirements: Apple silicon and macOS 15 or later (the decoder uses Core ML stateful models).
|
| 63 |
+
While loaded, the Neural Engine holds the weights dequantised to fp16, about 4.5 GB, outside the
|
| 64 |
+
process; the process itself uses about 200 MB. The first load by a given application compiles the
|
| 65 |
+
programs for the Neural Engine, which takes about 50 s; the compiled programs are cached per
|
| 66 |
+
application binary, so later loads take about a second, and a rebuilt or updated application pays
|
| 67 |
+
the compile once more. The cache also needs free disk: with a nearly full disk (under ~20 GB) every
|
| 68 |
+
load recompiled.
|
| 69 |
+
|
| 70 |
+
## Interface
|
| 71 |
+
|
| 72 |
+
The files are meant for a runtime that drives them; they are not a drop-in `MLModel` with audio in
|
| 73 |
+
and text out.
|
| 74 |
+
|
| 75 |
+
- **Encoder** `R2T2AudioEncoder.mlmodelc`: input `[1, 128, 800]` log-mel frames (Whisper's recipe:
|
| 76 |
+
16 kHz, n_fft 400, hop 160, Slaney filterbank, `log10`, clamped to 8 dB below the buffer's maximum,
|
| 77 |
+
`(x + 4) / 4`) plus a key mask for windows shorter than 800 frames (masked keys get −10 000);
|
| 78 |
+
output `[1, 104, 2048]` rows, 13 per 100 frames.
|
| 79 |
+
- **Decoder chunks**: functions `prefill` (B = 128) and `infer` (B = 1) with inputs
|
| 80 |
+
`hidden_states [1, B, 2048]` fp16, `position_ids [B]` int32, `causal_mask [1, 1, B, 1024]` fp16
|
| 81 |
+
(0 to attend, −10 000 otherwise), `current_pos [1]` int32; output `output_hidden_states [1, B, 2048]`
|
| 82 |
+
(chunk 2's is final-normalised). Both chunks share one `MLState` of shape `(56, 8, 1024, 128)` fp16:
|
| 83 |
+
layer *l* of chunk *c* uses slots *l* (K) and *28 + l* (V). Rows are written by absolute position,
|
| 84 |
+
so a caller can rewind and overwrite. Context length 1024.
|
| 85 |
+
- **Head**: `infer` takes `hidden_states [1, 1, 2048]` and returns `logits1…logits16`, each
|
| 86 |
+
`[1, 1, 9496]` (the vocabulary of 151 936 in 16 slices); `verify` takes `[1, 128, 2048]` and returns
|
| 87 |
+
per row and per slice `argmax_val`, `argmax_hi`, `argmax_lo` (`[128, 16]` fp16 each), the slice's
|
| 88 |
+
best logit and its index as `hi × 64 + lo`, exact in fp16.
|
| 89 |
+
- **Embeddings** `embed_tokens.f16.bin`: 151 936 rows of 2048 fp16 values, row-major, no header.
|
| 90 |
+
- The decoder programs load under `.cpuAndNeuralEngine` only: `.all` and `.cpuAndGPU` fail to
|
| 91 |
+
compile, and `.cpuOnly` cannot load the multifunction packages. Python `coremltools` cannot open
|
| 92 |
+
the combined packages either; drive them from Swift or Objective-C.
|
| 93 |
+
|
| 94 |
+
## Accuracy
|
| 95 |
+
|
| 96 |
+
Word error rate of this conversion, decoding whole utterances, on 100-utterance subsets:
|
| 97 |
+
|
| 98 |
+
| corpus | this conversion |
|
| 99 |
+
|---|---|
|
| 100 |
+
| LibriSpeech test-clean (English) | 2.40 % |
|
| 101 |
+
| FLEURS pt_br (Brazilian Portuguese) | 3.50 % |
|
| 102 |
+
|
| 103 |
+
Against the unconverted BF16 weights run on MLX, paired on 300 utterances of each corpus, the
|
| 104 |
+
conversion measured 2.47 % vs 2.42 % (ratio 1.02, 95 % CI 0.96–1.10) on LibriSpeech and
|
| 105 |
+
4.01 % vs 4.01 % (ratio 1.00, CI 0.95–1.05) on FLEURS. The streaming runtime described below ends
|
| 106 |
+
on the same transcript as the whole-file decode.
|
| 107 |
+
|
| 108 |
+
## How it is run
|
| 109 |
+
|
| 110 |
+
The runtime that uses these files decodes the whole current piece of audio (up to 30 s) on every
|
| 111 |
+
pass, so the live text converges on the same result as an offline decode. What keeps that cheap
|
| 112 |
+
is what stays in the decoder's KV state between passes: the prompt prefix and the rows of every
|
| 113 |
+
completed encoder window. A pass encodes the partial last window, prefills the new audio rows,
|
| 114 |
+
the prompt scaffold and the previous pass's tokens as a draft, checks the draft with one call of
|
| 115 |
+
the head's `verify` function, and decodes one token at a time only from the first divergence.
|
| 116 |
+
Passes take about 150–250 ms on an M5 Pro; a 30 s piece decodes offline in about 2.5 s
|
| 117 |
+
(20 ms per token).
|
| 118 |
+
|
| 119 |
+
The prompt is the Qwen3-ASR chat template: system text (hotwords may go here), the user turn with
|
| 120 |
+
`<|audio_start|>`, the encoder's output rows in place of the `<|audio_pad|>` token embeddings,
|
| 121 |
+
`<|audio_end|>`, and the assistant turn, optionally prefixed with `language <Name><asr_text>` to
|
| 122 |
+
force a language. The model answers `language <Name><asr_text>` followed by the text; `|` marks
|
| 123 |
+
where it stops trusting its own output.
|
| 124 |
+
|
| 125 |
+
## Conversion
|
| 126 |
+
|
| 127 |
+
Encoder: fp16, the network rewritten in the layout the Neural Engine compiler keeps resident
|
| 128 |
+
(the fused `gelu` op replaced by a tanh formulation, because its constant absolute error is large
|
| 129 |
+
against this encoder's small activations), fixed 800-frame window with a key mask for shorter
|
| 130 |
+
input; 4786/4786 ops on the Neural Engine, 55 dB SNR against the PyTorch encoder.
|
| 131 |
+
|
| 132 |
+
Decoder: through [ANEMLL](https://github.com/Anemll/Anemll) (patched to return the normalised
|
| 133 |
+
hidden states of every prefill row), two chunks, context 1024, 8-bit palettised weights, a
|
| 134 |
+
128-row `prefill` and a 1-row `infer` function sharing one KV state; prefill and single-step paths
|
| 135 |
+
agree to cosine 1.0. A 6-bit build was measured and rejected (WER ratio 1.16 on Portuguese).
|
| 136 |
+
|
| 137 |
+
Head: the 16-way split head of the original conversion plus a `verify` function that returns the
|
| 138 |
+
argmax of 128 hidden rows in one call, computed exactly on the Neural Engine.
|
| 139 |
+
|
| 140 |
+
## Licence
|
| 141 |
+
|
| 142 |
+
Dual licensing, as for the original model:
|
| 143 |
+
|
| 144 |
+
- **Weights** (everything in this repository derived from the model): the
|
| 145 |
+
[NetEase Youdao Model Use License Agreement](MODEL_LICENSE). Using these files means accepting
|
| 146 |
+
it. In short: royalty-free use including commercial use, with a separate licence required above
|
| 147 |
+
100 million monthly active users or RMB 1 billion in annual revenue; no use to improve other AI
|
| 148 |
+
models; no high-risk deployments; keep the NOTICE and MODEL_LICENSE with every copy; anyone you
|
| 149 |
+
redistribute to is bound by the same terms. The Chinese version of the agreement prevails.
|
| 150 |
+
- **Base model** Qwen3-ASR-1.7B: Apache License 2.0 ([LICENSE-Qwen3-ASR.txt](LICENSE-Qwen3-ASR.txt)).
|
| 151 |
+
- **Conversion pipeline and runtime code**: part of the VoiceInk fork, which is GPL-3.0 like
|
| 152 |
+
VoiceInk itself. Nothing in this repository is code.
|
| 153 |
+
|
| 154 |
+
## Attribution
|
| 155 |
+
|
| 156 |
+
Confucius4-R2T2 by NetEase Youdao. Qwen3-ASR by Alibaba Cloud. Core ML conversion tooling built on
|
| 157 |
+
ANEMLL and coremltools. See [NOTICE](NOTICE).
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0499602714160467f2d68b910651d6216020689f1e016be87a2d0019ee3baeab tokenizer.json
|
| 2 |
+
4942d005604266809309cabc9f4e9cb89ce855d59b14681fdc0e1cc62ea26c4c tokenizer_config.json
|
| 3 |
+
efa87abb745fd48d9ee657d62d1a18899e4ee8eba75e47507dbb5991f3b7095a embed_tokens.f16.bin
|
| 4 |
+
aba6d66c11c29d0da579a44394b9621aca6466611be91053645be6a2d23bbdf4 r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc (tree)
|
| 5 |
+
e30ca12f6ed6b5a0a25af97dfbbedc8c58dfd9db2f707ca130f7941bb12a57eb r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc (tree)
|
| 6 |
+
ed219b49d16d1bd7905452fdf653eba8778c26d0dd2766d7fc30876eac52cfe5 r2t2_lm_head_lut8.mlmodelc (tree)
|
| 7 |
+
b34645f8671aec799b836fb4f32ff591d57d061c12ea2c24a3faf0a713b10695 R2T2AudioEncoder.mlmodelc (tree)
|
embed_tokens.f16.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efa87abb745fd48d9ee657d62d1a18899e4ee8eba75e47507dbb5991f3b7095a
|
| 3 |
+
size 622329856
|
r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2cd2e5d8a5bf6e7698165f027d5de6e700c411014d53a8d1db8df6c2fc95e83b
|
| 3 |
+
size 243
|
r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b1048f219d90e56c24832df9d307b0c1add26ae76864e5b8cf4075c15ba9a4c
|
| 3 |
+
size 986
|
r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"metadataOutputVersion" : "3.0",
|
| 4 |
+
"userDefinedMetadata" : {
|
| 5 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 6 |
+
"com.anemll.chunk_no" : "1",
|
| 7 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
| 8 |
+
"com.anemll.context_length" : "1024",
|
| 9 |
+
"com.github.apple.coremltools.source" : "torch==2.8.0",
|
| 10 |
+
"com.anemll.num_chunks" : "2",
|
| 11 |
+
"com.anemll.batch_size" : "128",
|
| 12 |
+
"com.anemll.info" : "Converted with Anemll v0.1.1",
|
| 13 |
+
"com.anemll.lut_bits" : "8"
|
| 14 |
+
},
|
| 15 |
+
"availability" : {
|
| 16 |
+
"macOS" : "15.0",
|
| 17 |
+
"tvOS" : "18.0",
|
| 18 |
+
"visionOS" : "2.0",
|
| 19 |
+
"watchOS" : "11.0",
|
| 20 |
+
"iOS" : "18.0",
|
| 21 |
+
"macCatalyst" : "18.0"
|
| 22 |
+
},
|
| 23 |
+
"inputSchema" : [
|
| 24 |
+
{
|
| 25 |
+
"hasShapeFlexibility" : "0",
|
| 26 |
+
"isOptional" : "0",
|
| 27 |
+
"dataType" : "Float16",
|
| 28 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 29 |
+
"shortDescription" : "",
|
| 30 |
+
"shape" : "[1, 1, 2048]",
|
| 31 |
+
"name" : "hidden_states",
|
| 32 |
+
"type" : "MultiArray"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"hasShapeFlexibility" : "0",
|
| 36 |
+
"isOptional" : "0",
|
| 37 |
+
"dataType" : "Int32",
|
| 38 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 39 |
+
"shortDescription" : "",
|
| 40 |
+
"shape" : "[1]",
|
| 41 |
+
"name" : "position_ids",
|
| 42 |
+
"type" : "MultiArray"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"hasShapeFlexibility" : "0",
|
| 46 |
+
"isOptional" : "0",
|
| 47 |
+
"dataType" : "Float16",
|
| 48 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 1 × 1024)",
|
| 49 |
+
"shortDescription" : "",
|
| 50 |
+
"shape" : "[1, 1, 1, 1024]",
|
| 51 |
+
"name" : "causal_mask",
|
| 52 |
+
"type" : "MultiArray"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"hasShapeFlexibility" : "0",
|
| 56 |
+
"isOptional" : "0",
|
| 57 |
+
"dataType" : "Int32",
|
| 58 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 59 |
+
"shortDescription" : "",
|
| 60 |
+
"shape" : "[1]",
|
| 61 |
+
"name" : "current_pos",
|
| 62 |
+
"type" : "MultiArray"
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"outputSchema" : [
|
| 66 |
+
{
|
| 67 |
+
"hasShapeFlexibility" : "0",
|
| 68 |
+
"isOptional" : "0",
|
| 69 |
+
"dataType" : "Float16",
|
| 70 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 71 |
+
"shortDescription" : "",
|
| 72 |
+
"shape" : "[1, 1, 2048]",
|
| 73 |
+
"name" : "output_hidden_states",
|
| 74 |
+
"type" : "MultiArray"
|
| 75 |
+
}
|
| 76 |
+
],
|
| 77 |
+
"modelParameters" : [
|
| 78 |
+
|
| 79 |
+
],
|
| 80 |
+
"storagePrecision" : "Mixed (Float16, Palettized (15 bits), Palettized (16 bits), Palettized (18 bits), UInt8)",
|
| 81 |
+
"method" : "predict",
|
| 82 |
+
"functions" : [
|
| 83 |
+
{
|
| 84 |
+
"inputSchema" : [
|
| 85 |
+
{
|
| 86 |
+
"hasShapeFlexibility" : "0",
|
| 87 |
+
"isOptional" : "0",
|
| 88 |
+
"dataType" : "Float16",
|
| 89 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 90 |
+
"shortDescription" : "",
|
| 91 |
+
"shape" : "[1, 1, 2048]",
|
| 92 |
+
"name" : "hidden_states",
|
| 93 |
+
"type" : "MultiArray"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"hasShapeFlexibility" : "0",
|
| 97 |
+
"isOptional" : "0",
|
| 98 |
+
"dataType" : "Int32",
|
| 99 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 100 |
+
"shortDescription" : "",
|
| 101 |
+
"shape" : "[1]",
|
| 102 |
+
"name" : "position_ids",
|
| 103 |
+
"type" : "MultiArray"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"hasShapeFlexibility" : "0",
|
| 107 |
+
"isOptional" : "0",
|
| 108 |
+
"dataType" : "Float16",
|
| 109 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 1 × 1024)",
|
| 110 |
+
"shortDescription" : "",
|
| 111 |
+
"shape" : "[1, 1, 1, 1024]",
|
| 112 |
+
"name" : "causal_mask",
|
| 113 |
+
"type" : "MultiArray"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"hasShapeFlexibility" : "0",
|
| 117 |
+
"isOptional" : "0",
|
| 118 |
+
"dataType" : "Int32",
|
| 119 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 120 |
+
"shortDescription" : "",
|
| 121 |
+
"shape" : "[1]",
|
| 122 |
+
"name" : "current_pos",
|
| 123 |
+
"type" : "MultiArray"
|
| 124 |
+
}
|
| 125 |
+
],
|
| 126 |
+
"computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
|
| 127 |
+
"storagePrecision" : "Mixed (Float16, Palettized (15 bits), Palettized (16 bits), Palettized (18 bits), UInt8)",
|
| 128 |
+
"stateSchema" : [
|
| 129 |
+
{
|
| 130 |
+
"dataType" : "Float16",
|
| 131 |
+
"isOptional" : "0",
|
| 132 |
+
"formattedType" : "State (Float16 56 × 8 × 1024 × 128)",
|
| 133 |
+
"shortDescription" : "",
|
| 134 |
+
"shape" : "[56, 8, 1024, 128]",
|
| 135 |
+
"name" : "model_model_kv_cache_0",
|
| 136 |
+
"type" : "State"
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"outputSchema" : [
|
| 140 |
+
{
|
| 141 |
+
"hasShapeFlexibility" : "0",
|
| 142 |
+
"isOptional" : "0",
|
| 143 |
+
"dataType" : "Float16",
|
| 144 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 145 |
+
"shortDescription" : "",
|
| 146 |
+
"shape" : "[1, 1, 2048]",
|
| 147 |
+
"name" : "output_hidden_states",
|
| 148 |
+
"type" : "MultiArray"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"name" : "infer",
|
| 152 |
+
"mlProgramOperationTypeHistogram" : {
|
| 153 |
+
"Ios18.expandDims" : 56,
|
| 154 |
+
"Ios18.mul" : 224,
|
| 155 |
+
"Ios18.softmax" : 14,
|
| 156 |
+
"Ios18.matmul" : 28,
|
| 157 |
+
"Identity" : 1,
|
| 158 |
+
"Ios18.greaterEqual" : 2,
|
| 159 |
+
"Select" : 2,
|
| 160 |
+
"Ios18.readState" : 29,
|
| 161 |
+
"Tile" : 28,
|
| 162 |
+
"Ios18.gather" : 2,
|
| 163 |
+
"Ios18.add" : 73,
|
| 164 |
+
"Ios18.layerNorm" : 56,
|
| 165 |
+
"Ios18.sliceUpdate" : 28,
|
| 166 |
+
"Ios18.writeState" : 28,
|
| 167 |
+
"Ios18.reshape" : 86,
|
| 168 |
+
"Ios18.constexprLutToDense" : 98,
|
| 169 |
+
"Ios18.conv" : 98,
|
| 170 |
+
"Ios18.concat" : 140,
|
| 171 |
+
"Ios18.transpose" : 84,
|
| 172 |
+
"Ios18.cast" : 5,
|
| 173 |
+
"Ios18.silu" : 14,
|
| 174 |
+
"Ios18.sliceByIndex" : 140,
|
| 175 |
+
"Ios18.squeeze" : 42
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"inputSchema" : [
|
| 180 |
+
{
|
| 181 |
+
"hasShapeFlexibility" : "0",
|
| 182 |
+
"isOptional" : "0",
|
| 183 |
+
"dataType" : "Float16",
|
| 184 |
+
"formattedType" : "MultiArray (Float16 1 × 128 × 2048)",
|
| 185 |
+
"shortDescription" : "",
|
| 186 |
+
"shape" : "[1, 128, 2048]",
|
| 187 |
+
"name" : "hidden_states",
|
| 188 |
+
"type" : "MultiArray"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"hasShapeFlexibility" : "0",
|
| 192 |
+
"isOptional" : "0",
|
| 193 |
+
"dataType" : "Int32",
|
| 194 |
+
"formattedType" : "MultiArray (Int32 128)",
|
| 195 |
+
"shortDescription" : "",
|
| 196 |
+
"shape" : "[128]",
|
| 197 |
+
"name" : "position_ids",
|
| 198 |
+
"type" : "MultiArray"
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"hasShapeFlexibility" : "0",
|
| 202 |
+
"isOptional" : "0",
|
| 203 |
+
"dataType" : "Float16",
|
| 204 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 128 × 1024)",
|
| 205 |
+
"shortDescription" : "",
|
| 206 |
+
"shape" : "[1, 1, 128, 1024]",
|
| 207 |
+
"name" : "causal_mask",
|
| 208 |
+
"type" : "MultiArray"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"hasShapeFlexibility" : "0",
|
| 212 |
+
"isOptional" : "0",
|
| 213 |
+
"dataType" : "Int32",
|
| 214 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 215 |
+
"shortDescription" : "",
|
| 216 |
+
"shape" : "[1]",
|
| 217 |
+
"name" : "current_pos",
|
| 218 |
+
"type" : "MultiArray"
|
| 219 |
+
}
|
| 220 |
+
],
|
| 221 |
+
"computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
|
| 222 |
+
"storagePrecision" : "Mixed (Float16, Palettized (15 bits), Palettized (16 bits), Palettized (18 bits), UInt8)",
|
| 223 |
+
"stateSchema" : [
|
| 224 |
+
{
|
| 225 |
+
"dataType" : "Float16",
|
| 226 |
+
"isOptional" : "0",
|
| 227 |
+
"formattedType" : "State (Float16 56 × 8 × 1024 × 128)",
|
| 228 |
+
"shortDescription" : "",
|
| 229 |
+
"shape" : "[56, 8, 1024, 128]",
|
| 230 |
+
"name" : "model_model_kv_cache_0",
|
| 231 |
+
"type" : "State"
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"outputSchema" : [
|
| 235 |
+
{
|
| 236 |
+
"hasShapeFlexibility" : "0",
|
| 237 |
+
"isOptional" : "0",
|
| 238 |
+
"dataType" : "Float16",
|
| 239 |
+
"formattedType" : "MultiArray (Float16 1 × 128 × 2048)",
|
| 240 |
+
"shortDescription" : "",
|
| 241 |
+
"shape" : "[1, 128, 2048]",
|
| 242 |
+
"name" : "output_hidden_states",
|
| 243 |
+
"type" : "MultiArray"
|
| 244 |
+
}
|
| 245 |
+
],
|
| 246 |
+
"name" : "prefill",
|
| 247 |
+
"mlProgramOperationTypeHistogram" : {
|
| 248 |
+
"Ios18.expandDims" : 56,
|
| 249 |
+
"Ios18.mul" : 224,
|
| 250 |
+
"Ios18.softmax" : 14,
|
| 251 |
+
"Ios18.matmul" : 28,
|
| 252 |
+
"Ios18.greaterEqual" : 2,
|
| 253 |
+
"Select" : 2,
|
| 254 |
+
"Ios18.readState" : 29,
|
| 255 |
+
"Tile" : 28,
|
| 256 |
+
"Ios18.gather" : 2,
|
| 257 |
+
"Ios18.add" : 73,
|
| 258 |
+
"Ios18.layerNorm" : 56,
|
| 259 |
+
"Ios18.sliceUpdate" : 28,
|
| 260 |
+
"Ios18.writeState" : 28,
|
| 261 |
+
"Ios18.reshape" : 114,
|
| 262 |
+
"Ios18.constexprLutToDense" : 98,
|
| 263 |
+
"Ios18.conv" : 98,
|
| 264 |
+
"Ios18.concat" : 140,
|
| 265 |
+
"Ios18.transpose" : 128,
|
| 266 |
+
"Ios18.cast" : 5,
|
| 267 |
+
"Ios18.silu" : 14,
|
| 268 |
+
"Ios18.sliceByIndex" : 140,
|
| 269 |
+
"Ios18.squeeze" : 42
|
| 270 |
+
}
|
| 271 |
+
}
|
| 272 |
+
],
|
| 273 |
+
"version" : "0.1.1",
|
| 274 |
+
"isUpdatable" : "0",
|
| 275 |
+
"defaultFunctionName" : "infer",
|
| 276 |
+
"specificationVersion" : 9,
|
| 277 |
+
"stateSchema" : [
|
| 278 |
+
{
|
| 279 |
+
"dataType" : "Float16",
|
| 280 |
+
"isOptional" : "0",
|
| 281 |
+
"formattedType" : "State (Float16 56 × 8 × 1024 × 128)",
|
| 282 |
+
"shortDescription" : "",
|
| 283 |
+
"shape" : "[56, 8, 1024, 128]",
|
| 284 |
+
"name" : "model_model_kv_cache_0",
|
| 285 |
+
"type" : "State"
|
| 286 |
+
}
|
| 287 |
+
],
|
| 288 |
+
"computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
|
| 289 |
+
"mlProgramOperationTypeHistogram" : {
|
| 290 |
+
"Ios18.expandDims" : 56,
|
| 291 |
+
"Ios18.mul" : 224,
|
| 292 |
+
"Ios18.softmax" : 14,
|
| 293 |
+
"Ios18.matmul" : 28,
|
| 294 |
+
"Identity" : 1,
|
| 295 |
+
"Ios18.greaterEqual" : 2,
|
| 296 |
+
"Select" : 2,
|
| 297 |
+
"Ios18.readState" : 29,
|
| 298 |
+
"Tile" : 28,
|
| 299 |
+
"Ios18.gather" : 2,
|
| 300 |
+
"Ios18.add" : 73,
|
| 301 |
+
"Ios18.layerNorm" : 56,
|
| 302 |
+
"Ios18.sliceUpdate" : 28,
|
| 303 |
+
"Ios18.writeState" : 28,
|
| 304 |
+
"Ios18.reshape" : 86,
|
| 305 |
+
"Ios18.constexprLutToDense" : 98,
|
| 306 |
+
"Ios18.conv" : 98,
|
| 307 |
+
"Ios18.concat" : 140,
|
| 308 |
+
"Ios18.transpose" : 84,
|
| 309 |
+
"Ios18.cast" : 5,
|
| 310 |
+
"Ios18.silu" : 14,
|
| 311 |
+
"Ios18.sliceByIndex" : 140,
|
| 312 |
+
"Ios18.squeeze" : 42
|
| 313 |
+
},
|
| 314 |
+
"shortDescription" : "Anemll Model: Multifunction FFN+Prefill",
|
| 315 |
+
"generatedClassName" : "r2t2_FFN_PF_lut8_chunk_01of02",
|
| 316 |
+
"author" : "Converted with Anemll v0.1.1",
|
| 317 |
+
"modelType" : {
|
| 318 |
+
"name" : "MLModelType_mlProgram"
|
| 319 |
+
}
|
| 320 |
+
}
|
| 321 |
+
]
|
r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
r2t2_FFN_PF_lut8_chunk_01of02.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74494c85747845fc4f27bfc1c77e6b81ec3ebd0a494aca59c35d59ab7df62485
|
| 3 |
+
size 724179904
|
r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c90c7e7bf41e01fd443833700072119b021ea2c0816241bc6b303888181931d2
|
| 3 |
+
size 243
|
r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e45f2ea058ea90c17e7ab6d48ab0451cfdc11a1167aa3971ddf32563f742a2d8
|
| 3 |
+
size 986
|
r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"metadataOutputVersion" : "3.0",
|
| 4 |
+
"userDefinedMetadata" : {
|
| 5 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 6 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
| 7 |
+
"com.anemll.context_length" : "1024",
|
| 8 |
+
"com.github.apple.coremltools.source" : "torch==2.8.0",
|
| 9 |
+
"com.anemll.lut_bits" : "8",
|
| 10 |
+
"com.anemll.num_chunks" : "2",
|
| 11 |
+
"com.anemll.batch_size" : "128",
|
| 12 |
+
"com.anemll.info" : "Converted with Anemll v0.1.1",
|
| 13 |
+
"com.anemll.chunk_no" : "2"
|
| 14 |
+
},
|
| 15 |
+
"availability" : {
|
| 16 |
+
"macOS" : "15.0",
|
| 17 |
+
"tvOS" : "18.0",
|
| 18 |
+
"visionOS" : "2.0",
|
| 19 |
+
"watchOS" : "11.0",
|
| 20 |
+
"iOS" : "18.0",
|
| 21 |
+
"macCatalyst" : "18.0"
|
| 22 |
+
},
|
| 23 |
+
"inputSchema" : [
|
| 24 |
+
{
|
| 25 |
+
"hasShapeFlexibility" : "0",
|
| 26 |
+
"isOptional" : "0",
|
| 27 |
+
"dataType" : "Float16",
|
| 28 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 29 |
+
"shortDescription" : "",
|
| 30 |
+
"shape" : "[1, 1, 2048]",
|
| 31 |
+
"name" : "hidden_states",
|
| 32 |
+
"type" : "MultiArray"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"hasShapeFlexibility" : "0",
|
| 36 |
+
"isOptional" : "0",
|
| 37 |
+
"dataType" : "Int32",
|
| 38 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 39 |
+
"shortDescription" : "",
|
| 40 |
+
"shape" : "[1]",
|
| 41 |
+
"name" : "position_ids",
|
| 42 |
+
"type" : "MultiArray"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"hasShapeFlexibility" : "0",
|
| 46 |
+
"isOptional" : "0",
|
| 47 |
+
"dataType" : "Float16",
|
| 48 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 1 × 1024)",
|
| 49 |
+
"shortDescription" : "",
|
| 50 |
+
"shape" : "[1, 1, 1, 1024]",
|
| 51 |
+
"name" : "causal_mask",
|
| 52 |
+
"type" : "MultiArray"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"hasShapeFlexibility" : "0",
|
| 56 |
+
"isOptional" : "0",
|
| 57 |
+
"dataType" : "Int32",
|
| 58 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 59 |
+
"shortDescription" : "",
|
| 60 |
+
"shape" : "[1]",
|
| 61 |
+
"name" : "current_pos",
|
| 62 |
+
"type" : "MultiArray"
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"outputSchema" : [
|
| 66 |
+
{
|
| 67 |
+
"hasShapeFlexibility" : "0",
|
| 68 |
+
"isOptional" : "0",
|
| 69 |
+
"dataType" : "Float16",
|
| 70 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 71 |
+
"shortDescription" : "",
|
| 72 |
+
"shape" : "[1, 1, 2048]",
|
| 73 |
+
"name" : "output_hidden_states",
|
| 74 |
+
"type" : "MultiArray"
|
| 75 |
+
}
|
| 76 |
+
],
|
| 77 |
+
"modelParameters" : [
|
| 78 |
+
|
| 79 |
+
],
|
| 80 |
+
"storagePrecision" : "Mixed (Float16, Palettized (15 bits), Palettized (16 bits), Palettized (18 bits), UInt8)",
|
| 81 |
+
"method" : "predict",
|
| 82 |
+
"functions" : [
|
| 83 |
+
{
|
| 84 |
+
"inputSchema" : [
|
| 85 |
+
{
|
| 86 |
+
"hasShapeFlexibility" : "0",
|
| 87 |
+
"isOptional" : "0",
|
| 88 |
+
"dataType" : "Float16",
|
| 89 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 90 |
+
"shortDescription" : "",
|
| 91 |
+
"shape" : "[1, 1, 2048]",
|
| 92 |
+
"name" : "hidden_states",
|
| 93 |
+
"type" : "MultiArray"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"hasShapeFlexibility" : "0",
|
| 97 |
+
"isOptional" : "0",
|
| 98 |
+
"dataType" : "Int32",
|
| 99 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 100 |
+
"shortDescription" : "",
|
| 101 |
+
"shape" : "[1]",
|
| 102 |
+
"name" : "position_ids",
|
| 103 |
+
"type" : "MultiArray"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"hasShapeFlexibility" : "0",
|
| 107 |
+
"isOptional" : "0",
|
| 108 |
+
"dataType" : "Float16",
|
| 109 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 1 × 1024)",
|
| 110 |
+
"shortDescription" : "",
|
| 111 |
+
"shape" : "[1, 1, 1, 1024]",
|
| 112 |
+
"name" : "causal_mask",
|
| 113 |
+
"type" : "MultiArray"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"hasShapeFlexibility" : "0",
|
| 117 |
+
"isOptional" : "0",
|
| 118 |
+
"dataType" : "Int32",
|
| 119 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 120 |
+
"shortDescription" : "",
|
| 121 |
+
"shape" : "[1]",
|
| 122 |
+
"name" : "current_pos",
|
| 123 |
+
"type" : "MultiArray"
|
| 124 |
+
}
|
| 125 |
+
],
|
| 126 |
+
"computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
|
| 127 |
+
"storagePrecision" : "Mixed (Float16, Palettized (15 bits), Palettized (16 bits), Palettized (18 bits), UInt8)",
|
| 128 |
+
"stateSchema" : [
|
| 129 |
+
{
|
| 130 |
+
"dataType" : "Float16",
|
| 131 |
+
"isOptional" : "0",
|
| 132 |
+
"formattedType" : "State (Float16 56 × 8 × 1024 × 128)",
|
| 133 |
+
"shortDescription" : "",
|
| 134 |
+
"shape" : "[56, 8, 1024, 128]",
|
| 135 |
+
"name" : "model_model_kv_cache_0",
|
| 136 |
+
"type" : "State"
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"outputSchema" : [
|
| 140 |
+
{
|
| 141 |
+
"hasShapeFlexibility" : "0",
|
| 142 |
+
"isOptional" : "0",
|
| 143 |
+
"dataType" : "Float16",
|
| 144 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 145 |
+
"shortDescription" : "",
|
| 146 |
+
"shape" : "[1, 1, 2048]",
|
| 147 |
+
"name" : "output_hidden_states",
|
| 148 |
+
"type" : "MultiArray"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"name" : "infer",
|
| 152 |
+
"mlProgramOperationTypeHistogram" : {
|
| 153 |
+
"Ios18.expandDims" : 56,
|
| 154 |
+
"Ios18.mul" : 226,
|
| 155 |
+
"Ios18.softmax" : 14,
|
| 156 |
+
"Ios18.matmul" : 28,
|
| 157 |
+
"Identity" : 1,
|
| 158 |
+
"Ios18.greaterEqual" : 2,
|
| 159 |
+
"Select" : 2,
|
| 160 |
+
"Ios18.readState" : 29,
|
| 161 |
+
"Tile" : 28,
|
| 162 |
+
"Ios18.gather" : 2,
|
| 163 |
+
"Ios18.add" : 73,
|
| 164 |
+
"Ios18.layerNorm" : 57,
|
| 165 |
+
"Ios18.sliceUpdate" : 28,
|
| 166 |
+
"Ios18.writeState" : 28,
|
| 167 |
+
"Ios18.reshape" : 86,
|
| 168 |
+
"Ios18.constexprLutToDense" : 98,
|
| 169 |
+
"Ios18.conv" : 98,
|
| 170 |
+
"Ios18.concat" : 141,
|
| 171 |
+
"Ios18.transpose" : 84,
|
| 172 |
+
"Ios18.cast" : 5,
|
| 173 |
+
"Ios18.silu" : 14,
|
| 174 |
+
"Ios18.sliceByIndex" : 141,
|
| 175 |
+
"Ios18.squeeze" : 42
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"inputSchema" : [
|
| 180 |
+
{
|
| 181 |
+
"hasShapeFlexibility" : "0",
|
| 182 |
+
"isOptional" : "0",
|
| 183 |
+
"dataType" : "Float16",
|
| 184 |
+
"formattedType" : "MultiArray (Float16 1 × 128 × 2048)",
|
| 185 |
+
"shortDescription" : "",
|
| 186 |
+
"shape" : "[1, 128, 2048]",
|
| 187 |
+
"name" : "hidden_states",
|
| 188 |
+
"type" : "MultiArray"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"hasShapeFlexibility" : "0",
|
| 192 |
+
"isOptional" : "0",
|
| 193 |
+
"dataType" : "Int32",
|
| 194 |
+
"formattedType" : "MultiArray (Int32 128)",
|
| 195 |
+
"shortDescription" : "",
|
| 196 |
+
"shape" : "[128]",
|
| 197 |
+
"name" : "position_ids",
|
| 198 |
+
"type" : "MultiArray"
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"hasShapeFlexibility" : "0",
|
| 202 |
+
"isOptional" : "0",
|
| 203 |
+
"dataType" : "Float16",
|
| 204 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 128 × 1024)",
|
| 205 |
+
"shortDescription" : "",
|
| 206 |
+
"shape" : "[1, 1, 128, 1024]",
|
| 207 |
+
"name" : "causal_mask",
|
| 208 |
+
"type" : "MultiArray"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"hasShapeFlexibility" : "0",
|
| 212 |
+
"isOptional" : "0",
|
| 213 |
+
"dataType" : "Int32",
|
| 214 |
+
"formattedType" : "MultiArray (Int32 1)",
|
| 215 |
+
"shortDescription" : "",
|
| 216 |
+
"shape" : "[1]",
|
| 217 |
+
"name" : "current_pos",
|
| 218 |
+
"type" : "MultiArray"
|
| 219 |
+
}
|
| 220 |
+
],
|
| 221 |
+
"computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
|
| 222 |
+
"storagePrecision" : "Mixed (Float16, Palettized (15 bits), Palettized (16 bits), Palettized (18 bits), UInt8)",
|
| 223 |
+
"stateSchema" : [
|
| 224 |
+
{
|
| 225 |
+
"dataType" : "Float16",
|
| 226 |
+
"isOptional" : "0",
|
| 227 |
+
"formattedType" : "State (Float16 56 × 8 × 1024 × 128)",
|
| 228 |
+
"shortDescription" : "",
|
| 229 |
+
"shape" : "[56, 8, 1024, 128]",
|
| 230 |
+
"name" : "model_model_kv_cache_0",
|
| 231 |
+
"type" : "State"
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"outputSchema" : [
|
| 235 |
+
{
|
| 236 |
+
"hasShapeFlexibility" : "0",
|
| 237 |
+
"isOptional" : "0",
|
| 238 |
+
"dataType" : "Float16",
|
| 239 |
+
"formattedType" : "MultiArray (Float16 1 × 128 × 2048)",
|
| 240 |
+
"shortDescription" : "",
|
| 241 |
+
"shape" : "[1, 128, 2048]",
|
| 242 |
+
"name" : "output_hidden_states",
|
| 243 |
+
"type" : "MultiArray"
|
| 244 |
+
}
|
| 245 |
+
],
|
| 246 |
+
"name" : "prefill",
|
| 247 |
+
"mlProgramOperationTypeHistogram" : {
|
| 248 |
+
"Ios18.expandDims" : 56,
|
| 249 |
+
"Ios18.mul" : 226,
|
| 250 |
+
"Ios18.softmax" : 14,
|
| 251 |
+
"Ios18.matmul" : 28,
|
| 252 |
+
"Ios18.greaterEqual" : 2,
|
| 253 |
+
"Select" : 2,
|
| 254 |
+
"Ios18.readState" : 29,
|
| 255 |
+
"Tile" : 28,
|
| 256 |
+
"Ios18.gather" : 2,
|
| 257 |
+
"Ios18.add" : 73,
|
| 258 |
+
"Ios18.layerNorm" : 57,
|
| 259 |
+
"Ios18.sliceUpdate" : 28,
|
| 260 |
+
"Ios18.writeState" : 28,
|
| 261 |
+
"Ios18.reshape" : 114,
|
| 262 |
+
"Ios18.constexprLutToDense" : 98,
|
| 263 |
+
"Ios18.conv" : 98,
|
| 264 |
+
"Ios18.concat" : 141,
|
| 265 |
+
"Ios18.transpose" : 128,
|
| 266 |
+
"Ios18.cast" : 5,
|
| 267 |
+
"Ios18.silu" : 14,
|
| 268 |
+
"Ios18.sliceByIndex" : 141,
|
| 269 |
+
"Ios18.squeeze" : 42
|
| 270 |
+
}
|
| 271 |
+
}
|
| 272 |
+
],
|
| 273 |
+
"version" : "0.1.1",
|
| 274 |
+
"isUpdatable" : "0",
|
| 275 |
+
"defaultFunctionName" : "infer",
|
| 276 |
+
"specificationVersion" : 9,
|
| 277 |
+
"stateSchema" : [
|
| 278 |
+
{
|
| 279 |
+
"dataType" : "Float16",
|
| 280 |
+
"isOptional" : "0",
|
| 281 |
+
"formattedType" : "State (Float16 56 × 8 × 1024 × 128)",
|
| 282 |
+
"shortDescription" : "",
|
| 283 |
+
"shape" : "[56, 8, 1024, 128]",
|
| 284 |
+
"name" : "model_model_kv_cache_0",
|
| 285 |
+
"type" : "State"
|
| 286 |
+
}
|
| 287 |
+
],
|
| 288 |
+
"computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
|
| 289 |
+
"mlProgramOperationTypeHistogram" : {
|
| 290 |
+
"Ios18.expandDims" : 56,
|
| 291 |
+
"Ios18.mul" : 226,
|
| 292 |
+
"Ios18.softmax" : 14,
|
| 293 |
+
"Ios18.matmul" : 28,
|
| 294 |
+
"Identity" : 1,
|
| 295 |
+
"Ios18.greaterEqual" : 2,
|
| 296 |
+
"Select" : 2,
|
| 297 |
+
"Ios18.readState" : 29,
|
| 298 |
+
"Tile" : 28,
|
| 299 |
+
"Ios18.gather" : 2,
|
| 300 |
+
"Ios18.add" : 73,
|
| 301 |
+
"Ios18.layerNorm" : 57,
|
| 302 |
+
"Ios18.sliceUpdate" : 28,
|
| 303 |
+
"Ios18.writeState" : 28,
|
| 304 |
+
"Ios18.reshape" : 86,
|
| 305 |
+
"Ios18.constexprLutToDense" : 98,
|
| 306 |
+
"Ios18.conv" : 98,
|
| 307 |
+
"Ios18.concat" : 141,
|
| 308 |
+
"Ios18.transpose" : 84,
|
| 309 |
+
"Ios18.cast" : 5,
|
| 310 |
+
"Ios18.silu" : 14,
|
| 311 |
+
"Ios18.sliceByIndex" : 141,
|
| 312 |
+
"Ios18.squeeze" : 42
|
| 313 |
+
},
|
| 314 |
+
"shortDescription" : "Anemll Model: Multifunction FFN+Prefill",
|
| 315 |
+
"generatedClassName" : "r2t2_FFN_PF_lut8_chunk_02of02",
|
| 316 |
+
"author" : "Converted with Anemll v0.1.1",
|
| 317 |
+
"modelType" : {
|
| 318 |
+
"name" : "MLModelType_mlProgram"
|
| 319 |
+
}
|
| 320 |
+
}
|
| 321 |
+
]
|
r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
r2t2_FFN_PF_lut8_chunk_02of02.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2132cc8f5338b94f1b568c3df1d821d8b99db829cab291c56d56f6baaa0b20b
|
| 3 |
+
size 724184064
|
r2t2_lm_head_lut8.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c98575b5a199847eb87ba56275e4b3f58bf6d3b28d9275b6b51334e27a7efbb
|
| 3 |
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"metadataOutputVersion" : "3.0",
|
| 4 |
+
"userDefinedMetadata" : {
|
| 5 |
+
"com.github.apple.coremltools.version" : "9.0",
|
| 6 |
+
"com.github.apple.coremltools.source" : "torch==2.8.0",
|
| 7 |
+
"com.anemll.context_length" : "1024",
|
| 8 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
| 9 |
+
"com.anemll.lm_head_chunk_sizes" : "9496,9496,9496,9496,9496,9496,9496,9496,9496,9496,9496,9496,9496,9496,9496,9496",
|
| 10 |
+
"com.anemll.vocab_size" : "151936",
|
| 11 |
+
"com.anemll.batch_size" : "128",
|
| 12 |
+
"com.anemll.info" : "Converted with Anemll v0.1.1",
|
| 13 |
+
"com.anemll.argmax_in_model" : "true",
|
| 14 |
+
"com.anemll.lut_bits" : "8"
|
| 15 |
+
},
|
| 16 |
+
"availability" : {
|
| 17 |
+
"macOS" : "15.0",
|
| 18 |
+
"tvOS" : "18.0",
|
| 19 |
+
"visionOS" : "2.0",
|
| 20 |
+
"watchOS" : "11.0",
|
| 21 |
+
"iOS" : "18.0",
|
| 22 |
+
"macCatalyst" : "18.0"
|
| 23 |
+
},
|
| 24 |
+
"inputSchema" : [
|
| 25 |
+
{
|
| 26 |
+
"hasShapeFlexibility" : "0",
|
| 27 |
+
"isOptional" : "0",
|
| 28 |
+
"dataType" : "Float16",
|
| 29 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 30 |
+
"shortDescription" : "",
|
| 31 |
+
"shape" : "[1, 1, 2048]",
|
| 32 |
+
"name" : "hidden_states",
|
| 33 |
+
"type" : "MultiArray"
|
| 34 |
+
}
|
| 35 |
+
],
|
| 36 |
+
"outputSchema" : [
|
| 37 |
+
{
|
| 38 |
+
"hasShapeFlexibility" : "0",
|
| 39 |
+
"isOptional" : "0",
|
| 40 |
+
"dataType" : "Float16",
|
| 41 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 42 |
+
"shortDescription" : "",
|
| 43 |
+
"shape" : "[1, 1, 9496]",
|
| 44 |
+
"name" : "logits1",
|
| 45 |
+
"type" : "MultiArray"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"hasShapeFlexibility" : "0",
|
| 49 |
+
"isOptional" : "0",
|
| 50 |
+
"dataType" : "Float16",
|
| 51 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 52 |
+
"shortDescription" : "",
|
| 53 |
+
"shape" : "[1, 1, 9496]",
|
| 54 |
+
"name" : "logits2",
|
| 55 |
+
"type" : "MultiArray"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"hasShapeFlexibility" : "0",
|
| 59 |
+
"isOptional" : "0",
|
| 60 |
+
"dataType" : "Float16",
|
| 61 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 62 |
+
"shortDescription" : "",
|
| 63 |
+
"shape" : "[1, 1, 9496]",
|
| 64 |
+
"name" : "logits3",
|
| 65 |
+
"type" : "MultiArray"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"hasShapeFlexibility" : "0",
|
| 69 |
+
"isOptional" : "0",
|
| 70 |
+
"dataType" : "Float16",
|
| 71 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 72 |
+
"shortDescription" : "",
|
| 73 |
+
"shape" : "[1, 1, 9496]",
|
| 74 |
+
"name" : "logits4",
|
| 75 |
+
"type" : "MultiArray"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"hasShapeFlexibility" : "0",
|
| 79 |
+
"isOptional" : "0",
|
| 80 |
+
"dataType" : "Float16",
|
| 81 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 82 |
+
"shortDescription" : "",
|
| 83 |
+
"shape" : "[1, 1, 9496]",
|
| 84 |
+
"name" : "logits5",
|
| 85 |
+
"type" : "MultiArray"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"hasShapeFlexibility" : "0",
|
| 89 |
+
"isOptional" : "0",
|
| 90 |
+
"dataType" : "Float16",
|
| 91 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 92 |
+
"shortDescription" : "",
|
| 93 |
+
"shape" : "[1, 1, 9496]",
|
| 94 |
+
"name" : "logits6",
|
| 95 |
+
"type" : "MultiArray"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"hasShapeFlexibility" : "0",
|
| 99 |
+
"isOptional" : "0",
|
| 100 |
+
"dataType" : "Float16",
|
| 101 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 102 |
+
"shortDescription" : "",
|
| 103 |
+
"shape" : "[1, 1, 9496]",
|
| 104 |
+
"name" : "logits7",
|
| 105 |
+
"type" : "MultiArray"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"hasShapeFlexibility" : "0",
|
| 109 |
+
"isOptional" : "0",
|
| 110 |
+
"dataType" : "Float16",
|
| 111 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 112 |
+
"shortDescription" : "",
|
| 113 |
+
"shape" : "[1, 1, 9496]",
|
| 114 |
+
"name" : "logits8",
|
| 115 |
+
"type" : "MultiArray"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"hasShapeFlexibility" : "0",
|
| 119 |
+
"isOptional" : "0",
|
| 120 |
+
"dataType" : "Float16",
|
| 121 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 122 |
+
"shortDescription" : "",
|
| 123 |
+
"shape" : "[1, 1, 9496]",
|
| 124 |
+
"name" : "logits9",
|
| 125 |
+
"type" : "MultiArray"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"hasShapeFlexibility" : "0",
|
| 129 |
+
"isOptional" : "0",
|
| 130 |
+
"dataType" : "Float16",
|
| 131 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 132 |
+
"shortDescription" : "",
|
| 133 |
+
"shape" : "[1, 1, 9496]",
|
| 134 |
+
"name" : "logits10",
|
| 135 |
+
"type" : "MultiArray"
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"hasShapeFlexibility" : "0",
|
| 139 |
+
"isOptional" : "0",
|
| 140 |
+
"dataType" : "Float16",
|
| 141 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 142 |
+
"shortDescription" : "",
|
| 143 |
+
"shape" : "[1, 1, 9496]",
|
| 144 |
+
"name" : "logits11",
|
| 145 |
+
"type" : "MultiArray"
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"hasShapeFlexibility" : "0",
|
| 149 |
+
"isOptional" : "0",
|
| 150 |
+
"dataType" : "Float16",
|
| 151 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 152 |
+
"shortDescription" : "",
|
| 153 |
+
"shape" : "[1, 1, 9496]",
|
| 154 |
+
"name" : "logits12",
|
| 155 |
+
"type" : "MultiArray"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"hasShapeFlexibility" : "0",
|
| 159 |
+
"isOptional" : "0",
|
| 160 |
+
"dataType" : "Float16",
|
| 161 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 162 |
+
"shortDescription" : "",
|
| 163 |
+
"shape" : "[1, 1, 9496]",
|
| 164 |
+
"name" : "logits13",
|
| 165 |
+
"type" : "MultiArray"
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"hasShapeFlexibility" : "0",
|
| 169 |
+
"isOptional" : "0",
|
| 170 |
+
"dataType" : "Float16",
|
| 171 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 172 |
+
"shortDescription" : "",
|
| 173 |
+
"shape" : "[1, 1, 9496]",
|
| 174 |
+
"name" : "logits14",
|
| 175 |
+
"type" : "MultiArray"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"hasShapeFlexibility" : "0",
|
| 179 |
+
"isOptional" : "0",
|
| 180 |
+
"dataType" : "Float16",
|
| 181 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 182 |
+
"shortDescription" : "",
|
| 183 |
+
"shape" : "[1, 1, 9496]",
|
| 184 |
+
"name" : "logits15",
|
| 185 |
+
"type" : "MultiArray"
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"hasShapeFlexibility" : "0",
|
| 189 |
+
"isOptional" : "0",
|
| 190 |
+
"dataType" : "Float16",
|
| 191 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 192 |
+
"shortDescription" : "",
|
| 193 |
+
"shape" : "[1, 1, 9496]",
|
| 194 |
+
"name" : "logits16",
|
| 195 |
+
"type" : "MultiArray"
|
| 196 |
+
}
|
| 197 |
+
],
|
| 198 |
+
"modelParameters" : [
|
| 199 |
+
|
| 200 |
+
],
|
| 201 |
+
"storagePrecision" : "Mixed (Float16, Palettized (19 bits), UInt8)",
|
| 202 |
+
"method" : "predict",
|
| 203 |
+
"functions" : [
|
| 204 |
+
{
|
| 205 |
+
"inputSchema" : [
|
| 206 |
+
{
|
| 207 |
+
"hasShapeFlexibility" : "0",
|
| 208 |
+
"isOptional" : "0",
|
| 209 |
+
"dataType" : "Float16",
|
| 210 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
|
| 211 |
+
"shortDescription" : "",
|
| 212 |
+
"shape" : "[1, 1, 2048]",
|
| 213 |
+
"name" : "hidden_states",
|
| 214 |
+
"type" : "MultiArray"
|
| 215 |
+
}
|
| 216 |
+
],
|
| 217 |
+
"computePrecision" : "Mixed (Float16, Int32)",
|
| 218 |
+
"storagePrecision" : "Mixed (Float16, Palettized (19 bits), UInt8)",
|
| 219 |
+
"stateSchema" : [
|
| 220 |
+
|
| 221 |
+
],
|
| 222 |
+
"outputSchema" : [
|
| 223 |
+
{
|
| 224 |
+
"hasShapeFlexibility" : "0",
|
| 225 |
+
"isOptional" : "0",
|
| 226 |
+
"dataType" : "Float16",
|
| 227 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 228 |
+
"shortDescription" : "",
|
| 229 |
+
"shape" : "[1, 1, 9496]",
|
| 230 |
+
"name" : "logits1",
|
| 231 |
+
"type" : "MultiArray"
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"hasShapeFlexibility" : "0",
|
| 235 |
+
"isOptional" : "0",
|
| 236 |
+
"dataType" : "Float16",
|
| 237 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 238 |
+
"shortDescription" : "",
|
| 239 |
+
"shape" : "[1, 1, 9496]",
|
| 240 |
+
"name" : "logits2",
|
| 241 |
+
"type" : "MultiArray"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"hasShapeFlexibility" : "0",
|
| 245 |
+
"isOptional" : "0",
|
| 246 |
+
"dataType" : "Float16",
|
| 247 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 248 |
+
"shortDescription" : "",
|
| 249 |
+
"shape" : "[1, 1, 9496]",
|
| 250 |
+
"name" : "logits3",
|
| 251 |
+
"type" : "MultiArray"
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"hasShapeFlexibility" : "0",
|
| 255 |
+
"isOptional" : "0",
|
| 256 |
+
"dataType" : "Float16",
|
| 257 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 258 |
+
"shortDescription" : "",
|
| 259 |
+
"shape" : "[1, 1, 9496]",
|
| 260 |
+
"name" : "logits4",
|
| 261 |
+
"type" : "MultiArray"
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"hasShapeFlexibility" : "0",
|
| 265 |
+
"isOptional" : "0",
|
| 266 |
+
"dataType" : "Float16",
|
| 267 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 268 |
+
"shortDescription" : "",
|
| 269 |
+
"shape" : "[1, 1, 9496]",
|
| 270 |
+
"name" : "logits5",
|
| 271 |
+
"type" : "MultiArray"
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"hasShapeFlexibility" : "0",
|
| 275 |
+
"isOptional" : "0",
|
| 276 |
+
"dataType" : "Float16",
|
| 277 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 278 |
+
"shortDescription" : "",
|
| 279 |
+
"shape" : "[1, 1, 9496]",
|
| 280 |
+
"name" : "logits6",
|
| 281 |
+
"type" : "MultiArray"
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"hasShapeFlexibility" : "0",
|
| 285 |
+
"isOptional" : "0",
|
| 286 |
+
"dataType" : "Float16",
|
| 287 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 288 |
+
"shortDescription" : "",
|
| 289 |
+
"shape" : "[1, 1, 9496]",
|
| 290 |
+
"name" : "logits7",
|
| 291 |
+
"type" : "MultiArray"
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"hasShapeFlexibility" : "0",
|
| 295 |
+
"isOptional" : "0",
|
| 296 |
+
"dataType" : "Float16",
|
| 297 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 298 |
+
"shortDescription" : "",
|
| 299 |
+
"shape" : "[1, 1, 9496]",
|
| 300 |
+
"name" : "logits8",
|
| 301 |
+
"type" : "MultiArray"
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"hasShapeFlexibility" : "0",
|
| 305 |
+
"isOptional" : "0",
|
| 306 |
+
"dataType" : "Float16",
|
| 307 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 308 |
+
"shortDescription" : "",
|
| 309 |
+
"shape" : "[1, 1, 9496]",
|
| 310 |
+
"name" : "logits9",
|
| 311 |
+
"type" : "MultiArray"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"hasShapeFlexibility" : "0",
|
| 315 |
+
"isOptional" : "0",
|
| 316 |
+
"dataType" : "Float16",
|
| 317 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 318 |
+
"shortDescription" : "",
|
| 319 |
+
"shape" : "[1, 1, 9496]",
|
| 320 |
+
"name" : "logits10",
|
| 321 |
+
"type" : "MultiArray"
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"hasShapeFlexibility" : "0",
|
| 325 |
+
"isOptional" : "0",
|
| 326 |
+
"dataType" : "Float16",
|
| 327 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 328 |
+
"shortDescription" : "",
|
| 329 |
+
"shape" : "[1, 1, 9496]",
|
| 330 |
+
"name" : "logits11",
|
| 331 |
+
"type" : "MultiArray"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"hasShapeFlexibility" : "0",
|
| 335 |
+
"isOptional" : "0",
|
| 336 |
+
"dataType" : "Float16",
|
| 337 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 338 |
+
"shortDescription" : "",
|
| 339 |
+
"shape" : "[1, 1, 9496]",
|
| 340 |
+
"name" : "logits12",
|
| 341 |
+
"type" : "MultiArray"
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"hasShapeFlexibility" : "0",
|
| 345 |
+
"isOptional" : "0",
|
| 346 |
+
"dataType" : "Float16",
|
| 347 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 348 |
+
"shortDescription" : "",
|
| 349 |
+
"shape" : "[1, 1, 9496]",
|
| 350 |
+
"name" : "logits13",
|
| 351 |
+
"type" : "MultiArray"
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"hasShapeFlexibility" : "0",
|
| 355 |
+
"isOptional" : "0",
|
| 356 |
+
"dataType" : "Float16",
|
| 357 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 358 |
+
"shortDescription" : "",
|
| 359 |
+
"shape" : "[1, 1, 9496]",
|
| 360 |
+
"name" : "logits14",
|
| 361 |
+
"type" : "MultiArray"
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"hasShapeFlexibility" : "0",
|
| 365 |
+
"isOptional" : "0",
|
| 366 |
+
"dataType" : "Float16",
|
| 367 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 368 |
+
"shortDescription" : "",
|
| 369 |
+
"shape" : "[1, 1, 9496]",
|
| 370 |
+
"name" : "logits15",
|
| 371 |
+
"type" : "MultiArray"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"hasShapeFlexibility" : "0",
|
| 375 |
+
"isOptional" : "0",
|
| 376 |
+
"dataType" : "Float16",
|
| 377 |
+
"formattedType" : "MultiArray (Float16 1 × 1 × 9496)",
|
| 378 |
+
"shortDescription" : "",
|
| 379 |
+
"shape" : "[1, 1, 9496]",
|
| 380 |
+
"name" : "logits16",
|
| 381 |
+
"type" : "MultiArray"
|
| 382 |
+
}
|
| 383 |
+
],
|
| 384 |
+
"name" : "infer",
|
| 385 |
+
"mlProgramOperationTypeHistogram" : {
|
| 386 |
+
"Ios18.transpose" : 17,
|
| 387 |
+
"Ios18.constexprLutToDense" : 16,
|
| 388 |
+
"Ios18.expandDims" : 1,
|
| 389 |
+
"Ios18.conv" : 16,
|
| 390 |
+
"Ios18.squeeze" : 16
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"inputSchema" : [
|
| 395 |
+
{
|
| 396 |
+
"hasShapeFlexibility" : "0",
|
| 397 |
+
"isOptional" : "0",
|
| 398 |
+
"dataType" : "Float16",
|
| 399 |
+
"formattedType" : "MultiArray (Float16 1 × 128 × 2048)",
|
| 400 |
+
"shortDescription" : "",
|
| 401 |
+
"shape" : "[1, 128, 2048]",
|
| 402 |
+
"name" : "hidden_states",
|
| 403 |
+
"type" : "MultiArray"
|
| 404 |
+
}
|
| 405 |
+
],
|
| 406 |
+
"computePrecision" : "Mixed (Float16, Int32)",
|
| 407 |
+
"storagePrecision" : "Mixed (Float16, Palettized (19 bits), UInt8)",
|
| 408 |
+
"stateSchema" : [
|
| 409 |
+
|
| 410 |
+
],
|
| 411 |
+
"outputSchema" : [
|
| 412 |
+
{
|
| 413 |
+
"hasShapeFlexibility" : "0",
|
| 414 |
+
"isOptional" : "0",
|
| 415 |
+
"dataType" : "Float16",
|
| 416 |
+
"formattedType" : "MultiArray (Float16 128 × 16)",
|
| 417 |
+
"shortDescription" : "",
|
| 418 |
+
"shape" : "[128, 16]",
|
| 419 |
+
"name" : "argmax_val",
|
| 420 |
+
"type" : "MultiArray"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"hasShapeFlexibility" : "0",
|
| 424 |
+
"isOptional" : "0",
|
| 425 |
+
"dataType" : "Float16",
|
| 426 |
+
"formattedType" : "MultiArray (Float16 128 × 16)",
|
| 427 |
+
"shortDescription" : "",
|
| 428 |
+
"shape" : "[128, 16]",
|
| 429 |
+
"name" : "argmax_hi",
|
| 430 |
+
"type" : "MultiArray"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"hasShapeFlexibility" : "0",
|
| 434 |
+
"isOptional" : "0",
|
| 435 |
+
"dataType" : "Float16",
|
| 436 |
+
"formattedType" : "MultiArray (Float16 128 × 16)",
|
| 437 |
+
"shortDescription" : "",
|
| 438 |
+
"shape" : "[128, 16]",
|
| 439 |
+
"name" : "argmax_lo",
|
| 440 |
+
"type" : "MultiArray"
|
| 441 |
+
}
|
| 442 |
+
],
|
| 443 |
+
"name" : "verify",
|
| 444 |
+
"mlProgramOperationTypeHistogram" : {
|
| 445 |
+
"Ios18.squeeze" : 19,
|
| 446 |
+
"Ios18.mul" : 96,
|
| 447 |
+
"Ios18.sub" : 96,
|
| 448 |
+
"Ios18.concat" : 3,
|
| 449 |
+
"Ios18.clip" : 64,
|
| 450 |
+
"Ios18.transpose" : 4,
|
| 451 |
+
"Ios18.abs" : 16,
|
| 452 |
+
"Ios18.constexprLutToDense" : 16,
|
| 453 |
+
"Ios18.expandDims" : 1,
|
| 454 |
+
"Ios16.reduceMax" : 48,
|
| 455 |
+
"Ios18.conv" : 16
|
| 456 |
+
}
|
| 457 |
+
}
|
| 458 |
+
],
|
| 459 |
+
"version" : "0.1.1",
|
| 460 |
+
"isUpdatable" : "0",
|
| 461 |
+
"defaultFunctionName" : "infer",
|
| 462 |
+
"specificationVersion" : 9,
|
| 463 |
+
"stateSchema" : [
|
| 464 |
+
|
| 465 |
+
],
|
| 466 |
+
"computePrecision" : "Mixed (Float16, Int32)",
|
| 467 |
+
"mlProgramOperationTypeHistogram" : {
|
| 468 |
+
"Ios18.transpose" : 17,
|
| 469 |
+
"Ios18.constexprLutToDense" : 16,
|
| 470 |
+
"Ios18.expandDims" : 1,
|
| 471 |
+
"Ios18.conv" : 16,
|
| 472 |
+
"Ios18.squeeze" : 16
|
| 473 |
+
},
|
| 474 |
+
"shortDescription" : "Anemll Model: Multifunction LM Head",
|
| 475 |
+
"generatedClassName" : "r2t2_lm_head_PV_lut8",
|
| 476 |
+
"author" : "Converted with Anemll v0.1.1",
|
| 477 |
+
"modelType" : {
|
| 478 |
+
"name" : "MLModelType_mlProgram"
|
| 479 |
+
}
|
| 480 |
+
}
|
| 481 |
+
]
|
r2t2_lm_head_lut8.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
r2t2_lm_head_lut8.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8dbed03e7ae581e50c84ec9ad6fbf112bfbbfcbefe7247a3753e1cb31565ebc0
|
| 3 |
+
size 320948144
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
+
},
|
| 213 |
+
"151669": {
|
| 214 |
+
"content": "<|audio_start|>",
|
| 215 |
+
"lstrip": false,
|
| 216 |
+
"normalized": false,
|
| 217 |
+
"rstrip": false,
|
| 218 |
+
"single_word": false,
|
| 219 |
+
"special": true
|
| 220 |
+
},
|
| 221 |
+
"151670": {
|
| 222 |
+
"content": "<|audio_end|>",
|
| 223 |
+
"lstrip": false,
|
| 224 |
+
"normalized": false,
|
| 225 |
+
"rstrip": false,
|
| 226 |
+
"single_word": false,
|
| 227 |
+
"special": true
|
| 228 |
+
},
|
| 229 |
+
"151671": {
|
| 230 |
+
"content": "<tts_pad>",
|
| 231 |
+
"lstrip": false,
|
| 232 |
+
"normalized": false,
|
| 233 |
+
"rstrip": false,
|
| 234 |
+
"single_word": false,
|
| 235 |
+
"special": true
|
| 236 |
+
},
|
| 237 |
+
"151672": {
|
| 238 |
+
"content": "<tts_text_bos>",
|
| 239 |
+
"lstrip": false,
|
| 240 |
+
"normalized": false,
|
| 241 |
+
"rstrip": false,
|
| 242 |
+
"single_word": false,
|
| 243 |
+
"special": true
|
| 244 |
+
},
|
| 245 |
+
"151673": {
|
| 246 |
+
"content": "<tts_text_eod>",
|
| 247 |
+
"lstrip": false,
|
| 248 |
+
"normalized": false,
|
| 249 |
+
"rstrip": false,
|
| 250 |
+
"single_word": false,
|
| 251 |
+
"special": true
|
| 252 |
+
},
|
| 253 |
+
"151674": {
|
| 254 |
+
"content": "<tts_text_bos_single>",
|
| 255 |
+
"lstrip": false,
|
| 256 |
+
"normalized": false,
|
| 257 |
+
"rstrip": false,
|
| 258 |
+
"single_word": false,
|
| 259 |
+
"special": true
|
| 260 |
+
},
|
| 261 |
+
"151675": {
|
| 262 |
+
"content": "<non_speech>",
|
| 263 |
+
"lstrip": false,
|
| 264 |
+
"normalized": false,
|
| 265 |
+
"rstrip": false,
|
| 266 |
+
"single_word": false,
|
| 267 |
+
"special": false
|
| 268 |
+
},
|
| 269 |
+
"151676": {
|
| 270 |
+
"content": "<|audio_pad|>",
|
| 271 |
+
"lstrip": false,
|
| 272 |
+
"normalized": false,
|
| 273 |
+
"rstrip": false,
|
| 274 |
+
"single_word": false,
|
| 275 |
+
"special": true
|
| 276 |
+
},
|
| 277 |
+
"151677": {
|
| 278 |
+
"content": "<blank1>",
|
| 279 |
+
"lstrip": false,
|
| 280 |
+
"normalized": false,
|
| 281 |
+
"rstrip": false,
|
| 282 |
+
"single_word": false,
|
| 283 |
+
"special": true
|
| 284 |
+
},
|
| 285 |
+
"151678": {
|
| 286 |
+
"content": "<blank2>",
|
| 287 |
+
"lstrip": false,
|
| 288 |
+
"normalized": false,
|
| 289 |
+
"rstrip": false,
|
| 290 |
+
"single_word": false,
|
| 291 |
+
"special": true
|
| 292 |
+
},
|
| 293 |
+
"151679": {
|
| 294 |
+
"content": "<blank3>",
|
| 295 |
+
"lstrip": false,
|
| 296 |
+
"normalized": false,
|
| 297 |
+
"rstrip": false,
|
| 298 |
+
"single_word": false,
|
| 299 |
+
"special": true
|
| 300 |
+
},
|
| 301 |
+
"151680": {
|
| 302 |
+
"content": "<blank4>",
|
| 303 |
+
"lstrip": false,
|
| 304 |
+
"normalized": false,
|
| 305 |
+
"rstrip": false,
|
| 306 |
+
"single_word": false,
|
| 307 |
+
"special": true
|
| 308 |
+
},
|
| 309 |
+
"151681": {
|
| 310 |
+
"content": "<blank5>",
|
| 311 |
+
"lstrip": false,
|
| 312 |
+
"normalized": false,
|
| 313 |
+
"rstrip": false,
|
| 314 |
+
"single_word": false,
|
| 315 |
+
"special": true
|
| 316 |
+
},
|
| 317 |
+
"151682": {
|
| 318 |
+
"content": "<blank6>",
|
| 319 |
+
"lstrip": false,
|
| 320 |
+
"normalized": false,
|
| 321 |
+
"rstrip": false,
|
| 322 |
+
"single_word": false,
|
| 323 |
+
"special": true
|
| 324 |
+
},
|
| 325 |
+
"151683": {
|
| 326 |
+
"content": "<blank7>",
|
| 327 |
+
"lstrip": false,
|
| 328 |
+
"normalized": false,
|
| 329 |
+
"rstrip": false,
|
| 330 |
+
"single_word": false,
|
| 331 |
+
"special": true
|
| 332 |
+
},
|
| 333 |
+
"151684": {
|
| 334 |
+
"content": "<blank8>",
|
| 335 |
+
"lstrip": false,
|
| 336 |
+
"normalized": false,
|
| 337 |
+
"rstrip": false,
|
| 338 |
+
"single_word": false,
|
| 339 |
+
"special": true
|
| 340 |
+
},
|
| 341 |
+
"151685": {
|
| 342 |
+
"content": "<blank9>",
|
| 343 |
+
"lstrip": false,
|
| 344 |
+
"normalized": false,
|
| 345 |
+
"rstrip": false,
|
| 346 |
+
"single_word": false,
|
| 347 |
+
"special": true
|
| 348 |
+
},
|
| 349 |
+
"151686": {
|
| 350 |
+
"content": "<blank10>",
|
| 351 |
+
"lstrip": false,
|
| 352 |
+
"normalized": false,
|
| 353 |
+
"rstrip": false,
|
| 354 |
+
"single_word": false,
|
| 355 |
+
"special": true
|
| 356 |
+
},
|
| 357 |
+
"151687": {
|
| 358 |
+
"content": "<blank11>",
|
| 359 |
+
"lstrip": false,
|
| 360 |
+
"normalized": false,
|
| 361 |
+
"rstrip": false,
|
| 362 |
+
"single_word": false,
|
| 363 |
+
"special": true
|
| 364 |
+
},
|
| 365 |
+
"151688": {
|
| 366 |
+
"content": "<blank12>",
|
| 367 |
+
"lstrip": false,
|
| 368 |
+
"normalized": false,
|
| 369 |
+
"rstrip": false,
|
| 370 |
+
"single_word": false,
|
| 371 |
+
"special": true
|
| 372 |
+
},
|
| 373 |
+
"151689": {
|
| 374 |
+
"content": "<blank13>",
|
| 375 |
+
"lstrip": false,
|
| 376 |
+
"normalized": false,
|
| 377 |
+
"rstrip": false,
|
| 378 |
+
"single_word": false,
|
| 379 |
+
"special": true
|
| 380 |
+
},
|
| 381 |
+
"151690": {
|
| 382 |
+
"content": "<blank14>",
|
| 383 |
+
"lstrip": false,
|
| 384 |
+
"normalized": false,
|
| 385 |
+
"rstrip": false,
|
| 386 |
+
"single_word": false,
|
| 387 |
+
"special": true
|
| 388 |
+
},
|
| 389 |
+
"151691": {
|
| 390 |
+
"content": "<blank15>",
|
| 391 |
+
"lstrip": false,
|
| 392 |
+
"normalized": false,
|
| 393 |
+
"rstrip": false,
|
| 394 |
+
"single_word": false,
|
| 395 |
+
"special": true
|
| 396 |
+
},
|
| 397 |
+
"151692": {
|
| 398 |
+
"content": "<blank16>",
|
| 399 |
+
"lstrip": false,
|
| 400 |
+
"normalized": false,
|
| 401 |
+
"rstrip": false,
|
| 402 |
+
"single_word": false,
|
| 403 |
+
"special": true
|
| 404 |
+
},
|
| 405 |
+
"151693": {
|
| 406 |
+
"content": "<blank17>",
|
| 407 |
+
"lstrip": false,
|
| 408 |
+
"normalized": false,
|
| 409 |
+
"rstrip": false,
|
| 410 |
+
"single_word": false,
|
| 411 |
+
"special": true
|
| 412 |
+
},
|
| 413 |
+
"151694": {
|
| 414 |
+
"content": "<blank18>",
|
| 415 |
+
"lstrip": false,
|
| 416 |
+
"normalized": false,
|
| 417 |
+
"rstrip": false,
|
| 418 |
+
"single_word": false,
|
| 419 |
+
"special": true
|
| 420 |
+
},
|
| 421 |
+
"151695": {
|
| 422 |
+
"content": "<blank19>",
|
| 423 |
+
"lstrip": false,
|
| 424 |
+
"normalized": false,
|
| 425 |
+
"rstrip": false,
|
| 426 |
+
"single_word": false,
|
| 427 |
+
"special": true
|
| 428 |
+
},
|
| 429 |
+
"151696": {
|
| 430 |
+
"content": "<blank20>",
|
| 431 |
+
"lstrip": false,
|
| 432 |
+
"normalized": false,
|
| 433 |
+
"rstrip": false,
|
| 434 |
+
"single_word": false,
|
| 435 |
+
"special": true
|
| 436 |
+
},
|
| 437 |
+
"151697": {
|
| 438 |
+
"content": "<blank21>",
|
| 439 |
+
"lstrip": false,
|
| 440 |
+
"normalized": false,
|
| 441 |
+
"rstrip": false,
|
| 442 |
+
"single_word": false,
|
| 443 |
+
"special": true
|
| 444 |
+
},
|
| 445 |
+
"151698": {
|
| 446 |
+
"content": "<blank22>",
|
| 447 |
+
"lstrip": false,
|
| 448 |
+
"normalized": false,
|
| 449 |
+
"rstrip": false,
|
| 450 |
+
"single_word": false,
|
| 451 |
+
"special": true
|
| 452 |
+
},
|
| 453 |
+
"151699": {
|
| 454 |
+
"content": "<blank23>",
|
| 455 |
+
"lstrip": false,
|
| 456 |
+
"normalized": false,
|
| 457 |
+
"rstrip": false,
|
| 458 |
+
"single_word": false,
|
| 459 |
+
"special": true
|
| 460 |
+
},
|
| 461 |
+
"151700": {
|
| 462 |
+
"content": "<blank24>",
|
| 463 |
+
"lstrip": false,
|
| 464 |
+
"normalized": false,
|
| 465 |
+
"rstrip": false,
|
| 466 |
+
"single_word": false,
|
| 467 |
+
"special": true
|
| 468 |
+
},
|
| 469 |
+
"151701": {
|
| 470 |
+
"content": "<blank25>",
|
| 471 |
+
"lstrip": false,
|
| 472 |
+
"normalized": false,
|
| 473 |
+
"rstrip": false,
|
| 474 |
+
"single_word": false,
|
| 475 |
+
"special": true
|
| 476 |
+
},
|
| 477 |
+
"151702": {
|
| 478 |
+
"content": "<blank26>",
|
| 479 |
+
"lstrip": false,
|
| 480 |
+
"normalized": false,
|
| 481 |
+
"rstrip": false,
|
| 482 |
+
"single_word": false,
|
| 483 |
+
"special": true
|
| 484 |
+
},
|
| 485 |
+
"151703": {
|
| 486 |
+
"content": "<blank27>",
|
| 487 |
+
"lstrip": false,
|
| 488 |
+
"normalized": false,
|
| 489 |
+
"rstrip": false,
|
| 490 |
+
"single_word": false,
|
| 491 |
+
"special": true
|
| 492 |
+
},
|
| 493 |
+
"151704": {
|
| 494 |
+
"content": "<asr_text>",
|
| 495 |
+
"lstrip": false,
|
| 496 |
+
"normalized": false,
|
| 497 |
+
"rstrip": false,
|
| 498 |
+
"single_word": false,
|
| 499 |
+
"special": false
|
| 500 |
+
}
|
| 501 |
+
},
|
| 502 |
+
"additional_special_tokens": [
|
| 503 |
+
"<|im_start|>",
|
| 504 |
+
"<|im_end|>",
|
| 505 |
+
"<|object_ref_start|>",
|
| 506 |
+
"<|object_ref_end|>",
|
| 507 |
+
"<|box_start|>",
|
| 508 |
+
"<|box_end|>",
|
| 509 |
+
"<|quad_start|>",
|
| 510 |
+
"<|quad_end|>",
|
| 511 |
+
"<|vision_start|>",
|
| 512 |
+
"<|vision_end|>",
|
| 513 |
+
"<|vision_pad|>",
|
| 514 |
+
"<|image_pad|>",
|
| 515 |
+
"<|video_pad|>",
|
| 516 |
+
"<|audio_start|>",
|
| 517 |
+
"<|audio_end|>",
|
| 518 |
+
"<tts_pad>",
|
| 519 |
+
"<tts_text_bos>",
|
| 520 |
+
"<tts_text_bos_single>",
|
| 521 |
+
"<|audio_pad|>"
|
| 522 |
+
],
|
| 523 |
+
"audio_bos_token": "<|audio_start|>",
|
| 524 |
+
"audio_eos_token": "<|audio_end|>",
|
| 525 |
+
"audio_token": "<|audio_pad|>",
|
| 526 |
+
"bos_token": null,
|
| 527 |
+
"clean_up_tokenization_spaces": false,
|
| 528 |
+
"eos_token": "<|im_end|>",
|
| 529 |
+
"errors": "replace",
|
| 530 |
+
"extra_special_tokens": {
|
| 531 |
+
"audio_bos_token": "<|audio_start|>",
|
| 532 |
+
"audio_eos_token": "<|audio_end|>",
|
| 533 |
+
"audio_token": "<|audio_pad|>",
|
| 534 |
+
"image_token": "<|image_pad|>",
|
| 535 |
+
"video_token": "<|video_pad|>",
|
| 536 |
+
"vision_bos_token": "<|vision_start|>",
|
| 537 |
+
"vision_eos_token": "<|vision_end|>"
|
| 538 |
+
},
|
| 539 |
+
"image_token": "<|image_pad|>",
|
| 540 |
+
"model_max_length": 131072,
|
| 541 |
+
"pad_token": "<|endoftext|>",
|
| 542 |
+
"processor_class": "Qwen3ASRProcessor",
|
| 543 |
+
"split_special_tokens": false,
|
| 544 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 545 |
+
"unk_token": null,
|
| 546 |
+
"video_token": "<|video_pad|>",
|
| 547 |
+
"vision_bos_token": "<|vision_start|>",
|
| 548 |
+
"vision_eos_token": "<|vision_end|>"
|
| 549 |
+
}
|