Commit ·
ff5f59d
0
Parent(s):
McBopomofoLM v2.1.1 Core ML models (SlothE-T 25M encoder, pred_q35_60m decoder)
Browse files- .gitattributes +35 -0
- LICENSE +202 -0
- NOTICE.txt +6 -0
- README.md +38 -0
- mlpackage/dec_mf_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- mlpackage/dec_mf_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- mlpackage/dec_mf_fp16.mlpackage/Manifest.json +18 -0
- mlpackage/enc25m_multi_pal2_emb.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- mlpackage/enc25m_multi_pal2_emb.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- mlpackage/enc25m_multi_pal2_emb.mlpackage/Manifest.json +18 -0
- runtime/MANIFEST.txt +8 -0
- runtime/NOTICE.txt +6 -0
- runtime/OpenCC-LICENSE.txt +177 -0
- runtime/char2id.tsv +0 -0
- runtime/dec60m.mlmodelc/analytics/coremldata.bin +3 -0
- runtime/dec60m.mlmodelc/coremldata.bin +3 -0
- runtime/dec60m.mlmodelc/metadata.json +331 -0
- runtime/dec60m.mlmodelc/model.mil +0 -0
- runtime/dec60m.mlmodelc/weights/weight.bin +3 -0
- runtime/dec_tokenizer.json +0 -0
- runtime/enc25m.mlmodelc/analytics/coremldata.bin +3 -0
- runtime/enc25m.mlmodelc/coremldata.bin +3 -0
- runtime/enc25m.mlmodelc/metadata.json +380 -0
- runtime/enc25m.mlmodelc/model.mil +0 -0
- runtime/enc25m.mlmodelc/weights/weight.bin +3 -0
- runtime/enc25m_embed_f16.bin +3 -0
- runtime/runtime-manifest.txt +19 -0
- runtime/syl2legal.bin +3 -0
- runtime/syl_vocab.tsv +1539 -0
- runtime/variants.tsv +80 -0
- scripts/dec/build_mf.py +37 -0
- scripts/dec/common.py +37 -0
- scripts/dec/convert.py +43 -0
- scripts/enc/build_coreml.py +163 -0
- scripts/enc/common.py +27 -0
- scripts/enc/extract_weights.py +63 -0
- scripts/enc/make_multifunction.py +15 -0
- scripts/enc/model_np.py +64 -0
- scripts/prep_resources_v2.py +111 -0
.gitattributes
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz 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
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
NOTICE.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
McBopomofoLM v2 bundles third-party parts (side-by-side build next to stock McBopomofo):
|
| 2 |
+
- SlothE-T 25M encoder (enc25m.mlmodelc, enc25m_embed_f16.bin; converted to Core ML from the published weights) and its syl_vocab / syl2legal tables: huggingface.co/Luigi/sloth-ime-models, Apache-2.0.
|
| 3 |
+
- SlothE decoder pred_q35_60m (dec60m.mlmodelc, dec_tokenizer.json; converted to Core ML from the published weights): huggingface.co/Luigi/sloth-ime-models, Apache-2.0.
|
| 4 |
+
- char2id table (char2id.tsv, converted from enc/char2id.json): huggingface.co/spaces/Luigi/slothing-web, Apache-2.0.
|
| 5 |
+
- Orthographic variant classes derived from OpenCC TWVariants.txt / HKVariants.txt, Apache-2.0 (OpenCC-LICENSE.txt).
|
| 6 |
+
v2 runs the models with Core ML on the Apple Neural Engine only. It contains no ggml, llama.cpp or libslothe code.
|
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- zh
|
| 5 |
+
tags:
|
| 6 |
+
- coreml
|
| 7 |
+
- apple-neural-engine
|
| 8 |
+
- input-method
|
| 9 |
+
- zhuyin
|
| 10 |
+
- bopomofo
|
| 11 |
+
base_model: Luigi/sloth-ime-models
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# McBopomofoLM models (Core ML, Apple Neural Engine)
|
| 15 |
+
|
| 16 |
+
Core ML conversions of the SlothE models used by
|
| 17 |
+
[McBopomofoLM](https://github.com/workfunction/McBopomofoLM) (branch `lm`), a fork of
|
| 18 |
+
McBopomofo that uses the models to improve candidate selection.
|
| 19 |
+
Both models run on the Apple Neural Engine only (`computeUnits = CPU_AND_NE`).
|
| 20 |
+
|
| 21 |
+
## Contents
|
| 22 |
+
|
| 23 |
+
| Path | What |
|
| 24 |
+
|---|---|
|
| 25 |
+
| `runtime/` | The exact runtime bundle shipped in McBopomofoLM v2.1.1 (`Contents/Resources/SlothE`): compiled `.mlmodelc`, embedding table, vocabularies, and `runtime-manifest.txt`. The app checks the size and SHA-256 of each file against the manifest before it loads that file. |
|
| 26 |
+
| `mlpackage/enc25m_multi_pal2_emb.mlpackage` | SlothE-T 25M encoder, 2-bit palettized. The ternary weights make this lossless. Multifunction package with functions L8/L16/L32/L64/L256. The embedding lookup runs in the caller, from `runtime/enc25m_embed_f16.bin`. |
|
| 27 |
+
| `mlpackage/dec_mf_fp16.mlpackage` | SlothE decoder `pred_q35_60m` (Qwen3.5 architecture), fp16. Multifunction package with functions t16/t32/t64/t96 at batch 3. Gated DeltaNet runs in fixed 16-token chunks. |
|
| 28 |
+
| `scripts/` | Conversion and bundling scripts, research-grade. They import helpers from the author's research workspace, which is not included, so they document the conversion and do not run on their own. `MCBPMF_LM_WORK` sets the workspace root. |
|
| 29 |
+
|
| 30 |
+
Measured on an M2 (ANE): encoder 100% of ops on the ANE, about 0.8 ms per call. Decoder 86–95% of ops on the ANE, 2.6–7.9 ms per call depending on length.
|
| 31 |
+
|
| 32 |
+
## Sources and licenses
|
| 33 |
+
|
| 34 |
+
- Weights: [Luigi/sloth-ime-models](https://huggingface.co/Luigi/sloth-ime-models), Apache-2.0.
|
| 35 |
+
- `char2id.tsv`: converted from `enc/char2id.json` in
|
| 36 |
+
[Luigi/slothing-web](https://huggingface.co/spaces/Luigi/slothing-web), Apache-2.0.
|
| 37 |
+
- Variant classes: derived from OpenCC `TWVariants.txt` and `HKVariants.txt`, Apache-2.0.
|
| 38 |
+
- Conversion: Apache-2.0 (`LICENSE`). See `NOTICE.txt`.
|
mlpackage/dec_mf_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:542f7fc61890b0f6bcc028885f555adcafe4f530a497887ff3f34670ce6f70d9
|
| 3 |
+
size 2044354
|
mlpackage/dec_mf_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b28b6b08fde8f65866cfcf2e85d642bd96c3dd85ea8e8989999e6955c10bb7dc
|
| 3 |
+
size 119700544
|
mlpackage/dec_mf_fp16.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"6C703B86-AD83-400E-ACEA-8134FBA4D4AB": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Weights",
|
| 7 |
+
"name": "weights",
|
| 8 |
+
"path": "com.apple.CoreML/weights"
|
| 9 |
+
},
|
| 10 |
+
"8B383AB4-0DCB-4C46-AEB1-F0C29DADE0A3": {
|
| 11 |
+
"author": "com.apple.CoreML",
|
| 12 |
+
"description": "CoreML Model Specification",
|
| 13 |
+
"name": "model.mlmodel",
|
| 14 |
+
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"rootModelIdentifier": "8B383AB4-0DCB-4C46-AEB1-F0C29DADE0A3"
|
| 18 |
+
}
|
mlpackage/enc25m_multi_pal2_emb.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:639a33160ad72189dd665fa40c85722ee601630d6dc7d9ba37c34a389e24e153
|
| 3 |
+
size 2021060
|
mlpackage/enc25m_multi_pal2_emb.mlpackage/Data/com.apple.CoreML/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d5722a18782f13023d87cc565afc8c146d257ef913cb6d87296ad6c11731432
|
| 3 |
+
size 16112768
|
mlpackage/enc25m_multi_pal2_emb.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"5F467DB4-A8A8-4276-82C3-B02D7AA0B9BB": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Weights",
|
| 7 |
+
"name": "weights",
|
| 8 |
+
"path": "com.apple.CoreML/weights"
|
| 9 |
+
},
|
| 10 |
+
"8C9F0170-94B3-435C-88D8-EB4445B53797": {
|
| 11 |
+
"author": "com.apple.CoreML",
|
| 12 |
+
"description": "CoreML Model Specification",
|
| 13 |
+
"name": "model.mlmodel",
|
| 14 |
+
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"rootModelIdentifier": "8C9F0170-94B3-435C-88D8-EB4445B53797"
|
| 18 |
+
}
|
runtime/MANIFEST.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SlothE runtime files for McBopomofoLM v2 (Core ML, ANE only)
|
| 2 |
+
encoder source: ane/enc/models/enc25m_multi_pal2_emb.mlpackage tree sha256 1ebd9c64baf81bd94456ce37e70f27063ad027826d7232239d5f7dd0970046d5
|
| 3 |
+
decoder source: ane/dec/mf/dec_mf_fp16.mlpackage tree sha256 e24bee80220971085d4fef50f416455c97d56f01d3eeffef8651a69901ff20fc
|
| 4 |
+
embedding: ane/enc/work/embed_f16_25m.bin sha256 b23e59ecd93a0b6c95ac3e93d83e7cb77657adaa365a0d8f7dab31ccafc89583
|
| 5 |
+
tokenizer: HF pred_q35_60m/tokenizer.json sha256 3f81807dc89667acebf50f878df8c64bed8254c926a25a182a3e1e80ec8b4bfc
|
| 6 |
+
compiled with: xcrun coremlcompiler compile
|
| 7 |
+
config A' (walk2/frozen_final2.json): 25M, beta 0.3, gamma 0, pen -15, variant guard; decoder lambda 2, tau 0.5, top-3
|
| 8 |
+
|
runtime/NOTICE.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
McBopomofoLM v2 bundles third-party parts (side-by-side build next to stock McBopomofo):
|
| 2 |
+
- SlothE-T 25M encoder (enc25m.mlmodelc, enc25m_embed_f16.bin; converted to Core ML from the published weights) and its syl_vocab / syl2legal tables: huggingface.co/Luigi/sloth-ime-models, Apache-2.0.
|
| 3 |
+
- SlothE decoder pred_q35_60m (dec60m.mlmodelc, dec_tokenizer.json; converted to Core ML from the published weights): huggingface.co/Luigi/sloth-ime-models, Apache-2.0.
|
| 4 |
+
- char2id table (char2id.tsv, converted from enc/char2id.json): huggingface.co/spaces/Luigi/slothing-web, Apache-2.0.
|
| 5 |
+
- Orthographic variant classes derived from OpenCC TWVariants.txt / HKVariants.txt, Apache-2.0 (OpenCC-LICENSE.txt).
|
| 6 |
+
v2 runs the models with Core ML on the Apple Neural Engine only. It contains no ggml, llama.cpp or libslothe code.
|
runtime/OpenCC-LICENSE.txt
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
runtime/char2id.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
runtime/dec60m.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9e184839d9697bc6b9bb8110a38d7db53e107f7c8d840e5d297fc62491ea18c
|
| 3 |
+
size 243
|
runtime/dec60m.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb1832af7c02b3368325dd298f4fb6f782b9f66cc365c30b6081e95be9883b1a
|
| 3 |
+
size 336
|
runtime/dec60m.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,331 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"metadataOutputVersion" : "3.0",
|
| 4 |
+
"storagePrecision" : "Float16",
|
| 5 |
+
"outputSchema" : [
|
| 6 |
+
{
|
| 7 |
+
"hasShapeFlexibility" : "0",
|
| 8 |
+
"isOptional" : "0",
|
| 9 |
+
"dataType" : "Float32",
|
| 10 |
+
"formattedType" : "MultiArray (Float32 3 × 15)",
|
| 11 |
+
"shortDescription" : "",
|
| 12 |
+
"shape" : "[3, 15]",
|
| 13 |
+
"name" : "lp",
|
| 14 |
+
"type" : "MultiArray"
|
| 15 |
+
}
|
| 16 |
+
],
|
| 17 |
+
"modelParameters" : [
|
| 18 |
+
|
| 19 |
+
],
|
| 20 |
+
"specificationVersion" : 9,
|
| 21 |
+
"functions" : [
|
| 22 |
+
{
|
| 23 |
+
"inputSchema" : [
|
| 24 |
+
{
|
| 25 |
+
"hasShapeFlexibility" : "0",
|
| 26 |
+
"isOptional" : "0",
|
| 27 |
+
"dataType" : "Int32",
|
| 28 |
+
"formattedType" : "MultiArray (Int32 3 × 16)",
|
| 29 |
+
"shortDescription" : "",
|
| 30 |
+
"shape" : "[3, 16]",
|
| 31 |
+
"name" : "ids",
|
| 32 |
+
"type" : "MultiArray"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"computePrecision" : "Mixed (Float16, Float32, Int16, Int32, UInt16)",
|
| 36 |
+
"storagePrecision" : "Float16",
|
| 37 |
+
"stateSchema" : [
|
| 38 |
+
|
| 39 |
+
],
|
| 40 |
+
"outputSchema" : [
|
| 41 |
+
{
|
| 42 |
+
"hasShapeFlexibility" : "0",
|
| 43 |
+
"isOptional" : "0",
|
| 44 |
+
"dataType" : "Float32",
|
| 45 |
+
"formattedType" : "MultiArray (Float32 3 × 15)",
|
| 46 |
+
"shortDescription" : "",
|
| 47 |
+
"shape" : "[3, 15]",
|
| 48 |
+
"name" : "lp",
|
| 49 |
+
"type" : "MultiArray"
|
| 50 |
+
}
|
| 51 |
+
],
|
| 52 |
+
"name" : "t16",
|
| 53 |
+
"mlProgramOperationTypeHistogram" : {
|
| 54 |
+
"Ios18.expandDims" : 22,
|
| 55 |
+
"Ios18.mul" : 250,
|
| 56 |
+
"Ios18.softmax" : 2,
|
| 57 |
+
"Ios18.rsqrt" : 39,
|
| 58 |
+
"Ios18.matmul" : 76,
|
| 59 |
+
"Ios16.reduceMean" : 39,
|
| 60 |
+
"Ios18.exp" : 13,
|
| 61 |
+
"Ios18.sigmoid" : 8,
|
| 62 |
+
"Ios18.greaterEqual" : 1,
|
| 63 |
+
"Select" : 1,
|
| 64 |
+
"Ios16.reduceMax" : 1,
|
| 65 |
+
"Tile" : 16,
|
| 66 |
+
"Ios18.gather" : 2,
|
| 67 |
+
"Ios18.add" : 123,
|
| 68 |
+
"Ios16.reduceSum" : 2,
|
| 69 |
+
"Ios18.reshape" : 68,
|
| 70 |
+
"Ios18.linear" : 39,
|
| 71 |
+
"Ios18.relu" : 6,
|
| 72 |
+
"Ios18.concat" : 14,
|
| 73 |
+
"Ios18.silu" : 20,
|
| 74 |
+
"Ios18.pow" : 21,
|
| 75 |
+
"Ios18.cast" : 5,
|
| 76 |
+
"Ios18.transpose" : 44,
|
| 77 |
+
"Ios18.abs" : 6,
|
| 78 |
+
"Ios18.log" : 7,
|
| 79 |
+
"Ios18.sub" : 2,
|
| 80 |
+
"Ios18.sliceByIndex" : 111
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"inputSchema" : [
|
| 85 |
+
{
|
| 86 |
+
"hasShapeFlexibility" : "0",
|
| 87 |
+
"isOptional" : "0",
|
| 88 |
+
"dataType" : "Int32",
|
| 89 |
+
"formattedType" : "MultiArray (Int32 3 × 32)",
|
| 90 |
+
"shortDescription" : "",
|
| 91 |
+
"shape" : "[3, 32]",
|
| 92 |
+
"name" : "ids",
|
| 93 |
+
"type" : "MultiArray"
|
| 94 |
+
}
|
| 95 |
+
],
|
| 96 |
+
"computePrecision" : "Mixed (Float16, Float32, Int16, Int32, UInt16)",
|
| 97 |
+
"storagePrecision" : "Float16",
|
| 98 |
+
"stateSchema" : [
|
| 99 |
+
|
| 100 |
+
],
|
| 101 |
+
"outputSchema" : [
|
| 102 |
+
{
|
| 103 |
+
"hasShapeFlexibility" : "0",
|
| 104 |
+
"isOptional" : "0",
|
| 105 |
+
"dataType" : "Float32",
|
| 106 |
+
"formattedType" : "MultiArray (Float32 3 × 31)",
|
| 107 |
+
"shortDescription" : "",
|
| 108 |
+
"shape" : "[3, 31]",
|
| 109 |
+
"name" : "lp",
|
| 110 |
+
"type" : "MultiArray"
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"name" : "t32",
|
| 114 |
+
"mlProgramOperationTypeHistogram" : {
|
| 115 |
+
"Ios18.expandDims" : 34,
|
| 116 |
+
"Ios18.mul" : 310,
|
| 117 |
+
"Ios18.softmax" : 2,
|
| 118 |
+
"Ios18.rsqrt" : 39,
|
| 119 |
+
"Ios18.matmul" : 172,
|
| 120 |
+
"Ios16.reduceMean" : 39,
|
| 121 |
+
"Ios18.exp" : 31,
|
| 122 |
+
"Ios18.sigmoid" : 8,
|
| 123 |
+
"Ios18.greaterEqual" : 1,
|
| 124 |
+
"Select" : 1,
|
| 125 |
+
"Ios16.reduceMax" : 1,
|
| 126 |
+
"Tile" : 16,
|
| 127 |
+
"Ios18.gather" : 2,
|
| 128 |
+
"Ios18.add" : 153,
|
| 129 |
+
"Ios16.reduceSum" : 2,
|
| 130 |
+
"Ios18.reshape" : 80,
|
| 131 |
+
"Ios18.linear" : 57,
|
| 132 |
+
"Ios18.relu" : 6,
|
| 133 |
+
"Ios18.concat" : 20,
|
| 134 |
+
"Ios18.silu" : 20,
|
| 135 |
+
"Ios18.pow" : 21,
|
| 136 |
+
"Ios18.cast" : 5,
|
| 137 |
+
"Ios18.transpose" : 44,
|
| 138 |
+
"Ios18.abs" : 6,
|
| 139 |
+
"Ios18.log" : 7,
|
| 140 |
+
"Ios18.sub" : 8,
|
| 141 |
+
"Ios18.sliceByIndex" : 171
|
| 142 |
+
}
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"inputSchema" : [
|
| 146 |
+
{
|
| 147 |
+
"hasShapeFlexibility" : "0",
|
| 148 |
+
"isOptional" : "0",
|
| 149 |
+
"dataType" : "Int32",
|
| 150 |
+
"formattedType" : "MultiArray (Int32 3 × 64)",
|
| 151 |
+
"shortDescription" : "",
|
| 152 |
+
"shape" : "[3, 64]",
|
| 153 |
+
"name" : "ids",
|
| 154 |
+
"type" : "MultiArray"
|
| 155 |
+
}
|
| 156 |
+
],
|
| 157 |
+
"computePrecision" : "Mixed (Float16, Float32, Int16, Int32, UInt16)",
|
| 158 |
+
"storagePrecision" : "Float16",
|
| 159 |
+
"stateSchema" : [
|
| 160 |
+
|
| 161 |
+
],
|
| 162 |
+
"outputSchema" : [
|
| 163 |
+
{
|
| 164 |
+
"hasShapeFlexibility" : "0",
|
| 165 |
+
"isOptional" : "0",
|
| 166 |
+
"dataType" : "Float32",
|
| 167 |
+
"formattedType" : "MultiArray (Float32 3 × 63)",
|
| 168 |
+
"shortDescription" : "",
|
| 169 |
+
"shape" : "[3, 63]",
|
| 170 |
+
"name" : "lp",
|
| 171 |
+
"type" : "MultiArray"
|
| 172 |
+
}
|
| 173 |
+
],
|
| 174 |
+
"name" : "t64",
|
| 175 |
+
"mlProgramOperationTypeHistogram" : {
|
| 176 |
+
"Ios18.expandDims" : 70,
|
| 177 |
+
"Ios18.mul" : 442,
|
| 178 |
+
"Ios18.softmax" : 2,
|
| 179 |
+
"Ios18.rsqrt" : 39,
|
| 180 |
+
"Ios18.matmul" : 364,
|
| 181 |
+
"Ios16.reduceMean" : 39,
|
| 182 |
+
"Ios18.exp" : 79,
|
| 183 |
+
"Ios18.sigmoid" : 8,
|
| 184 |
+
"Ios18.greaterEqual" : 1,
|
| 185 |
+
"Select" : 1,
|
| 186 |
+
"Ios16.reduceMax" : 1,
|
| 187 |
+
"Tile" : 16,
|
| 188 |
+
"Ios18.gather" : 2,
|
| 189 |
+
"Ios18.add" : 225,
|
| 190 |
+
"Ios16.reduceSum" : 2,
|
| 191 |
+
"Ios18.reshape" : 104,
|
| 192 |
+
"Ios18.linear" : 105,
|
| 193 |
+
"Ios18.relu" : 6,
|
| 194 |
+
"Ios18.concat" : 20,
|
| 195 |
+
"Ios18.silu" : 20,
|
| 196 |
+
"Ios18.pow" : 21,
|
| 197 |
+
"Ios18.cast" : 5,
|
| 198 |
+
"Ios18.transpose" : 44,
|
| 199 |
+
"Ios18.abs" : 6,
|
| 200 |
+
"Ios18.log" : 7,
|
| 201 |
+
"Ios18.sub" : 20,
|
| 202 |
+
"Ios18.sliceByIndex" : 231
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"inputSchema" : [
|
| 207 |
+
{
|
| 208 |
+
"hasShapeFlexibility" : "0",
|
| 209 |
+
"isOptional" : "0",
|
| 210 |
+
"dataType" : "Int32",
|
| 211 |
+
"formattedType" : "MultiArray (Int32 3 × 96)",
|
| 212 |
+
"shortDescription" : "",
|
| 213 |
+
"shape" : "[3, 96]",
|
| 214 |
+
"name" : "ids",
|
| 215 |
+
"type" : "MultiArray"
|
| 216 |
+
}
|
| 217 |
+
],
|
| 218 |
+
"computePrecision" : "Mixed (Float16, Float32, Int16, Int32, UInt16)",
|
| 219 |
+
"storagePrecision" : "Float16",
|
| 220 |
+
"stateSchema" : [
|
| 221 |
+
|
| 222 |
+
],
|
| 223 |
+
"outputSchema" : [
|
| 224 |
+
{
|
| 225 |
+
"hasShapeFlexibility" : "0",
|
| 226 |
+
"isOptional" : "0",
|
| 227 |
+
"dataType" : "Float32",
|
| 228 |
+
"formattedType" : "MultiArray (Float32 3 × 95)",
|
| 229 |
+
"shortDescription" : "",
|
| 230 |
+
"shape" : "[3, 95]",
|
| 231 |
+
"name" : "lp",
|
| 232 |
+
"type" : "MultiArray"
|
| 233 |
+
}
|
| 234 |
+
],
|
| 235 |
+
"name" : "t96",
|
| 236 |
+
"mlProgramOperationTypeHistogram" : {
|
| 237 |
+
"Ios18.expandDims" : 106,
|
| 238 |
+
"Ios18.mul" : 574,
|
| 239 |
+
"Ios18.softmax" : 2,
|
| 240 |
+
"Ios18.rsqrt" : 39,
|
| 241 |
+
"Ios18.matmul" : 556,
|
| 242 |
+
"Ios16.reduceMean" : 39,
|
| 243 |
+
"Ios18.exp" : 127,
|
| 244 |
+
"Ios18.sigmoid" : 8,
|
| 245 |
+
"Ios18.greaterEqual" : 1,
|
| 246 |
+
"Select" : 1,
|
| 247 |
+
"Ios16.reduceMax" : 1,
|
| 248 |
+
"Tile" : 16,
|
| 249 |
+
"Ios18.gather" : 2,
|
| 250 |
+
"Ios18.add" : 297,
|
| 251 |
+
"Ios16.reduceSum" : 2,
|
| 252 |
+
"Ios18.reshape" : 128,
|
| 253 |
+
"Ios18.linear" : 153,
|
| 254 |
+
"Ios18.relu" : 6,
|
| 255 |
+
"Ios18.concat" : 20,
|
| 256 |
+
"Ios18.silu" : 20,
|
| 257 |
+
"Ios18.pow" : 21,
|
| 258 |
+
"Ios18.cast" : 5,
|
| 259 |
+
"Ios18.transpose" : 44,
|
| 260 |
+
"Ios18.abs" : 6,
|
| 261 |
+
"Ios18.log" : 7,
|
| 262 |
+
"Ios18.sub" : 32,
|
| 263 |
+
"Ios18.sliceByIndex" : 291
|
| 264 |
+
}
|
| 265 |
+
}
|
| 266 |
+
],
|
| 267 |
+
"mlProgramOperationTypeHistogram" : {
|
| 268 |
+
"Ios18.expandDims" : 22,
|
| 269 |
+
"Ios18.mul" : 250,
|
| 270 |
+
"Ios18.softmax" : 2,
|
| 271 |
+
"Ios18.rsqrt" : 39,
|
| 272 |
+
"Ios18.matmul" : 76,
|
| 273 |
+
"Ios16.reduceMean" : 39,
|
| 274 |
+
"Ios18.exp" : 13,
|
| 275 |
+
"Ios18.sigmoid" : 8,
|
| 276 |
+
"Ios18.greaterEqual" : 1,
|
| 277 |
+
"Select" : 1,
|
| 278 |
+
"Ios16.reduceMax" : 1,
|
| 279 |
+
"Tile" : 16,
|
| 280 |
+
"Ios18.gather" : 2,
|
| 281 |
+
"Ios18.add" : 123,
|
| 282 |
+
"Ios16.reduceSum" : 2,
|
| 283 |
+
"Ios18.reshape" : 68,
|
| 284 |
+
"Ios18.linear" : 39,
|
| 285 |
+
"Ios18.relu" : 6,
|
| 286 |
+
"Ios18.concat" : 14,
|
| 287 |
+
"Ios18.silu" : 20,
|
| 288 |
+
"Ios18.pow" : 21,
|
| 289 |
+
"Ios18.cast" : 5,
|
| 290 |
+
"Ios18.transpose" : 44,
|
| 291 |
+
"Ios18.abs" : 6,
|
| 292 |
+
"Ios18.log" : 7,
|
| 293 |
+
"Ios18.sub" : 2,
|
| 294 |
+
"Ios18.sliceByIndex" : 111
|
| 295 |
+
},
|
| 296 |
+
"isUpdatable" : "0",
|
| 297 |
+
"stateSchema" : [
|
| 298 |
+
|
| 299 |
+
],
|
| 300 |
+
"availability" : {
|
| 301 |
+
"macOS" : "15.0",
|
| 302 |
+
"tvOS" : "18.0",
|
| 303 |
+
"visionOS" : "2.0",
|
| 304 |
+
"watchOS" : "11.0",
|
| 305 |
+
"iOS" : "18.0",
|
| 306 |
+
"macCatalyst" : "18.0"
|
| 307 |
+
},
|
| 308 |
+
"computePrecision" : "Mixed (Float16, Float32, Int16, Int32, UInt16)",
|
| 309 |
+
"modelType" : {
|
| 310 |
+
"name" : "MLModelType_mlProgram"
|
| 311 |
+
},
|
| 312 |
+
"inputSchema" : [
|
| 313 |
+
{
|
| 314 |
+
"hasShapeFlexibility" : "0",
|
| 315 |
+
"isOptional" : "0",
|
| 316 |
+
"dataType" : "Int32",
|
| 317 |
+
"formattedType" : "MultiArray (Int32 3 × 16)",
|
| 318 |
+
"shortDescription" : "",
|
| 319 |
+
"shape" : "[3, 16]",
|
| 320 |
+
"name" : "ids",
|
| 321 |
+
"type" : "MultiArray"
|
| 322 |
+
}
|
| 323 |
+
],
|
| 324 |
+
"defaultFunctionName" : "t16",
|
| 325 |
+
"generatedClassName" : "dec60m",
|
| 326 |
+
"userDefinedMetadata" : {
|
| 327 |
+
|
| 328 |
+
},
|
| 329 |
+
"method" : "predict"
|
| 330 |
+
}
|
| 331 |
+
]
|
runtime/dec60m.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
runtime/dec60m.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b28b6b08fde8f65866cfcf2e85d642bd96c3dd85ea8e8989999e6955c10bb7dc
|
| 3 |
+
size 119700544
|
runtime/dec_tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
runtime/enc25m.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3a4791a3fda6d7f0f7a4c322691c960cfe928f951d224e14e60748917ef6486
|
| 3 |
+
size 243
|
runtime/enc25m.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5b297a9d490bba32eacdf888e4d5dd45114f07131425f82569508164e3eb3b0
|
| 3 |
+
size 540
|
runtime/enc25m.mlmodelc/metadata.json
AD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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"metadataOutputVersion" : "3.0",
|
| 4 |
+
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
|
| 5 |
+
"outputSchema" : [
|
| 6 |
+
{
|
| 7 |
+
"hasShapeFlexibility" : "0",
|
| 8 |
+
"isOptional" : "0",
|
| 9 |
+
"dataType" : "Float16",
|
| 10 |
+
"formattedType" : "MultiArray (Float16 1 × 16 × 8342)",
|
| 11 |
+
"shortDescription" : "",
|
| 12 |
+
"shape" : "[1, 16, 8342]",
|
| 13 |
+
"name" : "logits",
|
| 14 |
+
"type" : "MultiArray"
|
| 15 |
+
}
|
| 16 |
+
],
|
| 17 |
+
"modelParameters" : [
|
| 18 |
+
|
| 19 |
+
],
|
| 20 |
+
"specificationVersion" : 9,
|
| 21 |
+
"functions" : [
|
| 22 |
+
{
|
| 23 |
+
"inputSchema" : [
|
| 24 |
+
{
|
| 25 |
+
"hasShapeFlexibility" : "0",
|
| 26 |
+
"isOptional" : "0",
|
| 27 |
+
"dataType" : "Float16",
|
| 28 |
+
"formattedType" : "MultiArray (Float16 1 × 8 × 352)",
|
| 29 |
+
"shortDescription" : "",
|
| 30 |
+
"shape" : "[1, 8, 352]",
|
| 31 |
+
"name" : "ids",
|
| 32 |
+
"type" : "MultiArray"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"hasShapeFlexibility" : "0",
|
| 36 |
+
"isOptional" : "0",
|
| 37 |
+
"dataType" : "Float16",
|
| 38 |
+
"formattedType" : "MultiArray (Float16 1 × 8)",
|
| 39 |
+
"shortDescription" : "",
|
| 40 |
+
"shape" : "[1, 8]",
|
| 41 |
+
"name" : "mask",
|
| 42 |
+
"type" : "MultiArray"
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 46 |
+
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
|
| 47 |
+
"stateSchema" : [
|
| 48 |
+
|
| 49 |
+
],
|
| 50 |
+
"outputSchema" : [
|
| 51 |
+
{
|
| 52 |
+
"hasShapeFlexibility" : "0",
|
| 53 |
+
"isOptional" : "0",
|
| 54 |
+
"dataType" : "Float16",
|
| 55 |
+
"formattedType" : "MultiArray (Float16 1 × 8 × 8342)",
|
| 56 |
+
"shortDescription" : "",
|
| 57 |
+
"shape" : "[1, 8, 8342]",
|
| 58 |
+
"name" : "logits",
|
| 59 |
+
"type" : "MultiArray"
|
| 60 |
+
}
|
| 61 |
+
],
|
| 62 |
+
"name" : "L8",
|
| 63 |
+
"mlProgramOperationTypeHistogram" : {
|
| 64 |
+
"Ios18.linear" : 113,
|
| 65 |
+
"Ios18.constexprLutToDense" : 98,
|
| 66 |
+
"Ios18.sub" : 1,
|
| 67 |
+
"Ios18.matmul" : 32,
|
| 68 |
+
"Ios18.concat" : 32,
|
| 69 |
+
"Ios18.add" : 96,
|
| 70 |
+
"Ios18.rsqrt" : 122,
|
| 71 |
+
"Ios16.reduceMean" : 122,
|
| 72 |
+
"Ios18.softmax" : 16,
|
| 73 |
+
"Ios18.sliceByIndex" : 64,
|
| 74 |
+
"Tile" : 32,
|
| 75 |
+
"Ios18.transpose" : 64,
|
| 76 |
+
"Ios18.tanh" : 16,
|
| 77 |
+
"Ios18.reshape" : 131,
|
| 78 |
+
"Ios18.mul" : 683
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"inputSchema" : [
|
| 83 |
+
{
|
| 84 |
+
"hasShapeFlexibility" : "0",
|
| 85 |
+
"isOptional" : "0",
|
| 86 |
+
"dataType" : "Float16",
|
| 87 |
+
"formattedType" : "MultiArray (Float16 1 × 16 × 352)",
|
| 88 |
+
"shortDescription" : "",
|
| 89 |
+
"shape" : "[1, 16, 352]",
|
| 90 |
+
"name" : "ids",
|
| 91 |
+
"type" : "MultiArray"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"hasShapeFlexibility" : "0",
|
| 95 |
+
"isOptional" : "0",
|
| 96 |
+
"dataType" : "Float16",
|
| 97 |
+
"formattedType" : "MultiArray (Float16 1 × 16)",
|
| 98 |
+
"shortDescription" : "",
|
| 99 |
+
"shape" : "[1, 16]",
|
| 100 |
+
"name" : "mask",
|
| 101 |
+
"type" : "MultiArray"
|
| 102 |
+
}
|
| 103 |
+
],
|
| 104 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 105 |
+
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
|
| 106 |
+
"stateSchema" : [
|
| 107 |
+
|
| 108 |
+
],
|
| 109 |
+
"outputSchema" : [
|
| 110 |
+
{
|
| 111 |
+
"hasShapeFlexibility" : "0",
|
| 112 |
+
"isOptional" : "0",
|
| 113 |
+
"dataType" : "Float16",
|
| 114 |
+
"formattedType" : "MultiArray (Float16 1 × 16 × 8342)",
|
| 115 |
+
"shortDescription" : "",
|
| 116 |
+
"shape" : "[1, 16, 8342]",
|
| 117 |
+
"name" : "logits",
|
| 118 |
+
"type" : "MultiArray"
|
| 119 |
+
}
|
| 120 |
+
],
|
| 121 |
+
"name" : "L16",
|
| 122 |
+
"mlProgramOperationTypeHistogram" : {
|
| 123 |
+
"Ios18.linear" : 113,
|
| 124 |
+
"Ios18.constexprLutToDense" : 98,
|
| 125 |
+
"Ios18.sub" : 1,
|
| 126 |
+
"Ios18.matmul" : 32,
|
| 127 |
+
"Ios18.concat" : 32,
|
| 128 |
+
"Ios18.add" : 96,
|
| 129 |
+
"Ios18.rsqrt" : 122,
|
| 130 |
+
"Ios16.reduceMean" : 122,
|
| 131 |
+
"Ios18.softmax" : 16,
|
| 132 |
+
"Ios18.sliceByIndex" : 64,
|
| 133 |
+
"Tile" : 32,
|
| 134 |
+
"Ios18.transpose" : 64,
|
| 135 |
+
"Ios18.tanh" : 16,
|
| 136 |
+
"Ios18.reshape" : 131,
|
| 137 |
+
"Ios18.mul" : 683
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"inputSchema" : [
|
| 142 |
+
{
|
| 143 |
+
"hasShapeFlexibility" : "0",
|
| 144 |
+
"isOptional" : "0",
|
| 145 |
+
"dataType" : "Float16",
|
| 146 |
+
"formattedType" : "MultiArray (Float16 1 × 32 × 352)",
|
| 147 |
+
"shortDescription" : "",
|
| 148 |
+
"shape" : "[1, 32, 352]",
|
| 149 |
+
"name" : "ids",
|
| 150 |
+
"type" : "MultiArray"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"hasShapeFlexibility" : "0",
|
| 154 |
+
"isOptional" : "0",
|
| 155 |
+
"dataType" : "Float16",
|
| 156 |
+
"formattedType" : "MultiArray (Float16 1 × 32)",
|
| 157 |
+
"shortDescription" : "",
|
| 158 |
+
"shape" : "[1, 32]",
|
| 159 |
+
"name" : "mask",
|
| 160 |
+
"type" : "MultiArray"
|
| 161 |
+
}
|
| 162 |
+
],
|
| 163 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 164 |
+
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
|
| 165 |
+
"stateSchema" : [
|
| 166 |
+
|
| 167 |
+
],
|
| 168 |
+
"outputSchema" : [
|
| 169 |
+
{
|
| 170 |
+
"hasShapeFlexibility" : "0",
|
| 171 |
+
"isOptional" : "0",
|
| 172 |
+
"dataType" : "Float16",
|
| 173 |
+
"formattedType" : "MultiArray (Float16 1 × 32 × 8342)",
|
| 174 |
+
"shortDescription" : "",
|
| 175 |
+
"shape" : "[1, 32, 8342]",
|
| 176 |
+
"name" : "logits",
|
| 177 |
+
"type" : "MultiArray"
|
| 178 |
+
}
|
| 179 |
+
],
|
| 180 |
+
"name" : "L32",
|
| 181 |
+
"mlProgramOperationTypeHistogram" : {
|
| 182 |
+
"Ios18.linear" : 113,
|
| 183 |
+
"Ios18.constexprLutToDense" : 98,
|
| 184 |
+
"Ios18.sub" : 1,
|
| 185 |
+
"Ios18.matmul" : 32,
|
| 186 |
+
"Ios18.concat" : 32,
|
| 187 |
+
"Ios18.add" : 96,
|
| 188 |
+
"Ios18.rsqrt" : 122,
|
| 189 |
+
"Ios16.reduceMean" : 122,
|
| 190 |
+
"Ios18.softmax" : 16,
|
| 191 |
+
"Ios18.sliceByIndex" : 64,
|
| 192 |
+
"Tile" : 32,
|
| 193 |
+
"Ios18.transpose" : 64,
|
| 194 |
+
"Ios18.tanh" : 16,
|
| 195 |
+
"Ios18.reshape" : 131,
|
| 196 |
+
"Ios18.mul" : 683
|
| 197 |
+
}
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"inputSchema" : [
|
| 201 |
+
{
|
| 202 |
+
"hasShapeFlexibility" : "0",
|
| 203 |
+
"isOptional" : "0",
|
| 204 |
+
"dataType" : "Float16",
|
| 205 |
+
"formattedType" : "MultiArray (Float16 1 × 64 × 352)",
|
| 206 |
+
"shortDescription" : "",
|
| 207 |
+
"shape" : "[1, 64, 352]",
|
| 208 |
+
"name" : "ids",
|
| 209 |
+
"type" : "MultiArray"
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"hasShapeFlexibility" : "0",
|
| 213 |
+
"isOptional" : "0",
|
| 214 |
+
"dataType" : "Float16",
|
| 215 |
+
"formattedType" : "MultiArray (Float16 1 × 64)",
|
| 216 |
+
"shortDescription" : "",
|
| 217 |
+
"shape" : "[1, 64]",
|
| 218 |
+
"name" : "mask",
|
| 219 |
+
"type" : "MultiArray"
|
| 220 |
+
}
|
| 221 |
+
],
|
| 222 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 223 |
+
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
|
| 224 |
+
"stateSchema" : [
|
| 225 |
+
|
| 226 |
+
],
|
| 227 |
+
"outputSchema" : [
|
| 228 |
+
{
|
| 229 |
+
"hasShapeFlexibility" : "0",
|
| 230 |
+
"isOptional" : "0",
|
| 231 |
+
"dataType" : "Float16",
|
| 232 |
+
"formattedType" : "MultiArray (Float16 1 × 64 × 8342)",
|
| 233 |
+
"shortDescription" : "",
|
| 234 |
+
"shape" : "[1, 64, 8342]",
|
| 235 |
+
"name" : "logits",
|
| 236 |
+
"type" : "MultiArray"
|
| 237 |
+
}
|
| 238 |
+
],
|
| 239 |
+
"name" : "L64",
|
| 240 |
+
"mlProgramOperationTypeHistogram" : {
|
| 241 |
+
"Ios18.linear" : 113,
|
| 242 |
+
"Ios18.constexprLutToDense" : 98,
|
| 243 |
+
"Ios18.sub" : 1,
|
| 244 |
+
"Ios18.matmul" : 32,
|
| 245 |
+
"Ios18.concat" : 32,
|
| 246 |
+
"Ios18.add" : 96,
|
| 247 |
+
"Ios18.rsqrt" : 122,
|
| 248 |
+
"Ios16.reduceMean" : 122,
|
| 249 |
+
"Ios18.softmax" : 16,
|
| 250 |
+
"Ios18.sliceByIndex" : 64,
|
| 251 |
+
"Tile" : 32,
|
| 252 |
+
"Ios18.transpose" : 64,
|
| 253 |
+
"Ios18.tanh" : 16,
|
| 254 |
+
"Ios18.reshape" : 131,
|
| 255 |
+
"Ios18.mul" : 683
|
| 256 |
+
}
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"inputSchema" : [
|
| 260 |
+
{
|
| 261 |
+
"hasShapeFlexibility" : "0",
|
| 262 |
+
"isOptional" : "0",
|
| 263 |
+
"dataType" : "Float16",
|
| 264 |
+
"formattedType" : "MultiArray (Float16 1 × 256 × 352)",
|
| 265 |
+
"shortDescription" : "",
|
| 266 |
+
"shape" : "[1, 256, 352]",
|
| 267 |
+
"name" : "ids",
|
| 268 |
+
"type" : "MultiArray"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"hasShapeFlexibility" : "0",
|
| 272 |
+
"isOptional" : "0",
|
| 273 |
+
"dataType" : "Float16",
|
| 274 |
+
"formattedType" : "MultiArray (Float16 1 × 256)",
|
| 275 |
+
"shortDescription" : "",
|
| 276 |
+
"shape" : "[1, 256]",
|
| 277 |
+
"name" : "mask",
|
| 278 |
+
"type" : "MultiArray"
|
| 279 |
+
}
|
| 280 |
+
],
|
| 281 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 282 |
+
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
|
| 283 |
+
"stateSchema" : [
|
| 284 |
+
|
| 285 |
+
],
|
| 286 |
+
"outputSchema" : [
|
| 287 |
+
{
|
| 288 |
+
"hasShapeFlexibility" : "0",
|
| 289 |
+
"isOptional" : "0",
|
| 290 |
+
"dataType" : "Float16",
|
| 291 |
+
"formattedType" : "MultiArray (Float16 1 × 256 × 8342)",
|
| 292 |
+
"shortDescription" : "",
|
| 293 |
+
"shape" : "[1, 256, 8342]",
|
| 294 |
+
"name" : "logits",
|
| 295 |
+
"type" : "MultiArray"
|
| 296 |
+
}
|
| 297 |
+
],
|
| 298 |
+
"name" : "L256",
|
| 299 |
+
"mlProgramOperationTypeHistogram" : {
|
| 300 |
+
"Ios18.linear" : 113,
|
| 301 |
+
"Ios18.constexprLutToDense" : 98,
|
| 302 |
+
"Ios18.sub" : 1,
|
| 303 |
+
"Ios18.matmul" : 32,
|
| 304 |
+
"Ios18.concat" : 32,
|
| 305 |
+
"Ios18.add" : 96,
|
| 306 |
+
"Ios18.rsqrt" : 122,
|
| 307 |
+
"Ios16.reduceMean" : 122,
|
| 308 |
+
"Ios18.softmax" : 16,
|
| 309 |
+
"Ios18.sliceByIndex" : 64,
|
| 310 |
+
"Tile" : 32,
|
| 311 |
+
"Ios18.transpose" : 64,
|
| 312 |
+
"Ios18.tanh" : 16,
|
| 313 |
+
"Ios18.reshape" : 131,
|
| 314 |
+
"Ios18.mul" : 683
|
| 315 |
+
}
|
| 316 |
+
}
|
| 317 |
+
],
|
| 318 |
+
"mlProgramOperationTypeHistogram" : {
|
| 319 |
+
"Ios18.linear" : 113,
|
| 320 |
+
"Ios18.constexprLutToDense" : 98,
|
| 321 |
+
"Ios18.sub" : 1,
|
| 322 |
+
"Ios18.matmul" : 32,
|
| 323 |
+
"Ios18.concat" : 32,
|
| 324 |
+
"Ios18.add" : 96,
|
| 325 |
+
"Ios18.rsqrt" : 122,
|
| 326 |
+
"Ios16.reduceMean" : 122,
|
| 327 |
+
"Ios18.softmax" : 16,
|
| 328 |
+
"Ios18.sliceByIndex" : 64,
|
| 329 |
+
"Tile" : 32,
|
| 330 |
+
"Ios18.transpose" : 64,
|
| 331 |
+
"Ios18.tanh" : 16,
|
| 332 |
+
"Ios18.reshape" : 131,
|
| 333 |
+
"Ios18.mul" : 683
|
| 334 |
+
},
|
| 335 |
+
"isUpdatable" : "0",
|
| 336 |
+
"stateSchema" : [
|
| 337 |
+
|
| 338 |
+
],
|
| 339 |
+
"availability" : {
|
| 340 |
+
"macOS" : "15.0",
|
| 341 |
+
"tvOS" : "18.0",
|
| 342 |
+
"visionOS" : "2.0",
|
| 343 |
+
"watchOS" : "11.0",
|
| 344 |
+
"iOS" : "18.0",
|
| 345 |
+
"macCatalyst" : "18.0"
|
| 346 |
+
},
|
| 347 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 348 |
+
"modelType" : {
|
| 349 |
+
"name" : "MLModelType_mlProgram"
|
| 350 |
+
},
|
| 351 |
+
"inputSchema" : [
|
| 352 |
+
{
|
| 353 |
+
"hasShapeFlexibility" : "0",
|
| 354 |
+
"isOptional" : "0",
|
| 355 |
+
"dataType" : "Float16",
|
| 356 |
+
"formattedType" : "MultiArray (Float16 1 × 16 × 352)",
|
| 357 |
+
"shortDescription" : "",
|
| 358 |
+
"shape" : "[1, 16, 352]",
|
| 359 |
+
"name" : "ids",
|
| 360 |
+
"type" : "MultiArray"
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"hasShapeFlexibility" : "0",
|
| 364 |
+
"isOptional" : "0",
|
| 365 |
+
"dataType" : "Float16",
|
| 366 |
+
"formattedType" : "MultiArray (Float16 1 × 16)",
|
| 367 |
+
"shortDescription" : "",
|
| 368 |
+
"shape" : "[1, 16]",
|
| 369 |
+
"name" : "mask",
|
| 370 |
+
"type" : "MultiArray"
|
| 371 |
+
}
|
| 372 |
+
],
|
| 373 |
+
"defaultFunctionName" : "L16",
|
| 374 |
+
"generatedClassName" : "enc25m",
|
| 375 |
+
"userDefinedMetadata" : {
|
| 376 |
+
|
| 377 |
+
},
|
| 378 |
+
"method" : "predict"
|
| 379 |
+
}
|
| 380 |
+
]
|
runtime/enc25m.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
runtime/enc25m.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d5722a18782f13023d87cc565afc8c146d257ef913cb6d87296ad6c11731432
|
| 3 |
+
size 16112768
|
runtime/enc25m_embed_f16.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b23e59ecd93a0b6c95ac3e93d83e7cb77657adaa365a0d8f7dab31ccafc89583
|
| 3 |
+
size 1083456
|
runtime/runtime-manifest.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# McBopomofoLM v2 checks the byte size and sha256 of every file below before loading a model.
|
| 2 |
+
# Any mismatch or missing file = that model is not loaded (encoder -> stock McBopomofo,
|
| 3 |
+
# decoder -> encoder-only in-walk). Format: <sha256> <bytes> <path>
|
| 4 |
+
58ccc20614291fc39b7fc6cc2ce4b536a5b787cf62f89bd13fba85bd232569d4 132104 char2id.tsv
|
| 5 |
+
d9e184839d9697bc6b9bb8110a38d7db53e107f7c8d840e5d297fc62491ea18c 243 dec60m.mlmodelc/analytics/coremldata.bin
|
| 6 |
+
eb1832af7c02b3368325dd298f4fb6f782b9f66cc365c30b6081e95be9883b1a 336 dec60m.mlmodelc/coremldata.bin
|
| 7 |
+
2cce8c6d89c3b7c3eac053926c4d2e2684ac8b50e0b811c7a41b6a99b50a4b44 9264 dec60m.mlmodelc/metadata.json
|
| 8 |
+
adad4ba1cff4e2655e4e86d7aa4f78b5bf5e252fac1cba6f7f944c7cfcb5cdb8 2056375 dec60m.mlmodelc/model.mil
|
| 9 |
+
b28b6b08fde8f65866cfcf2e85d642bd96c3dd85ea8e8989999e6955c10bb7dc 119700544 dec60m.mlmodelc/weights/weight.bin
|
| 10 |
+
3f81807dc89667acebf50f878df8c64bed8254c926a25a182a3e1e80ec8b4bfc 1260362 dec_tokenizer.json
|
| 11 |
+
e3a4791a3fda6d7f0f7a4c322691c960cfe928f951d224e14e60748917ef6486 243 enc25m.mlmodelc/analytics/coremldata.bin
|
| 12 |
+
b5b297a9d490bba32eacdf888e4d5dd45114f07131425f82569508164e3eb3b0 540 enc25m.mlmodelc/coremldata.bin
|
| 13 |
+
6526ce78c04188f76cc496fdf362817b4f3d506e76e994fc2e517a0e5a86841c 11314 enc25m.mlmodelc/metadata.json
|
| 14 |
+
42b84726a46f088e6994160100d887b99d24f22c36b68c3acf840d95d1c27ab5 2139738 enc25m.mlmodelc/model.mil
|
| 15 |
+
3d5722a18782f13023d87cc565afc8c146d257ef913cb6d87296ad6c11731432 16112768 enc25m.mlmodelc/weights/weight.bin
|
| 16 |
+
b23e59ecd93a0b6c95ac3e93d83e7cb77657adaa365a0d8f7dab31ccafc89583 1083456 enc25m_embed_f16.bin
|
| 17 |
+
e963ecb0f8aec024889ac4aaadcb0c9d620efbb961d72a744fff9dac3235a978 1605189 syl2legal.bin
|
| 18 |
+
92057096f9e6a9da6f4a1756f456d948506970205dda1bda1196d25db5000f76 21056 syl_vocab.tsv
|
| 19 |
+
66441790a33019ea34979f3b8c752f996265e7558fc7391d2218fb2a133305a4 644 variants.tsv
|
runtime/syl2legal.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e963ecb0f8aec024889ac4aaadcb0c9d620efbb961d72a744fff9dac3235a978
|
| 3 |
+
size 1605189
|
runtime/syl_vocab.tsv
ADDED
|
@@ -0,0 +1,1539 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
ㄅㄠˋ 24
|
| 26 |
+
ㄅㄢ 25
|
| 27 |
+
ㄅㄢˇ 26
|
| 28 |
+
ㄅㄢˋ 27
|
| 29 |
+
ㄅㄢ˙ 28
|
| 30 |
+
ㄅㄣ 29
|
| 31 |
+
ㄅㄣˇ 30
|
| 32 |
+
ㄅㄣˋ 31
|
| 33 |
+
ㄅㄤ 32
|
| 34 |
+
ㄅㄤˇ 33
|
| 35 |
+
ㄅㄤˋ 34
|
| 36 |
+
ㄅㄥ 35
|
| 37 |
+
ㄅㄥˇ 36
|
| 38 |
+
ㄅㄥˊ 37
|
| 39 |
+
ㄅㄥˋ 38
|
| 40 |
+
ㄅㄧ 39
|
| 41 |
+
ㄅㄧˇ 40
|
| 42 |
+
ㄅㄧˊ 41
|
| 43 |
+
ㄅㄧˋ 42
|
| 44 |
+
ㄅㄧㄝ 43
|
| 45 |
+
ㄅㄧㄝˇ 44
|
| 46 |
+
ㄅㄧㄝˊ 45
|
| 47 |
+
ㄅㄧㄝˋ 46
|
| 48 |
+
ㄅㄧㄠ 47
|
| 49 |
+
ㄅㄧㄠˇ 48
|
| 50 |
+
ㄅㄧㄠˋ 49
|
| 51 |
+
ㄅㄧㄢ 50
|
| 52 |
+
ㄅㄧㄢˇ 51
|
| 53 |
+
ㄅㄧㄢˋ 52
|
| 54 |
+
ㄅㄧㄢ˙ 53
|
| 55 |
+
ㄅㄧㄣ 54
|
| 56 |
+
ㄅㄧㄣˇ 55
|
| 57 |
+
ㄅㄧㄣˋ 56
|
| 58 |
+
ㄅㄧㄥ 57
|
| 59 |
+
ㄅㄧㄥˇ 58
|
| 60 |
+
ㄅㄧㄥˋ 59
|
| 61 |
+
ㄅㄨ 60
|
| 62 |
+
ㄅㄨˇ 61
|
| 63 |
+
ㄅㄨˊ 62
|
| 64 |
+
ㄅㄨˋ 63
|
| 65 |
+
ㄅㄨ˙ 64
|
| 66 |
+
ㄆㄚ 65
|
| 67 |
+
ㄆㄚˊ 66
|
| 68 |
+
ㄆㄚˋ 67
|
| 69 |
+
ㄆㄚ˙ 68
|
| 70 |
+
ㄆㄛ 69
|
| 71 |
+
ㄆㄛˇ 70
|
| 72 |
+
ㄆㄛˊ 71
|
| 73 |
+
ㄆㄛˋ 72
|
| 74 |
+
ㄆㄛ˙ 73
|
| 75 |
+
ㄆㄞ 74
|
| 76 |
+
ㄆㄞˇ 75
|
| 77 |
+
ㄆㄞˊ 76
|
| 78 |
+
ㄆㄞˋ 77
|
| 79 |
+
ㄆㄟ 78
|
| 80 |
+
ㄆㄟˇ 79
|
| 81 |
+
ㄆㄟˊ 80
|
| 82 |
+
ㄆㄟˋ 81
|
| 83 |
+
ㄆㄠ 82
|
| 84 |
+
ㄆㄠˇ 83
|
| 85 |
+
ㄆㄠˊ 84
|
| 86 |
+
ㄆㄠˋ 85
|
| 87 |
+
ㄆㄡ 86
|
| 88 |
+
ㄆㄡˇ 87
|
| 89 |
+
ㄆㄡˊ 88
|
| 90 |
+
ㄆㄡˋ 89
|
| 91 |
+
ㄆㄢ 90
|
| 92 |
+
ㄆㄢˇ 91
|
| 93 |
+
ㄆㄢˊ 92
|
| 94 |
+
ㄆㄢˋ 93
|
| 95 |
+
ㄆㄣ 94
|
| 96 |
+
ㄆㄣˇ 95
|
| 97 |
+
ㄆㄣˊ 96
|
| 98 |
+
ㄆㄣˋ 97
|
| 99 |
+
ㄆㄤ 98
|
| 100 |
+
ㄆㄤˇ 99
|
| 101 |
+
ㄆㄤˊ 100
|
| 102 |
+
ㄆㄤˋ 101
|
| 103 |
+
ㄆㄥ 102
|
| 104 |
+
ㄆㄥˇ 103
|
| 105 |
+
ㄆㄥˊ 104
|
| 106 |
+
ㄆㄥˋ 105
|
| 107 |
+
ㄆㄧ 106
|
| 108 |
+
ㄆㄧˇ 107
|
| 109 |
+
ㄆㄧˊ 108
|
| 110 |
+
ㄆㄧˋ 109
|
| 111 |
+
ㄆㄧㄝ 110
|
| 112 |
+
ㄆㄧㄝˇ 111
|
| 113 |
+
ㄆㄧㄝˋ 112
|
| 114 |
+
ㄆㄧㄠ 113
|
| 115 |
+
ㄆㄧㄠˇ 114
|
| 116 |
+
ㄆㄧㄠˊ 115
|
| 117 |
+
ㄆㄧㄠˋ 116
|
| 118 |
+
ㄆㄧㄢ 117
|
| 119 |
+
ㄆㄧㄢˇ 118
|
| 120 |
+
ㄆㄧㄢˊ 119
|
| 121 |
+
ㄆㄧㄢˋ 120
|
| 122 |
+
ㄆㄧㄣ 121
|
| 123 |
+
ㄆㄧㄣˇ 122
|
| 124 |
+
ㄆㄧㄣˊ 123
|
| 125 |
+
ㄆㄧㄣˋ 124
|
| 126 |
+
ㄆㄧㄥ 125
|
| 127 |
+
ㄆㄧㄥˇ 126
|
| 128 |
+
ㄆㄧㄥˊ 127
|
| 129 |
+
ㄆㄧㄥˋ 128
|
| 130 |
+
ㄆㄨ 129
|
| 131 |
+
ㄆㄨˇ 130
|
| 132 |
+
ㄆㄨˊ 131
|
| 133 |
+
ㄆㄨˋ 132
|
| 134 |
+
ㄇㄚ 133
|
| 135 |
+
ㄇㄚˇ 134
|
| 136 |
+
ㄇㄚˊ 135
|
| 137 |
+
ㄇㄚˋ 136
|
| 138 |
+
ㄇㄚ˙ 137
|
| 139 |
+
ㄇㄛ 138
|
| 140 |
+
ㄇㄛˇ 139
|
| 141 |
+
ㄇㄛˊ 140
|
| 142 |
+
ㄇㄛˋ 141
|
| 143 |
+
ㄇㄜ˙ 142
|
| 144 |
+
ㄇㄞˇ 143
|
| 145 |
+
ㄇㄞˊ 144
|
| 146 |
+
ㄇㄞˋ 145
|
| 147 |
+
ㄇㄟˇ 146
|
| 148 |
+
ㄇㄟˊ 147
|
| 149 |
+
ㄇㄟˋ 148
|
| 150 |
+
ㄇㄟ˙ 149
|
| 151 |
+
ㄇㄠ 150
|
| 152 |
+
ㄇㄠˇ 151
|
| 153 |
+
ㄇㄠˊ 152
|
| 154 |
+
ㄇㄠˋ 153
|
| 155 |
+
ㄇㄡ 154
|
| 156 |
+
ㄇㄡˇ 155
|
| 157 |
+
ㄇㄡˊ 156
|
| 158 |
+
ㄇㄡˋ 157
|
| 159 |
+
ㄇㄢ 158
|
| 160 |
+
ㄇㄢˇ 159
|
| 161 |
+
ㄇㄢˊ 160
|
| 162 |
+
ㄇㄢˋ 161
|
| 163 |
+
ㄇㄣ 162
|
| 164 |
+
ㄇㄣˇ 163
|
| 165 |
+
ㄇㄣˊ 164
|
| 166 |
+
ㄇㄣˋ 165
|
| 167 |
+
ㄇㄣ˙ 166
|
| 168 |
+
ㄇㄤˇ 167
|
| 169 |
+
ㄇㄤˊ 168
|
| 170 |
+
ㄇㄥ 169
|
| 171 |
+
ㄇㄥˇ 170
|
| 172 |
+
ㄇㄥˊ 171
|
| 173 |
+
ㄇㄥˋ 172
|
| 174 |
+
ㄇㄧ 173
|
| 175 |
+
ㄇㄧˇ 174
|
| 176 |
+
ㄇㄧˊ 175
|
| 177 |
+
ㄇㄧˋ 176
|
| 178 |
+
ㄇㄧㄝ 177
|
| 179 |
+
ㄇㄧㄝˋ 178
|
| 180 |
+
ㄇㄧㄝ˙ 179
|
| 181 |
+
ㄇㄧㄠ 180
|
| 182 |
+
ㄇㄧㄠˇ 181
|
| 183 |
+
ㄇㄧㄠˊ 182
|
| 184 |
+
ㄇㄧㄠˋ 183
|
| 185 |
+
ㄇㄧㄡ 184
|
| 186 |
+
ㄇㄧㄡˋ 185
|
| 187 |
+
ㄇㄧㄢˇ 186
|
| 188 |
+
ㄇㄧㄢˊ 187
|
| 189 |
+
ㄇㄧㄢˋ 188
|
| 190 |
+
ㄇㄧㄣˇ 189
|
| 191 |
+
ㄇㄧㄣˊ 190
|
| 192 |
+
ㄇㄧㄥˇ 191
|
| 193 |
+
ㄇㄧㄥˊ 192
|
| 194 |
+
ㄇㄧㄥˋ 193
|
| 195 |
+
ㄇㄨ 194
|
| 196 |
+
ㄇㄨˇ 195
|
| 197 |
+
ㄇㄨˊ 196
|
| 198 |
+
ㄇㄨˋ 197
|
| 199 |
+
ㄈ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ˇ 243
|
| 245 |
+
ㄉㄠ 244
|
| 246 |
+
ㄉㄠˇ 245
|
| 247 |
+
ㄉㄠˊ 246
|
| 248 |
+
ㄉㄠˋ 247
|
| 249 |
+
ㄉㄡ 248
|
| 250 |
+
ㄉㄡˇ 249
|
| 251 |
+
ㄉㄡˋ 250
|
| 252 |
+
ㄉㄢ 251
|
| 253 |
+
ㄉㄢˇ 252
|
| 254 |
+
ㄉㄢˋ 253
|
| 255 |
+
ㄉㄣˋ 254
|
| 256 |
+
ㄉㄤ 255
|
| 257 |
+
ㄉㄤˇ 256
|
| 258 |
+
ㄉㄤˋ 257
|
| 259 |
+
ㄉㄤ˙ 258
|
| 260 |
+
ㄉㄥ 259
|
| 261 |
+
ㄉㄥˇ 260
|
| 262 |
+
ㄉㄥˋ 261
|
| 263 |
+
ㄉㄧ 262
|
| 264 |
+
ㄉㄧˇ 263
|
| 265 |
+
ㄉㄧˊ 264
|
| 266 |
+
ㄉㄧˋ 265
|
| 267 |
+
ㄉㄧ˙ 266
|
| 268 |
+
ㄉㄧㄚˇ 267
|
| 269 |
+
ㄉㄧㄝ 268
|
| 270 |
+
ㄉㄧㄝˇ 269
|
| 271 |
+
ㄉㄧㄝˊ 270
|
| 272 |
+
ㄉㄧㄝˋ 271
|
| 273 |
+
ㄉㄧㄝ˙ 272
|
| 274 |
+
ㄉㄧㄠ 273
|
| 275 |
+
ㄉㄧㄠˇ 274
|
| 276 |
+
ㄉㄧㄠˋ 275
|
| 277 |
+
ㄉㄧㄡ 276
|
| 278 |
+
ㄉㄧㄢ 277
|
| 279 |
+
ㄉㄧㄢˇ 278
|
| 280 |
+
ㄉㄧㄢˋ 279
|
| 281 |
+
ㄉㄧㄥ 280
|
| 282 |
+
ㄉㄧㄥˇ 281
|
| 283 |
+
ㄉㄧㄥˋ 282
|
| 284 |
+
ㄉㄨ 283
|
| 285 |
+
ㄉㄨˇ 284
|
| 286 |
+
ㄉㄨˊ 285
|
| 287 |
+
ㄉㄨˋ 286
|
| 288 |
+
ㄉㄨㄛ 287
|
| 289 |
+
ㄉㄨㄛˇ 288
|
| 290 |
+
ㄉㄨㄛˊ 289
|
| 291 |
+
ㄉㄨㄛˋ 290
|
| 292 |
+
ㄉㄨㄛ˙ 291
|
| 293 |
+
ㄉㄨㄟ 292
|
| 294 |
+
ㄉㄨㄟˇ 293
|
| 295 |
+
ㄉㄨㄟˋ 294
|
| 296 |
+
ㄉㄨㄢ 295
|
| 297 |
+
ㄉㄨㄢˇ 296
|
| 298 |
+
ㄉㄨㄢˋ 297
|
| 299 |
+
ㄉㄨㄣ 298
|
| 300 |
+
ㄉㄨㄣˇ 299
|
| 301 |
+
ㄉㄨㄣˋ 300
|
| 302 |
+
ㄉㄨㄥ 301
|
| 303 |
+
ㄉㄨㄥˇ 302
|
| 304 |
+
ㄉㄨㄥˋ 303
|
| 305 |
+
ㄊㄚ 304
|
| 306 |
+
ㄊㄚˇ 305
|
| 307 |
+
ㄊㄚˋ 306
|
| 308 |
+
ㄊㄚ˙ 307
|
| 309 |
+
ㄊㄜˋ 308
|
| 310 |
+
ㄊㄞ 309
|
| 311 |
+
ㄊㄞˇ 310
|
| 312 |
+
ㄊㄞˊ 311
|
| 313 |
+
ㄊㄞˋ 312
|
| 314 |
+
ㄊㄟ 313
|
| 315 |
+
ㄊㄠ 314
|
| 316 |
+
ㄊㄠˇ 315
|
| 317 |
+
ㄊㄠˊ 316
|
| 318 |
+
ㄊㄠˋ 317
|
| 319 |
+
ㄊㄠ˙ 318
|
| 320 |
+
ㄊㄡ 319
|
| 321 |
+
ㄊㄡˇ 320
|
| 322 |
+
ㄊㄡˊ 321
|
| 323 |
+
ㄊㄡˋ 322
|
| 324 |
+
ㄊㄡ˙ 323
|
| 325 |
+
ㄊㄢ 324
|
| 326 |
+
ㄊㄢˇ 325
|
| 327 |
+
ㄊㄢˊ 326
|
| 328 |
+
ㄊㄢˋ 327
|
| 329 |
+
ㄊㄤ 328
|
| 330 |
+
ㄊㄤˇ 329
|
| 331 |
+
ㄊㄤˊ 330
|
| 332 |
+
ㄊㄤˋ 331
|
| 333 |
+
ㄊㄥ 332
|
| 334 |
+
ㄊㄥˊ 333
|
| 335 |
+
ㄊㄥˋ 334
|
| 336 |
+
ㄊㄧ 335
|
| 337 |
+
ㄊㄧˇ 336
|
| 338 |
+
ㄊㄧˊ 337
|
| 339 |
+
ㄊㄧˋ 338
|
| 340 |
+
ㄊㄧㄝ 339
|
| 341 |
+
ㄊㄧㄝˇ 340
|
| 342 |
+
ㄊㄧㄝˋ 341
|
| 343 |
+
ㄊㄧㄠ 342
|
| 344 |
+
ㄊㄧㄠˇ 343
|
| 345 |
+
ㄊㄧㄠˊ 344
|
| 346 |
+
ㄊㄧㄠˋ 345
|
| 347 |
+
ㄊㄧㄠ˙ 346
|
| 348 |
+
ㄊㄧㄢ 347
|
| 349 |
+
ㄊㄧㄢˇ 348
|
| 350 |
+
ㄊㄧㄢˊ 349
|
| 351 |
+
ㄊㄧㄢˋ 350
|
| 352 |
+
ㄊㄧㄥ 351
|
| 353 |
+
ㄊㄧㄥˇ 352
|
| 354 |
+
ㄊㄧㄥˊ 353
|
| 355 |
+
ㄊㄧㄥˋ 354
|
| 356 |
+
ㄊㄨ 355
|
| 357 |
+
ㄊㄨˇ 356
|
| 358 |
+
ㄊㄨˊ 357
|
| 359 |
+
ㄊㄨˋ 358
|
| 360 |
+
ㄊㄨㄛ 359
|
| 361 |
+
ㄊㄨㄛˇ 360
|
| 362 |
+
ㄊㄨㄛˊ 361
|
| 363 |
+
ㄊㄨ��ˋ 362
|
| 364 |
+
ㄊㄨㄟ 363
|
| 365 |
+
ㄊㄨㄟˇ 364
|
| 366 |
+
ㄊㄨㄟˊ 365
|
| 367 |
+
ㄊㄨㄟˋ 366
|
| 368 |
+
ㄊㄨㄢ 367
|
| 369 |
+
ㄊㄨㄢˇ 368
|
| 370 |
+
ㄊㄨㄢˊ 369
|
| 371 |
+
ㄊㄨㄢˋ 370
|
| 372 |
+
ㄊㄨㄣ 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
+
ㄋㄤ˙ 416
|
| 418 |
+
ㄋㄥˇ 417
|
| 419 |
+
ㄋㄥˊ 418
|
| 420 |
+
ㄋㄥˋ 419
|
| 421 |
+
ㄋㄧ 420
|
| 422 |
+
ㄋㄧˇ 421
|
| 423 |
+
ㄋㄧˊ 422
|
| 424 |
+
ㄋㄧˋ 423
|
| 425 |
+
ㄋㄧㄝ 424
|
| 426 |
+
ㄋㄧㄝˊ 425
|
| 427 |
+
ㄋㄧㄝˋ 426
|
| 428 |
+
ㄋㄧㄠˇ 427
|
| 429 |
+
ㄋㄧㄠˋ 428
|
| 430 |
+
ㄋㄧㄡ 429
|
| 431 |
+
ㄋㄧㄡˇ 430
|
| 432 |
+
ㄋㄧㄡˊ 431
|
| 433 |
+
ㄋㄧㄡˋ 432
|
| 434 |
+
ㄋㄧㄢ 433
|
| 435 |
+
ㄋㄧㄢˇ 434
|
| 436 |
+
ㄋㄧㄢˊ 435
|
| 437 |
+
ㄋㄧㄢˋ 436
|
| 438 |
+
ㄋㄧㄣˇ 437
|
| 439 |
+
ㄋㄧㄣˊ 438
|
| 440 |
+
ㄋㄧㄤˊ 439
|
| 441 |
+
ㄋㄧㄤˋ 440
|
| 442 |
+
ㄋㄧㄥˇ 441
|
| 443 |
+
ㄋㄧㄥˊ 442
|
| 444 |
+
ㄋㄧㄥˋ 443
|
| 445 |
+
ㄋㄨˇ 444
|
| 446 |
+
ㄋㄨˊ 445
|
| 447 |
+
ㄋㄨˋ 446
|
| 448 |
+
ㄋㄨㄛˇ 447
|
| 449 |
+
ㄋㄨㄛˊ 448
|
| 450 |
+
ㄋㄨㄛˋ 449
|
| 451 |
+
ㄋㄨㄢˇ 450
|
| 452 |
+
ㄋㄨㄢˊ 451
|
| 453 |
+
ㄋㄨㄢˋ 452
|
| 454 |
+
ㄋㄨㄥˇ 453
|
| 455 |
+
ㄋㄨㄥˊ 454
|
| 456 |
+
ㄋㄨㄥˋ 455
|
| 457 |
+
ㄋㄨㄥ˙ 456
|
| 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|
| 503 |
+
ㄌㄧ˙ 502
|
| 504 |
+
ㄌㄧㄚˇ 503
|
| 505 |
+
ㄌㄧㄝ 504
|
| 506 |
+
ㄌㄧㄝˇ 505
|
| 507 |
+
ㄌㄧㄝˊ 506
|
| 508 |
+
ㄌㄧㄝˋ 507
|
| 509 |
+
ㄌㄧㄝ˙ 508
|
| 510 |
+
ㄌㄧㄠ 509
|
| 511 |
+
ㄌㄧㄠˇ 510
|
| 512 |
+
ㄌㄧㄠˊ 511
|
| 513 |
+
ㄌㄧㄠˋ 512
|
| 514 |
+
ㄌㄧㄡ 513
|
| 515 |
+
ㄌㄧㄡˇ 514
|
| 516 |
+
ㄌㄧㄡˊ 515
|
| 517 |
+
ㄌㄧㄡˋ 516
|
| 518 |
+
ㄌㄧㄡ˙ 517
|
| 519 |
+
ㄌㄧㄢˇ 518
|
| 520 |
+
ㄌㄧㄢˊ 519
|
| 521 |
+
ㄌㄧㄢˋ 520
|
| 522 |
+
ㄌㄧㄣ 521
|
| 523 |
+
ㄌㄧㄣˇ 522
|
| 524 |
+
ㄌㄧㄣˊ 523
|
| 525 |
+
ㄌㄧㄣˋ 524
|
| 526 |
+
ㄌㄧㄤˇ 525
|
| 527 |
+
ㄌㄧㄤˊ 526
|
| 528 |
+
ㄌㄧㄤˋ 527
|
| 529 |
+
ㄌㄧㄥ 528
|
| 530 |
+
ㄌㄧㄥˇ 529
|
| 531 |
+
ㄌㄧㄥˊ 530
|
| 532 |
+
ㄌㄧㄥˋ 531
|
| 533 |
+
ㄌㄨ 532
|
| 534 |
+
ㄌㄨˇ 533
|
| 535 |
+
ㄌㄨˊ 534
|
| 536 |
+
ㄌㄨˋ 535
|
| 537 |
+
ㄌㄨ˙ 536
|
| 538 |
+
ㄌㄨㄛ 537
|
| 539 |
+
ㄌㄨㄛˇ 538
|
| 540 |
+
ㄌㄨㄛˊ 539
|
| 541 |
+
ㄌㄨㄛˋ 540
|
| 542 |
+
ㄌㄨㄛ˙ 541
|
| 543 |
+
ㄌㄨㄢˇ 542
|
| 544 |
+
ㄌㄨㄢˊ 543
|
| 545 |
+
ㄌㄨㄢˋ 544
|
| 546 |
+
ㄌㄨㄣ 545
|
| 547 |
+
ㄌㄨㄣˇ 546
|
| 548 |
+
ㄌㄨㄣˊ 547
|
| 549 |
+
ㄌㄨㄣˋ 548
|
| 550 |
+
ㄌㄨㄥ 549
|
| 551 |
+
ㄌㄨㄥˇ 550
|
| 552 |
+
ㄌㄨㄥˊ 551
|
| 553 |
+
ㄌㄨㄥˋ 552
|
| 554 |
+
ㄌㄩˇ 553
|
| 555 |
+
ㄌㄩˊ 554
|
| 556 |
+
ㄌㄩˋ 555
|
| 557 |
+
ㄌㄩㄝˇ 556
|
| 558 |
+
ㄌㄩㄝˋ 557
|
| 559 |
+
ㄍㄚ 558
|
| 560 |
+
ㄍㄚˇ 559
|
| 561 |
+
ㄍㄚˊ 560
|
| 562 |
+
ㄍㄚˋ 561
|
| 563 |
+
ㄍㄚ˙ 562
|
| 564 |
+
ㄍㄜ 563
|
| 565 |
+
ㄍㄜˇ 564
|
| 566 |
+
ㄍㄜˊ 565
|
| 567 |
+
ㄍㄜˋ 566
|
| 568 |
+
ㄍㄜ˙ 567
|
| 569 |
+
ㄍㄞ 568
|
| 570 |
+
ㄍㄞˇ 569
|
| 571 |
+
ㄍㄞˋ 570
|
| 572 |
+
ㄍㄟˇ 571
|
| 573 |
+
ㄍㄠ 572
|
| 574 |
+
ㄍㄠˇ 573
|
| 575 |
+
ㄍㄠˋ 574
|
| 576 |
+
ㄍㄡ 575
|
| 577 |
+
ㄍㄡˇ 576
|
| 578 |
+
ㄍㄡˋ 577
|
| 579 |
+
ㄍㄢ 578
|
| 580 |
+
ㄍㄢˇ 579
|
| 581 |
+
ㄍㄢˋ 580
|
| 582 |
+
ㄍㄣ 581
|
| 583 |
+
ㄍㄣˇ 582
|
| 584 |
+
ㄍㄣˊ 583
|
| 585 |
+
ㄍㄣˋ 584
|
| 586 |
+
ㄍㄤ 585
|
| 587 |
+
ㄍㄤˇ 586
|
| 588 |
+
ㄍㄤˋ 587
|
| 589 |
+
ㄍㄥ 588
|
| 590 |
+
ㄍㄥˇ 589
|
| 591 |
+
ㄍㄥˋ 590
|
| 592 |
+
ㄍㄨ 591
|
| 593 |
+
ㄍㄨˇ 592
|
| 594 |
+
ㄍㄨˊ 593
|
| 595 |
+
ㄍㄨˋ 594
|
| 596 |
+
ㄍㄨ˙ 595
|
| 597 |
+
ㄍㄨㄚ 596
|
| 598 |
+
ㄍㄨㄚˇ 597
|
| 599 |
+
ㄍㄨㄚˋ 598
|
| 600 |
+
ㄍㄨㄛ 599
|
| 601 |
+
ㄍㄨㄛˇ 600
|
| 602 |
+
ㄍㄨㄛˊ 601
|
| 603 |
+
ㄍㄨㄛˋ 602
|
| 604 |
+
ㄍㄨㄛ˙ 603
|
| 605 |
+
ㄍㄨㄞ 604
|
| 606 |
+
ㄍㄨㄞˇ 605
|
| 607 |
+
ㄍㄨㄞˋ 606
|
| 608 |
+
ㄍㄨㄟ 607
|
| 609 |
+
ㄍㄨㄟˇ 608
|
| 610 |
+
ㄍㄨㄟˋ 609
|
| 611 |
+
ㄍㄨㄢ 610
|
| 612 |
+
ㄍㄨㄢˇ 611
|
| 613 |
+
ㄍㄨㄢˋ 612
|
| 614 |
+
ㄍㄨㄣˇ 613
|
| 615 |
+
ㄍㄨㄣˋ 614
|
| 616 |
+
ㄍㄨㄤ 615
|
| 617 |
+
ㄍㄨㄤˇ 616
|
| 618 |
+
ㄍㄨㄤˋ 617
|
| 619 |
+
ㄍㄨㄥ 618
|
| 620 |
+
ㄍㄨㄥˇ 619
|
| 621 |
+
ㄍㄨㄥˋ 620
|
| 622 |
+
ㄎㄚ 621
|
| 623 |
+
ㄎㄚˇ 622
|
| 624 |
+
ㄎㄚˋ 623
|
| 625 |
+
ㄎㄜ 624
|
| 626 |
+
ㄎㄜˇ 625
|
| 627 |
+
ㄎㄜˊ 626
|
| 628 |
+
ㄎㄜˋ 627
|
| 629 |
+
ㄎㄜ˙ 628
|
| 630 |
+
ㄎㄞ 629
|
| 631 |
+
ㄎㄞˇ 630
|
| 632 |
+
ㄎㄞˋ 631
|
| 633 |
+
ㄎㄟ 632
|
| 634 |
+
ㄎㄠ 633
|
| 635 |
+
ㄎㄠˇ 634
|
| 636 |
+
ㄎㄠˋ 635
|
| 637 |
+
ㄎㄡ 636
|
| 638 |
+
ㄎㄡˇ 637
|
| 639 |
+
ㄎㄡˋ 638
|
| 640 |
+
ㄎㄢ 639
|
| 641 |
+
ㄎㄢˇ 640
|
| 642 |
+
ㄎㄢˋ 641
|
| 643 |
+
ㄎㄣˇ 642
|
| 644 |
+
ㄎㄣˋ 643
|
| 645 |
+
ㄎㄤ 644
|
| 646 |
+
ㄎㄤˇ 645
|
| 647 |
+
ㄎㄤˊ 646
|
| 648 |
+
ㄎㄤˋ 647
|
| 649 |
+
ㄎㄥ 648
|
| 650 |
+
ㄎㄥˇ 649
|
| 651 |
+
ㄎㄨ 650
|
| 652 |
+
ㄎㄨˇ 651
|
| 653 |
+
ㄎㄨˋ 652
|
| 654 |
+
ㄎㄨㄚ 653
|
| 655 |
+
ㄎㄨㄚˇ 654
|
| 656 |
+
ㄎㄨㄚˋ 655
|
| 657 |
+
ㄎㄨㄛˇ 656
|
| 658 |
+
ㄎㄨㄛˋ 657
|
| 659 |
+
ㄎㄨㄞ 658
|
| 660 |
+
ㄎㄨㄞˇ 659
|
| 661 |
+
ㄎㄨㄞˋ 660
|
| 662 |
+
ㄎㄨㄟ 661
|
| 663 |
+
ㄎㄨㄟˇ 662
|
| 664 |
+
ㄎㄨㄟˊ 663
|
| 665 |
+
ㄎㄨㄟˋ 664
|
| 666 |
+
ㄎㄨㄢ 665
|
| 667 |
+
ㄎㄨㄢˇ 666
|
| 668 |
+
ㄎㄨㄣ 667
|
| 669 |
+
ㄎㄨㄣˇ 668
|
| 670 |
+
ㄎㄨㄣˋ 669
|
| 671 |
+
ㄎㄨㄤ 670
|
| 672 |
+
ㄎㄨㄤˇ 671
|
| 673 |
+
ㄎㄨㄤˊ 672
|
| 674 |
+
ㄎㄨㄤˋ 673
|
| 675 |
+
ㄎㄨㄥ 674
|
| 676 |
+
ㄎㄨㄥˇ 675
|
| 677 |
+
ㄎㄨㄥˋ 676
|
| 678 |
+
ㄏㄇ 677
|
| 679 |
+
ㄏㄇ˙ 678
|
| 680 |
+
ㄏㄋㄍ 679
|
| 681 |
+
ㄏㄋㄍ˙ 680
|
| 682 |
+
ㄏㄚ 681
|
| 683 |
+
ㄏㄚˇ 682
|
| 684 |
+
ㄏㄚˊ 683
|
| 685 |
+
ㄏㄚˋ 684
|
| 686 |
+
ㄏㄜ 685
|
| 687 |
+
ㄏㄜˊ 686
|
| 688 |
+
ㄏㄜˋ 687
|
| 689 |
+
ㄏㄞ 688
|
| 690 |
+
ㄏㄞˇ 689
|
| 691 |
+
ㄏㄞˊ 690
|
| 692 |
+
ㄏㄞˋ 691
|
| 693 |
+
ㄏㄟ 692
|
| 694 |
+
ㄏㄟˇ 693
|
| 695 |
+
ㄏㄠ 694
|
| 696 |
+
ㄏㄠˇ 695
|
| 697 |
+
ㄏㄠˊ 696
|
| 698 |
+
ㄏㄠˋ 697
|
| 699 |
+
ㄏㄡ 698
|
| 700 |
+
ㄏㄡˇ 699
|
| 701 |
+
ㄏㄡˊ 700
|
| 702 |
+
ㄏㄡˋ 701
|
| 703 |
+
ㄏㄡ˙ 702
|
| 704 |
+
ㄏㄢ 703
|
| 705 |
+
ㄏㄢˇ 704
|
| 706 |
+
ㄏㄢˊ 705
|
| 707 |
+
ㄏㄢˋ 706
|
| 708 |
+
ㄏㄣ 707
|
| 709 |
+
ㄏ���ˇ 708
|
| 710 |
+
ㄏㄣˊ 709
|
| 711 |
+
ㄏㄣˋ 710
|
| 712 |
+
ㄏㄤ 711
|
| 713 |
+
ㄏㄤˇ 712
|
| 714 |
+
ㄏㄤˊ 713
|
| 715 |
+
ㄏㄤˋ 714
|
| 716 |
+
ㄏㄥ 715
|
| 717 |
+
ㄏㄥˊ 716
|
| 718 |
+
ㄏㄥˋ 717
|
| 719 |
+
ㄏㄥ˙ 718
|
| 720 |
+
ㄏㄨ 719
|
| 721 |
+
ㄏㄨˇ 720
|
| 722 |
+
ㄏㄨˊ 721
|
| 723 |
+
ㄏㄨˋ 722
|
| 724 |
+
ㄏㄨㄚ 723
|
| 725 |
+
ㄏㄨㄚˊ 724
|
| 726 |
+
ㄏㄨㄚˋ 725
|
| 727 |
+
ㄏㄨㄛ 726
|
| 728 |
+
ㄏㄨㄛˇ 727
|
| 729 |
+
ㄏㄨㄛˊ 728
|
| 730 |
+
ㄏㄨㄛˋ 729
|
| 731 |
+
ㄏㄨㄛ˙ 730
|
| 732 |
+
ㄏㄨㄞˊ 731
|
| 733 |
+
ㄏㄨㄞˋ 732
|
| 734 |
+
ㄏㄨㄞ˙ 733
|
| 735 |
+
ㄏㄨㄟ 734
|
| 736 |
+
ㄏㄨㄟˇ 735
|
| 737 |
+
ㄏㄨㄟˊ 736
|
| 738 |
+
ㄏㄨㄟˋ 737
|
| 739 |
+
ㄏㄨㄢ 738
|
| 740 |
+
ㄏㄨㄢˇ 739
|
| 741 |
+
ㄏㄨㄢˊ 740
|
| 742 |
+
ㄏㄨㄢˋ 741
|
| 743 |
+
ㄏㄨㄣ 742
|
| 744 |
+
ㄏㄨㄣˇ 743
|
| 745 |
+
ㄏㄨㄣˊ 744
|
| 746 |
+
ㄏㄨㄣˋ 745
|
| 747 |
+
ㄏㄨㄤ 746
|
| 748 |
+
ㄏㄨㄤˇ 747
|
| 749 |
+
ㄏㄨㄤˊ 748
|
| 750 |
+
ㄏㄨㄤˋ 749
|
| 751 |
+
ㄏㄨㄤ˙ 750
|
| 752 |
+
ㄏㄨㄥ 751
|
| 753 |
+
ㄏㄨㄥˇ 752
|
| 754 |
+
ㄏㄨㄥˊ 753
|
| 755 |
+
ㄏㄨㄥˋ 754
|
| 756 |
+
ㄐㄧ 755
|
| 757 |
+
ㄐㄧˇ 756
|
| 758 |
+
ㄐㄧˊ 757
|
| 759 |
+
ㄐㄧˋ 758
|
| 760 |
+
ㄐㄧㄚ 759
|
| 761 |
+
ㄐㄧㄚˇ 760
|
| 762 |
+
ㄐㄧㄚˊ 761
|
| 763 |
+
ㄐㄧㄚˋ 762
|
| 764 |
+
ㄐㄧㄚ˙ 763
|
| 765 |
+
ㄐㄧㄝ 764
|
| 766 |
+
ㄐㄧㄝˇ 765
|
| 767 |
+
ㄐㄧㄝˊ 766
|
| 768 |
+
ㄐㄧㄝˋ 767
|
| 769 |
+
ㄐㄧㄝ˙ 768
|
| 770 |
+
ㄐㄧㄠ 769
|
| 771 |
+
ㄐㄧㄠˇ 770
|
| 772 |
+
ㄐㄧㄠˊ 771
|
| 773 |
+
ㄐㄧㄠˋ 772
|
| 774 |
+
ㄐㄧㄡ 773
|
| 775 |
+
ㄐㄧㄡˇ 774
|
| 776 |
+
ㄐㄧㄡˋ 775
|
| 777 |
+
ㄐㄧㄡ˙ 776
|
| 778 |
+
ㄐㄧㄢ 777
|
| 779 |
+
ㄐㄧㄢˇ 778
|
| 780 |
+
ㄐㄧㄢˋ 779
|
| 781 |
+
ㄐㄧㄣ 780
|
| 782 |
+
ㄐㄧㄣˇ 781
|
| 783 |
+
ㄐㄧㄣˋ 782
|
| 784 |
+
ㄐㄧㄤ 783
|
| 785 |
+
ㄐㄧㄤˇ 784
|
| 786 |
+
ㄐㄧㄤˋ 785
|
| 787 |
+
ㄐㄧㄥ 786
|
| 788 |
+
ㄐㄧㄥˇ 787
|
| 789 |
+
ㄐㄧㄥˋ 788
|
| 790 |
+
ㄐㄩ 789
|
| 791 |
+
ㄐㄩˇ 790
|
| 792 |
+
ㄐㄩˊ 791
|
| 793 |
+
ㄐㄩˋ 792
|
| 794 |
+
ㄐㄩㄝ 793
|
| 795 |
+
ㄐㄩㄝˇ 794
|
| 796 |
+
ㄐㄩㄝˊ 795
|
| 797 |
+
ㄐㄩㄝˋ 796
|
| 798 |
+
ㄐㄩㄢ 797
|
| 799 |
+
ㄐㄩㄢˇ 798
|
| 800 |
+
ㄐㄩㄢˋ 799
|
| 801 |
+
ㄐㄩㄣ 800
|
| 802 |
+
ㄐㄩㄣˇ 801
|
| 803 |
+
ㄐㄩㄣˋ 802
|
| 804 |
+
ㄐㄩㄥ 803
|
| 805 |
+
ㄐㄩㄥˇ 804
|
| 806 |
+
ㄐㄩㄥˋ 805
|
| 807 |
+
ㄑㄧ 806
|
| 808 |
+
ㄑㄧˇ 807
|
| 809 |
+
ㄑㄧˊ 808
|
| 810 |
+
ㄑㄧˋ 809
|
| 811 |
+
ㄑㄧㄚ 810
|
| 812 |
+
ㄑㄧㄚˇ 811
|
| 813 |
+
ㄑㄧㄚˋ 812
|
| 814 |
+
ㄑㄧㄝ 813
|
| 815 |
+
ㄑㄧㄝˇ 814
|
| 816 |
+
ㄑㄧㄝˊ 815
|
| 817 |
+
ㄑㄧㄝˋ 816
|
| 818 |
+
ㄑㄧㄠ 817
|
| 819 |
+
ㄑㄧㄠˇ 818
|
| 820 |
+
ㄑㄧㄠˊ 819
|
| 821 |
+
ㄑㄧㄠˋ 820
|
| 822 |
+
ㄑㄧㄡ 821
|
| 823 |
+
ㄑㄧㄡˇ 822
|
| 824 |
+
ㄑㄧㄡˊ 823
|
| 825 |
+
ㄑㄧㄡˋ 824
|
| 826 |
+
ㄑㄧㄢ 825
|
| 827 |
+
ㄑㄧㄢˇ 826
|
| 828 |
+
ㄑㄧㄢˊ 827
|
| 829 |
+
ㄑㄧㄢˋ 828
|
| 830 |
+
ㄑㄧㄣ 829
|
| 831 |
+
ㄑㄧㄣˇ 830
|
| 832 |
+
ㄑㄧㄣˊ 831
|
| 833 |
+
ㄑㄧㄣˋ 832
|
| 834 |
+
ㄑㄧㄤ 833
|
| 835 |
+
ㄑㄧㄤˇ 834
|
| 836 |
+
ㄑㄧㄤˊ 835
|
| 837 |
+
ㄑㄧㄤˋ 836
|
| 838 |
+
ㄑㄧㄥ 837
|
| 839 |
+
ㄑㄧㄥˇ 838
|
| 840 |
+
ㄑㄧㄥˊ 839
|
| 841 |
+
ㄑㄧㄥˋ 840
|
| 842 |
+
ㄑㄩ 841
|
| 843 |
+
ㄑㄩˇ 842
|
| 844 |
+
ㄑㄩˊ 843
|
| 845 |
+
ㄑㄩˋ 844
|
| 846 |
+
ㄑㄩ˙ 845
|
| 847 |
+
ㄑㄩㄝ 846
|
| 848 |
+
ㄑㄩㄝˊ 847
|
| 849 |
+
ㄑㄩㄝˋ 848
|
| 850 |
+
ㄑㄩㄢ 849
|
| 851 |
+
ㄑㄩㄢˇ 850
|
| 852 |
+
ㄑㄩㄢˊ 851
|
| 853 |
+
ㄑㄩㄢˋ 852
|
| 854 |
+
ㄑㄩㄣ 853
|
| 855 |
+
ㄑㄩㄣˇ 854
|
| 856 |
+
ㄑㄩㄣˊ 855
|
| 857 |
+
ㄑㄩㄥ 856
|
| 858 |
+
ㄑㄩㄥˇ 857
|
| 859 |
+
ㄑㄩㄥˊ 858
|
| 860 |
+
ㄒㄧ 859
|
| 861 |
+
ㄒㄧˇ 860
|
| 862 |
+
ㄒㄧˊ 861
|
| 863 |
+
ㄒㄧˋ 862
|
| 864 |
+
ㄒㄧ˙ 863
|
| 865 |
+
ㄒㄧㄚ 864
|
| 866 |
+
ㄒㄧㄚˇ 865
|
| 867 |
+
ㄒㄧㄚˊ 866
|
| 868 |
+
ㄒㄧㄚˋ 867
|
| 869 |
+
ㄒㄧㄝ 868
|
| 870 |
+
ㄒㄧㄝˇ 869
|
| 871 |
+
ㄒㄧㄝˊ 870
|
| 872 |
+
ㄒㄧㄝˋ 871
|
| 873 |
+
ㄒㄧㄝ˙ 872
|
| 874 |
+
ㄒㄧㄠ 873
|
| 875 |
+
ㄒㄧㄠˇ 874
|
| 876 |
+
ㄒㄧㄠˊ 875
|
| 877 |
+
ㄒㄧㄠˋ 876
|
| 878 |
+
ㄒㄧㄡ 877
|
| 879 |
+
ㄒㄧㄡˇ 878
|
| 880 |
+
ㄒㄧㄡˊ 879
|
| 881 |
+
ㄒㄧㄡˋ 880
|
| 882 |
+
ㄒㄧㄢ 881
|
| 883 |
+
ㄒㄧㄢˇ 882
|
| 884 |
+
ㄒㄧㄢˊ 883
|
| 885 |
+
ㄒㄧㄢˋ 884
|
| 886 |
+
ㄒㄧㄣ 885
|
| 887 |
+
ㄒㄧㄣˇ 886
|
| 888 |
+
ㄒㄧㄣˊ 887
|
| 889 |
+
ㄒㄧㄣˋ 888
|
| 890 |
+
ㄒㄧㄤ 889
|
| 891 |
+
ㄒㄧㄤˇ 890
|
| 892 |
+
ㄒㄧㄤˊ 891
|
| 893 |
+
ㄒㄧㄤˋ 892
|
| 894 |
+
ㄒㄧㄥ 893
|
| 895 |
+
ㄒㄧㄥˇ 894
|
| 896 |
+
ㄒㄧㄥˊ 895
|
| 897 |
+
ㄒㄧㄥˋ 896
|
| 898 |
+
ㄒㄩ 897
|
| 899 |
+
ㄒㄩˇ 898
|
| 900 |
+
ㄒㄩˊ 899
|
| 901 |
+
ㄒㄩˋ 900
|
| 902 |
+
ㄒㄩ˙ 901
|
| 903 |
+
ㄒㄩㄝ 902
|
| 904 |
+
ㄒㄩㄝˇ 903
|
| 905 |
+
ㄒㄩㄝˊ 904
|
| 906 |
+
ㄒㄩㄝˋ 905
|
| 907 |
+
ㄒㄩㄢ 906
|
| 908 |
+
ㄒㄩㄢˇ 907
|
| 909 |
+
ㄒㄩㄢˊ 908
|
| 910 |
+
ㄒㄩㄢˋ 909
|
| 911 |
+
ㄒㄩㄣ 910
|
| 912 |
+
ㄒㄩㄣˊ 911
|
| 913 |
+
ㄒㄩㄣˋ 912
|
| 914 |
+
ㄒㄩㄥ 913
|
| 915 |
+
ㄒㄩㄥˇ 914
|
| 916 |
+
ㄒㄩㄥˊ 915
|
| 917 |
+
ㄒㄩㄥˋ 916
|
| 918 |
+
ㄓ 917
|
| 919 |
+
ㄓˇ 918
|
| 920 |
+
ㄓˊ 919
|
| 921 |
+
ㄓˋ 920
|
| 922 |
+
ㄓㄚ 921
|
| 923 |
+
ㄓㄚˇ 922
|
| 924 |
+
ㄓㄚˊ 923
|
| 925 |
+
ㄓㄚˋ 924
|
| 926 |
+
ㄓㄚ˙ 925
|
| 927 |
+
ㄓㄜ 926
|
| 928 |
+
ㄓㄜˇ 927
|
| 929 |
+
ㄓㄜˊ 928
|
| 930 |
+
ㄓㄜˋ 929
|
| 931 |
+
ㄓㄜ˙ 930
|
| 932 |
+
ㄓㄞ 931
|
| 933 |
+
ㄓㄞˇ 932
|
| 934 |
+
ㄓㄞˊ 933
|
| 935 |
+
ㄓㄞˋ 934
|
| 936 |
+
ㄓㄟˋ 935
|
| 937 |
+
ㄓㄠ 936
|
| 938 |
+
ㄓㄠˇ 937
|
| 939 |
+
ㄓㄠˊ 938
|
| 940 |
+
ㄓㄠˋ 939
|
| 941 |
+
ㄓㄡ 940
|
| 942 |
+
ㄓㄡˇ 941
|
| 943 |
+
ㄓㄡˊ 942
|
| 944 |
+
ㄓㄡˋ 943
|
| 945 |
+
ㄓㄢ 944
|
| 946 |
+
ㄓㄢˇ 945
|
| 947 |
+
ㄓㄢˋ 946
|
| 948 |
+
ㄓㄣ 947
|
| 949 |
+
ㄓㄣˇ 948
|
| 950 |
+
ㄓㄣˋ 949
|
| 951 |
+
ㄓㄤ 950
|
| 952 |
+
ㄓㄤˇ 951
|
| 953 |
+
ㄓㄤˋ 952
|
| 954 |
+
ㄓㄥ 953
|
| 955 |
+
ㄓㄥˇ 954
|
| 956 |
+
ㄓㄥˋ 955
|
| 957 |
+
ㄓㄨ 956
|
| 958 |
+
ㄓㄨˇ 957
|
| 959 |
+
ㄓㄨˊ 958
|
| 960 |
+
ㄓㄨˋ 959
|
| 961 |
+
ㄓㄨㄚ 960
|
| 962 |
+
ㄓㄨㄚˇ 961
|
| 963 |
+
ㄓㄨㄛ 962
|
| 964 |
+
ㄓㄨㄛˊ 963
|
| 965 |
+
ㄓㄨㄛˋ 964
|
| 966 |
+
ㄓㄨㄞ 965
|
| 967 |
+
ㄓㄨㄞˇ 966
|
| 968 |
+
ㄓㄨㄞˋ 967
|
| 969 |
+
ㄓㄨㄟ 968
|
| 970 |
+
ㄓㄨㄟˇ 969
|
| 971 |
+
ㄓㄨㄟˋ 970
|
| 972 |
+
ㄓㄨㄢ 971
|
| 973 |
+
ㄓㄨㄢˇ 972
|
| 974 |
+
ㄓㄨㄢˋ 973
|
| 975 |
+
ㄓㄨㄣ 974
|
| 976 |
+
ㄓㄨㄣˇ 975
|
| 977 |
+
ㄓㄨㄣˋ 976
|
| 978 |
+
ㄓㄨㄤ 977
|
| 979 |
+
ㄓㄨㄤˇ 978
|
| 980 |
+
ㄓㄨㄤˋ 979
|
| 981 |
+
ㄓㄨㄥ 980
|
| 982 |
+
ㄓㄨㄥˇ 981
|
| 983 |
+
ㄓㄨㄥˋ 982
|
| 984 |
+
ㄔ 983
|
| 985 |
+
ㄔˇ 984
|
| 986 |
+
ㄔˊ 985
|
| 987 |
+
ㄔˋ 986
|
| 988 |
+
ㄔ˙ 987
|
| 989 |
+
ㄔㄚ 988
|
| 990 |
+
ㄔㄚˇ 989
|
| 991 |
+
ㄔㄚˊ 990
|
| 992 |
+
ㄔㄚˋ 991
|
| 993 |
+
ㄔㄜ 992
|
| 994 |
+
ㄔㄜˇ 993
|
| 995 |
+
ㄔㄜˋ 994
|
| 996 |
+
ㄔㄞ 995
|
| 997 |
+
ㄔㄞˇ 996
|
| 998 |
+
ㄔㄞˊ 997
|
| 999 |
+
ㄔㄞˋ 998
|
| 1000 |
+
ㄔㄠ 999
|
| 1001 |
+
ㄔㄠˇ 1000
|
| 1002 |
+
ㄔㄠˊ 1001
|
| 1003 |
+
ㄔㄠˋ 1002
|
| 1004 |
+
ㄔㄡ 1003
|
| 1005 |
+
ㄔㄡˇ 1004
|
| 1006 |
+
ㄔㄡˊ 1005
|
| 1007 |
+
ㄔㄡˋ 1006
|
| 1008 |
+
ㄔㄢ 1007
|
| 1009 |
+
ㄔㄢˇ 1008
|
| 1010 |
+
ㄔㄢˊ 1009
|
| 1011 |
+
ㄔㄢˋ 1010
|
| 1012 |
+
ㄔㄣ 1011
|
| 1013 |
+
ㄔㄣˇ 1012
|
| 1014 |
+
ㄔㄣˊ 1013
|
| 1015 |
+
ㄔㄣˋ 1014
|
| 1016 |
+
ㄔㄣ˙ 1015
|
| 1017 |
+
ㄔㄤ 1016
|
| 1018 |
+
ㄔㄤˇ 1017
|
| 1019 |
+
ㄔㄤˊ 1018
|
| 1020 |
+
ㄔㄤˋ 1019
|
| 1021 |
+
ㄔㄥ 1020
|
| 1022 |
+
ㄔㄥˇ 1021
|
| 1023 |
+
ㄔㄥˊ 1022
|
| 1024 |
+
ㄔㄥˋ 1023
|
| 1025 |
+
ㄔㄨ 1024
|
| 1026 |
+
ㄔㄨˇ 1025
|
| 1027 |
+
ㄔㄨˊ 1026
|
| 1028 |
+
ㄔㄨˋ 1027
|
| 1029 |
+
ㄔㄨ˙ 1028
|
| 1030 |
+
ㄔㄨㄚ 1029
|
| 1031 |
+
ㄔㄨㄚˇ 1030
|
| 1032 |
+
ㄔㄨㄛ 1031
|
| 1033 |
+
ㄔㄨㄛˋ 1032
|
| 1034 |
+
ㄔㄨㄞ 1033
|
| 1035 |
+
ㄔㄨㄞˇ 1034
|
| 1036 |
+
ㄔㄨㄞˊ 1035
|
| 1037 |
+
ㄔㄨㄞˋ 1036
|
| 1038 |
+
ㄔㄨㄟ 1037
|
| 1039 |
+
ㄔㄨㄟˊ 1038
|
| 1040 |
+
ㄔㄨㄟˋ 1039
|
| 1041 |
+
ㄔㄨㄢ 1040
|
| 1042 |
+
ㄔㄨㄢˇ 1041
|
| 1043 |
+
ㄔㄨㄢˊ 1042
|
| 1044 |
+
ㄔㄨㄢˋ 1043
|
| 1045 |
+
ㄔㄨㄣ 1044
|
| 1046 |
+
ㄔㄨㄣˇ 1045
|
| 1047 |
+
ㄔㄨㄣˊ 1046
|
| 1048 |
+
ㄔㄨㄤ 1047
|
| 1049 |
+
ㄔㄨ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 1091 |
+
ㄕㄤˇ 1090
|
| 1092 |
+
ㄕㄤˋ 1091
|
| 1093 |
+
ㄕㄤ˙ 1092
|
| 1094 |
+
ㄕㄥ 1093
|
| 1095 |
+
ㄕㄥˇ 1094
|
| 1096 |
+
ㄕㄥˊ 1095
|
| 1097 |
+
ㄕㄥˋ 1096
|
| 1098 |
+
ㄕㄨ 1097
|
| 1099 |
+
ㄕㄨˇ 1098
|
| 1100 |
+
ㄕㄨˊ 1099
|
| 1101 |
+
ㄕㄨˋ 1100
|
| 1102 |
+
ㄕㄨ˙ 1101
|
| 1103 |
+
ㄕㄨㄚ 1102
|
| 1104 |
+
ㄕㄨㄚˇ 1103
|
| 1105 |
+
ㄕㄨㄚˋ 1104
|
| 1106 |
+
ㄕㄨㄛ 1105
|
| 1107 |
+
ㄕㄨㄛˊ 1106
|
| 1108 |
+
ㄕㄨㄛˋ 1107
|
| 1109 |
+
ㄕㄨㄞ 1108
|
| 1110 |
+
ㄕㄨㄞˇ 1109
|
| 1111 |
+
ㄕㄨㄞˋ 1110
|
| 1112 |
+
ㄕㄨㄟˇ 1111
|
| 1113 |
+
ㄕㄨㄟˊ 1112
|
| 1114 |
+
ㄕㄨㄟˋ 1113
|
| 1115 |
+
ㄕㄨㄢ 1114
|
| 1116 |
+
ㄕㄨㄢˋ 1115
|
| 1117 |
+
ㄕㄨㄣˇ 1116
|
| 1118 |
+
ㄕㄨㄣˋ 1117
|
| 1119 |
+
ㄕㄨㄤ 1118
|
| 1120 |
+
ㄕㄨㄤˇ 1119
|
| 1121 |
+
ㄕㄨㄤˋ 1120
|
| 1122 |
+
ㄖ 1121
|
| 1123 |
+
ㄖˋ 1122
|
| 1124 |
+
ㄖㄜˇ 1123
|
| 1125 |
+
ㄖㄜˊ 1124
|
| 1126 |
+
ㄖㄜˋ 1125
|
| 1127 |
+
ㄖㄠˇ 1126
|
| 1128 |
+
ㄖㄠˊ 1127
|
| 1129 |
+
ㄖㄠˋ 1128
|
| 1130 |
+
ㄖ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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
么 幺
|
| 2 |
+
偽 僞
|
| 3 |
+
兌 兑
|
| 4 |
+
卧 臥
|
| 5 |
+
叁 叄
|
| 6 |
+
參 蔘
|
| 7 |
+
只 衹
|
| 8 |
+
台 臺
|
| 9 |
+
吃 喫
|
| 10 |
+
唇 脣
|
| 11 |
+
啓 啟
|
| 12 |
+
囪 囱
|
| 13 |
+
妝 粧
|
| 14 |
+
媪 媼
|
| 15 |
+
媯 嬀
|
| 16 |
+
嫺 嫻
|
| 17 |
+
峯 峰
|
| 18 |
+
床 牀
|
| 19 |
+
悅 悦
|
| 20 |
+
愠 慍
|
| 21 |
+
戶 户
|
| 22 |
+
才 纔
|
| 23 |
+
抬 擡
|
| 24 |
+
挩 捝
|
| 25 |
+
揾 搵
|
| 26 |
+
敍 敘
|
| 27 |
+
敓 敚
|
| 28 |
+
枱 檯
|
| 29 |
+
枴 柺
|
| 30 |
+
核 覈
|
| 31 |
+
梲 棁
|
| 32 |
+
棱 稜
|
| 33 |
+
榅 榲
|
| 34 |
+
檐 簷
|
| 35 |
+
氲 氳
|
| 36 |
+
汙 污
|
| 37 |
+
泄 洩
|
| 38 |
+
涗 涚
|
| 39 |
+
温 溫
|
| 40 |
+
溈 潙
|
| 41 |
+
溼 濕
|
| 42 |
+
潀 潨
|
| 43 |
+
灶 竈
|
| 44 |
+
為 爲
|
| 45 |
+
煙 菸
|
| 46 |
+
煴 熅
|
| 47 |
+
痴 癡
|
| 48 |
+
痹 痺
|
| 49 |
+
皁 皂
|
| 50 |
+
眾 衆
|
| 51 |
+
着 著
|
| 52 |
+
睪 睾
|
| 53 |
+
祕 秘
|
| 54 |
+
稅 税
|
| 55 |
+
粽 糉 糭
|
| 56 |
+
緼 縕
|
| 57 |
+
繮 韁
|
| 58 |
+
缽 鉢
|
| 59 |
+
羣 群
|
| 60 |
+
脫 脱
|
| 61 |
+
腽 膃
|
| 62 |
+
葱 蔥
|
| 63 |
+
蒀 蒕
|
| 64 |
+
蒍 蔿
|
| 65 |
+
藴 蘊
|
| 66 |
+
蛻 蜕
|
| 67 |
+
衛 衞
|
| 68 |
+
裏 裡
|
| 69 |
+
說 説
|
| 70 |
+
踊 踴
|
| 71 |
+
輼 轀
|
| 72 |
+
醖 醞
|
| 73 |
+
針 鍼
|
| 74 |
+
鈎 鉤
|
| 75 |
+
銳 鋭
|
| 76 |
+
閱 閲
|
| 77 |
+
顎 齶
|
| 78 |
+
鮎 鯰
|
| 79 |
+
鰛 鰮
|
| 80 |
+
麪 麵
|
scripts/dec/build_mf.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Phase F: build the shipped decoder = ONE multifunction Core ML model (functions t16/t32/t64/t96, B=3, shared
|
| 2 |
+
weights; t16 single-block GDN, t>=32 chunked c16), fp16 and pal8. usage: build_mf.py [outdir=mf]
|
| 3 |
+
Writes <outdir>/parts/dec_b3_t{T}_{v}.mlpackage, <outdir>/dec_mf_{v}.mlpackage, appends to logs/convert.log."""
|
| 4 |
+
import sys, time, shutil, torch, numpy as np, coremltools as ct
|
| 5 |
+
import coremltools.optimize.coreml as cto
|
| 6 |
+
from coremltools.models.utils import MultiFunctionDescriptor, save_multifunction
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
from qdec import QDec, ane_kwargs
|
| 9 |
+
out = Path(sys.argv[1] if len(sys.argv) > 1 else "mf"); (out / "parts").mkdir(parents=True, exist_ok=True)
|
| 10 |
+
log = open("logs/convert.log", "a")
|
| 11 |
+
def L(m): print(m, flush=True); log.write(m + "\n"); log.flush()
|
| 12 |
+
def size(p): return sum(f.stat().st_size for f in Path(p).rglob("*") if f.is_file()) / 1e6
|
| 13 |
+
L(f"--- Phase F multifunction build {time.ctime()}")
|
| 14 |
+
parts = {"fp16": {}, "pal8": {}}
|
| 15 |
+
for T in (16, 32, 64, 96):
|
| 16 |
+
m = QDec(T, B=3, chunk=16 if T > 16 else None, **ane_kwargs()).eval()
|
| 17 |
+
with torch.no_grad(): tr = torch.jit.trace(m, torch.zeros((3, T), dtype=torch.long))
|
| 18 |
+
t0 = time.time()
|
| 19 |
+
mm = ct.convert(tr, inputs=[ct.TensorType("ids", shape=(3, T), dtype=np.int32)], outputs=[ct.TensorType("lp", dtype=np.float32)],
|
| 20 |
+
compute_precision=ct.precision.FLOAT16, minimum_deployment_target=ct.target.macOS15, convert_to="mlprogram")
|
| 21 |
+
p = out / "parts" / f"dec_b3_t{T}_fp16.mlpackage"; mm.save(str(p)); parts["fp16"][T] = p
|
| 22 |
+
L(f"OK part t{T} fp16 {time.time()-t0:.1f}s {size(p):.1f} MB")
|
| 23 |
+
for v in ("fp16",):
|
| 24 |
+
d = MultiFunctionDescriptor()
|
| 25 |
+
for T, p in parts[v].items(): d.add_function(str(p), src_function_name="main", target_function_name=f"t{T}")
|
| 26 |
+
d.default_function_name = "t16"
|
| 27 |
+
dst = out / f"dec_mf_{v}.mlpackage"; shutil.rmtree(dst, ignore_errors=True); save_multifunction(d, str(dst))
|
| 28 |
+
L(f"OK multifunction {v}: {size(dst):.1f} MB (separate parts total {sum(size(p) for p in parts[v].values()):.1f} MB) -> {dst}")
|
| 29 |
+
# pal8: palettize the merged fp16 multifunction model (one k-means per shared weight -> still shared)
|
| 30 |
+
t0 = time.time()
|
| 31 |
+
try:
|
| 32 |
+
mf = ct.models.MLModel(str(out / "dec_mf_fp16.mlpackage"), skip_model_load=True)
|
| 33 |
+
pm = cto.palettize_weights(mf, cto.OptimizationConfig(global_config=cto.OpPalettizerConfig(nbits=8, mode="kmeans")))
|
| 34 |
+
dst = out / "dec_mf_pal8.mlpackage"; shutil.rmtree(dst, ignore_errors=True); pm.save(str(dst))
|
| 35 |
+
L(f"OK multifunction pal8 (palettized after merge): {size(dst):.1f} MB, {time.time()-t0:.0f}s -> {dst}")
|
| 36 |
+
except Exception as e:
|
| 37 |
+
L(f"FAIL multifunction pal8 after merge: {type(e).__name__}: {str(e).splitlines()[0][:300]}")
|
scripts/dec/common.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared helpers: tokenizer, bucket choice, scoring API over any backend that maps ids[B,T] -> lp[B,T-1]."""
|
| 2 |
+
import json, os
|
| 3 |
+
import numpy as np
|
| 4 |
+
from tokenizers import Tokenizer
|
| 5 |
+
from qdec import HF
|
| 6 |
+
|
| 7 |
+
TOK = Tokenizer.from_file(f"{HF}/tokenizer.json")
|
| 8 |
+
BOS = TOK.token_to_id("<bos>")
|
| 9 |
+
PAD = TOK.token_to_id("<pad>")
|
| 10 |
+
BUCKETS = [16, 32, 64, 96]
|
| 11 |
+
CACHE = os.environ.get("MCBPMF_LM_WORK", ".") + "/results/walk2/dec_cache.v2.f3c75593dbd9.7ab4ee7.fdde1635a116.jsonl"
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def ids(text):
|
| 15 |
+
return [BOS] + TOK.encode(text).ids
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def bucket(n):
|
| 19 |
+
for b in BUCKETS:
|
| 20 |
+
if n <= b:
|
| 21 |
+
return b
|
| 22 |
+
raise ValueError(f"sequence of {n} tokens > {BUCKETS[-1]}")
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def pack(seqs, B, T):
|
| 26 |
+
x = np.full((B, T), PAD, dtype=np.int32)
|
| 27 |
+
for i, s in enumerate(seqs):
|
| 28 |
+
x[i, :len(s)] = s
|
| 29 |
+
return x
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def sums(lp, seqs):
|
| 33 |
+
return [float(np.asarray(lp[i, :len(s) - 1], dtype=np.float64).sum()) for i, s in enumerate(seqs)]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def load_cache():
|
| 37 |
+
return [json.loads(l) for l in open(CACHE, encoding="utf-8")]
|
scripts/dec/convert.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Task 2: convert QDec to Core ML. usage: convert.py B T [variant...]; variants fp16 | pal8 | lin8.
|
| 2 |
+
Writes models/dec_b{B}_t{T}_{variant}.mlpackage and appends one line per variant to logs/convert.log."""
|
| 3 |
+
import sys, time, traceback, torch, numpy as np, coremltools as ct
|
| 4 |
+
import coremltools.optimize.coreml as cto
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from qdec import QDec, ane_kwargs
|
| 7 |
+
|
| 8 |
+
B, T = int(sys.argv[1]), int(sys.argv[2])
|
| 9 |
+
variants = sys.argv[3:] or ["fp16"]
|
| 10 |
+
Path("models").mkdir(exist_ok=True); Path("logs").mkdir(exist_ok=True)
|
| 11 |
+
log = open("logs/convert.log", "a")
|
| 12 |
+
def L(msg):
|
| 13 |
+
print(msg); log.write(msg + "\n"); log.flush()
|
| 14 |
+
|
| 15 |
+
import os
|
| 16 |
+
CH = int(os.environ.get('CHUNK', '0')) or None
|
| 17 |
+
m = QDec(T, B=B, chunk=CH, **ane_kwargs()).eval()
|
| 18 |
+
SUF = f'c{CH}' if CH else ''
|
| 19 |
+
ex = torch.zeros((B, T), dtype=torch.int32)
|
| 20 |
+
t0 = time.time()
|
| 21 |
+
with torch.no_grad():
|
| 22 |
+
tr = torch.jit.trace(m, ex.long())
|
| 23 |
+
base = None
|
| 24 |
+
for v in variants:
|
| 25 |
+
name = f"models/dec_b{B}_t{T}_{v}{SUF}.mlpackage"
|
| 26 |
+
try:
|
| 27 |
+
t0 = time.time()
|
| 28 |
+
if base is None:
|
| 29 |
+
base = ct.convert(tr, inputs=[ct.TensorType("ids", shape=(B, T), dtype=np.int32)],
|
| 30 |
+
outputs=[ct.TensorType("lp", dtype=np.float32)],
|
| 31 |
+
compute_precision=ct.precision.FLOAT16,
|
| 32 |
+
minimum_deployment_target=ct.target.macOS15, convert_to="mlprogram")
|
| 33 |
+
mm = base
|
| 34 |
+
if v == "pal8":
|
| 35 |
+
mm = cto.palettize_weights(base, cto.OptimizationConfig(global_config=cto.OpPalettizerConfig(nbits=8, mode="kmeans")))
|
| 36 |
+
elif v == "lin8":
|
| 37 |
+
mm = cto.linear_quantize_weights(base, cto.OptimizationConfig(global_config=cto.OpLinearQuantizerConfig(mode="linear_symmetric")))
|
| 38 |
+
mm.save(name)
|
| 39 |
+
sz = sum(f.stat().st_size for f in Path(name).rglob("*") if f.is_file()) / 1e6
|
| 40 |
+
L(f"OK b{B} t{T} {v}{SUF}: {time.time()-t0:.1f}s {sz:.1f} MB -> {name}")
|
| 41 |
+
except Exception as e:
|
| 42 |
+
L(f"FAIL b{B} t{T} {v}{SUF}: {type(e).__name__}: {str(e).splitlines()[0][:300]}")
|
| 43 |
+
traceback.print_exc()
|
scripts/enc/build_coreml.py
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Build SlothE-T 12M Core ML ML Programs directly with the MIL builder (no torch tracing).
|
| 2 |
+
|
| 3 |
+
Math mirrors upstream slothe.cpp (ggml): F16 islands (embed, blocks 0/11, head), ternary linears as
|
| 4 |
+
SubLN -> [A8 fake-quant per 256-block, ggml Q8_K] -> x @ {-1,0,1}^T * scale[out] (int-dot-then-scale,
|
| 5 |
+
like ggml_vec_dot_tq2_0_q8_K), GQA 8q/2kv, QK-norm, NEOX RoPE, SwiGLU, no causal mask.
|
| 6 |
+
Fixed-length buckets: input ids int32 [1,L] (+ key mask fp16 [1,L], 1=real 0=pad); padded keys get
|
| 7 |
+
-1e4 so real positions are exactly the unpadded forward. Output logits fp16 [1,L,8342]
|
| 8 |
+
(legal-mask log-softmax on CPU) or, with --lsm, masked log-probs from an in-graph legal table.
|
| 9 |
+
|
| 10 |
+
usage: build_coreml.py --L 16 --wmode fp16|pal2|w8 [--act8] [--lsm] [--out path.mlpackage]
|
| 11 |
+
"""
|
| 12 |
+
import argparse, json
|
| 13 |
+
import numpy as np
|
| 14 |
+
import coremltools as ct
|
| 15 |
+
from coremltools.converters.mil import Builder as mb
|
| 16 |
+
from coremltools.converters.mil.mil import types
|
| 17 |
+
|
| 18 |
+
ap = argparse.ArgumentParser()
|
| 19 |
+
ap.add_argument("--L", type=int, default=16)
|
| 20 |
+
ap.add_argument("--size", default="12m", choices=["12m", "25m"])
|
| 21 |
+
ap.add_argument("--wmode", default="fp16", choices=["fp16", "pal2", "w8"])
|
| 22 |
+
ap.add_argument("--act8", action="store_true")
|
| 23 |
+
ap.add_argument("--lsm", action="store_true", help="in-graph legal-mask log-softmax")
|
| 24 |
+
ap.add_argument("--out")
|
| 25 |
+
ap.add_argument("--taps", action="store_true", help="debug taps inside block 1")
|
| 26 |
+
ap.add_argument("--prescale", action="store_true", help="RMSNorm on x/absmax(x): avoids fp16 subnormal x^2 flush on ANE")
|
| 27 |
+
ap.add_argument("--silu", default="tanh", choices=["silu", "sigmoid", "tanh", "exp"], help="SiLU formulation (ANE silu op is approximate)")
|
| 28 |
+
ap.add_argument("--newton", type=int, default=0, help="Newton steps refining rsqrt (ANE rsqrt is approximate)")
|
| 29 |
+
ap.add_argument("--embin", action="store_true", help="input = embedding rows fp16 [1,L,256] gathered by the caller (keeps the whole graph on ANE)")
|
| 30 |
+
ap.add_argument("--salt", type=int, default=0, help="perturb the pad-key bias constant (1e4 + 8*salt; no effect on outputs) -> a never-seen model hash for cold-load timing")
|
| 31 |
+
ap.add_argument("--debug", action="store_true", help="also output every block residual")
|
| 32 |
+
ap.add_argument("--rmsln", action="store_true", help="RMSNorm via layer_norm on [x,-x]")
|
| 33 |
+
a = ap.parse_args()
|
| 34 |
+
W = np.load(f"work/w{a.size}.npz"); C = json.load(open(f"work/cfg{a.size}.json"))
|
| 35 |
+
L, D, H, KV, DIM = a.L, C["depth"], C["heads"], C["kv"], C["dim"]
|
| 36 |
+
HD = DIM // H; EPS = 1e-6
|
| 37 |
+
h16 = lambda x: np.asarray(x, dtype=np.float16)
|
| 38 |
+
|
| 39 |
+
def rms(x, w, axes=(-1,)):
|
| 40 |
+
if a.rmsln: # mean([x,-x]) = 0 -> layer_norm == rms_norm; ANE has a native, better-conditioned layer_norm
|
| 41 |
+
n = x.shape[-1]
|
| 42 |
+
y = mb.layer_norm(x=mb.concat(values=[x, mb.mul(x=x, y=h16(-1.0))], axis=-1), axes=[-1], epsilon=EPS)
|
| 43 |
+
y = mb.slice_by_index(x=y, begin=[0] * (len(x.shape) - 1) + [0], end=list(x.shape[:-1]) + [n])
|
| 44 |
+
return mb.mul(x=y, y=h16(w))
|
| 45 |
+
if a.prescale: # rms(x) == rms(x/c); c = row absmax keeps x^2 in fp16 normal range (ANE flushes subnormals)
|
| 46 |
+
inv = mb.real_div(x=h16(1.0), y=mb.maximum(x=mb.reduce_max(x=mb.abs(x=x), axes=list(axes), keep_dims=True), y=h16(1.0 / 256)))
|
| 47 |
+
xs = mb.mul(x=x, y=inv)
|
| 48 |
+
ms = mb.reduce_mean(x=mb.mul(x=xs, y=xs), axes=list(axes), keep_dims=True)
|
| 49 |
+
ms = mb.add(x=ms, y=mb.mul(x=mb.mul(x=inv, y=inv), y=h16(EPS)))
|
| 50 |
+
return mb.mul(x=mb.mul(x=xs, y=mb.rsqrt(x=ms)), y=h16(w))
|
| 51 |
+
ms = mb.reduce_mean(x=mb.mul(x=x, y=x), axes=list(axes), keep_dims=True)
|
| 52 |
+
ms = mb.add(x=ms, y=h16(EPS)) if a.newton else ms
|
| 53 |
+
r = mb.rsqrt(x=ms, epsilon=EPS) if not a.newton else mb.rsqrt(x=ms)
|
| 54 |
+
for _ in range(a.newton): # r <- r * (1.5 - 0.5 * ms * r^2)
|
| 55 |
+
r = mb.mul(x=r, y=mb.sub(x=h16(1.5), y=mb.mul(x=mb.mul(x=ms, y=h16(0.5)), y=mb.mul(x=r, y=r))))
|
| 56 |
+
return mb.mul(x=mb.mul(x=x, y=r), y=h16(w))
|
| 57 |
+
|
| 58 |
+
def act8(x, n): # x [L, n] -> per-256-block absmax int8 fake-quant (ggml Q8_K math, iscale=127/amax)
|
| 59 |
+
xb = mb.reshape(x=x, shape=[L, n // 256, 256])
|
| 60 |
+
am = mb.reduce_max(x=mb.abs(x=xb), axes=[-1], keep_dims=True)
|
| 61 |
+
am = mb.maximum(x=am, y=h16(1e-5))
|
| 62 |
+
q = mb.round(x=mb.mul(x=xb, y=mb.real_div(x=h16(127.0), y=am)))
|
| 63 |
+
return mb.reshape(x=mb.mul(x=q, y=mb.real_div(x=am, y=h16(127.0))), shape=[L, n])
|
| 64 |
+
|
| 65 |
+
def silu(g):
|
| 66 |
+
if a.silu == "silu": return mb.silu(x=g)
|
| 67 |
+
if a.silu == "sigmoid": return mb.mul(x=g, y=mb.sigmoid(x=g))
|
| 68 |
+
if a.silu == "tanh": return mb.mul(x=g, y=mb.add(x=h16(0.5), y=mb.mul(x=h16(0.5), y=mb.tanh(x=mb.mul(x=g, y=h16(0.5))))))
|
| 69 |
+
return mb.real_div(x=g, y=mb.add(x=h16(1.0), y=mb.exp(x=mb.mul(x=g, y=h16(-1.0)))))
|
| 70 |
+
|
| 71 |
+
TAPS = []
|
| 72 |
+
def tap(i, name, v):
|
| 73 |
+
if a.taps and i == 1:
|
| 74 |
+
TAPS.append(mb.identity(x=v, name=f't_{name}'))
|
| 75 |
+
return v
|
| 76 |
+
|
| 77 |
+
def lin(i, s, x, fp, n_in):
|
| 78 |
+
if fp:
|
| 79 |
+
return mb.linear(x=x, weight=h16(W[f"{i}.{s}.w"]))
|
| 80 |
+
x = tap(i, f"pre_{s}", rms(x, W[f"{i}.{s}.pre"]))
|
| 81 |
+
if a.act8:
|
| 82 |
+
x = act8(x, n_in)
|
| 83 |
+
y = mb.linear(x=x, weight=h16(W[f"{i}.{s}.q"]), name=f"tern_{i}_{s}")
|
| 84 |
+
tap(i, f"raw_{s}", y)
|
| 85 |
+
return tap(i, f"lin_{s}", mb.mul(x=y, y=h16(W[f"{i}.{s}.s"])))
|
| 86 |
+
|
| 87 |
+
half = HD // 2
|
| 88 |
+
freq = 1.0 / (10000 ** (np.arange(half) / half))
|
| 89 |
+
ang = np.arange(L)[:, None] * freq[None]
|
| 90 |
+
COS = h16(np.concatenate([np.cos(ang)] * 2, -1))[None] # [1, L, HD]
|
| 91 |
+
SIN = h16(np.concatenate([np.sin(ang)] * 2, -1))[None]
|
| 92 |
+
SIGN = h16(np.concatenate([-np.ones(half), np.ones(half)])) # rot(x) = [-x2, x1]
|
| 93 |
+
|
| 94 |
+
def rope(t): # t [nh, L, HD]
|
| 95 |
+
x1 = mb.slice_by_index(x=t, begin=[0, 0, 0], end=[0, 0, half], end_mask=[True, True, False])
|
| 96 |
+
x2 = mb.slice_by_index(x=t, begin=[0, 0, half], end=[0, 0, 0], end_mask=[True, True, True])
|
| 97 |
+
rot = mb.mul(x=mb.concat(values=[x2, x1], axis=-1), y=SIGN)
|
| 98 |
+
return mb.add(x=mb.mul(x=t, y=COS), y=mb.mul(x=rot, y=SIN))
|
| 99 |
+
|
| 100 |
+
inputs = {"ids": mb.TensorSpec(shape=(1, L, DIM) if a.embin else (1, L), dtype=types.fp16 if a.embin else types.int32),
|
| 101 |
+
"mask": mb.TensorSpec(shape=(1, L), dtype=types.fp16)}
|
| 102 |
+
if a.lsm:
|
| 103 |
+
LEGAL_BIAS = h16(np.where(np.load(__import__("common").hf("syl2legal.npz"))["mask"], 0.0, -1e4))
|
| 104 |
+
|
| 105 |
+
@mb.program(input_specs=list(inputs.values()), opset_version=ct.target.macOS15)
|
| 106 |
+
def prog(ids, mask):
|
| 107 |
+
if a.embin: # 'ids' carries the caller-gathered fp16 embedding rows
|
| 108 |
+
x = mb.reshape(x=ids, shape=[L, DIM])
|
| 109 |
+
else:
|
| 110 |
+
idv = mb.reshape(x=ids, shape=[L])
|
| 111 |
+
x = mb.gather(x=h16(W["embed"]), indices=idv, axis=0) # [L, DIM]
|
| 112 |
+
x = rms(x, W["embed_norm"])
|
| 113 |
+
kb = mb.reshape(x=mb.mul(x=mb.sub(x=mask, y=h16(1.0)), y=h16(1e4 + 8 * a.salt)), shape=[1, 1, L])
|
| 114 |
+
dbg = []
|
| 115 |
+
for i in range(D):
|
| 116 |
+
fp = i == 0 or i == D - 1
|
| 117 |
+
h = tap(i, "h", rms(x, W[f"{i}.n1"]))
|
| 118 |
+
q = mb.transpose(x=mb.reshape(x=lin(i, "q", h, fp, DIM), shape=[L, H, HD]), perm=[1, 0, 2])
|
| 119 |
+
k = mb.transpose(x=mb.reshape(x=lin(i, "k", h, fp, DIM), shape=[L, KV, HD]), perm=[1, 0, 2])
|
| 120 |
+
v = mb.transpose(x=mb.reshape(x=lin(i, "v", h, fp, DIM), shape=[L, KV, HD]), perm=[1, 0, 2])
|
| 121 |
+
q = tap(i, "qr", rope(tap(i, "qn", rms(q, W[f"{i}.qn"])))); k = rope(rms(k, W[f"{i}.kn"]))
|
| 122 |
+
rep = H // KV # repeat_interleave on head axis: head j uses kv j // rep
|
| 123 |
+
k = mb.reshape(x=mb.tile(x=mb.reshape(x=k, shape=[KV, 1, L, HD]), reps=[1, rep, 1, 1]), shape=[H, L, HD])
|
| 124 |
+
v = mb.reshape(x=mb.tile(x=mb.reshape(x=v, shape=[KV, 1, L, HD]), reps=[1, rep, 1, 1]), shape=[H, L, HD])
|
| 125 |
+
s = mb.matmul(x=mb.mul(x=q, y=h16(1.0 / np.sqrt(HD))), y=k, transpose_y=True) # [H, L, L]
|
| 126 |
+
p = tap(i, "probs", mb.softmax(x=mb.add(x=tap(i, "scores", s), y=kb), axis=-1))
|
| 127 |
+
o = mb.reshape(x=mb.transpose(x=mb.matmul(x=p, y=v), perm=[1, 0, 2]), shape=[L, H * HD])
|
| 128 |
+
x = tap(i, "x_attn", mb.add(x=x, y=lin(i, "o", tap(i, "o", o), fp, DIM)))
|
| 129 |
+
h2 = rms(x, W[f"{i}.n2"])
|
| 130 |
+
g = lin(i, "w1", h2, fp, DIM); u = lin(i, "w3", h2, fp, DIM)
|
| 131 |
+
x = mb.add(x=x, y=lin(i, "w2", tap(i, "ff", mb.mul(x=tap(i, "silu", silu(g)), y=u)), fp, C["ffn"]))
|
| 132 |
+
if a.debug:
|
| 133 |
+
dbg.append(mb.identity(x=x, name=f"blk{i}"))
|
| 134 |
+
x = rms(x, W["norm"])
|
| 135 |
+
lg = mb.linear(x=x, weight=h16(W["head"])) # [L, n_char]
|
| 136 |
+
if a.lsm:
|
| 137 |
+
lg = mb.add(x=lg, y=mb.gather(x=LEGAL_BIAS, indices=idv, axis=0))
|
| 138 |
+
lg = mb.sub(x=lg, y=mb.reduce_log_sum_exp(x=lg, axes=[-1], keep_dims=True))
|
| 139 |
+
out = mb.reshape(x=lg, shape=[1, L, C["n_char"]], name="logits")
|
| 140 |
+
return (out, *dbg, *TAPS) if (a.debug or a.taps) else out
|
| 141 |
+
|
| 142 |
+
m = ct.convert(prog, convert_to="mlprogram", compute_precision=ct.precision.FLOAT16,
|
| 143 |
+
minimum_deployment_target=ct.target.macOS15, compute_units=ct.ComputeUnit.ALL,
|
| 144 |
+
skip_model_load=True)
|
| 145 |
+
if a.wmode in ("pal2", "w8"):
|
| 146 |
+
from coremltools.converters.mil.mil.passes.graph_pass import PassOption # noqa
|
| 147 |
+
import coremltools.optimize.coreml as cto
|
| 148 |
+
tern_consts = set()
|
| 149 |
+
for f in m._mil_program.functions.values():
|
| 150 |
+
for op in f.operations:
|
| 151 |
+
if op.op_type == "linear" and op.name.startswith("tern_"):
|
| 152 |
+
tern_consts.add(op.weight.op.name)
|
| 153 |
+
if a.wmode == "pal2":
|
| 154 |
+
cfg = cto.OptimizationConfig(op_name_configs={n: cto.OpPalettizerConfig(mode="unique", weight_threshold=1)
|
| 155 |
+
for n in tern_consts})
|
| 156 |
+
m = cto.palettize_weights(m, cfg)
|
| 157 |
+
else: # int8 per-channel symmetric on all weights >= 2048 elements (ternary codes exact in int8)
|
| 158 |
+
cfg = cto.OptimizationConfig(global_config=cto.OpLinearQuantizerConfig(mode="linear_symmetric", dtype="int8",
|
| 159 |
+
granularity="per_channel", weight_threshold=2048))
|
| 160 |
+
m = cto.linear_quantize_weights(m, cfg)
|
| 161 |
+
out = a.out or f"models/enc{a.size}_L{L}_{a.wmode}{'_a8' if a.act8 else ''}{'_lsm' if a.lsm else ''}{'_ln' if a.rmsln else ''}{'_emb' if a.embin else ''}{'_ps' if a.prescale else ''}{'_' + a.silu if a.silu != 'tanh' else ''}{'_dbg' if a.debug else ''}{'_taps' if a.taps else ''}{'_nt%d' % a.newton if a.newton else ''}.mlpackage"
|
| 162 |
+
m.save(out)
|
| 163 |
+
print("saved", out)
|
scripts/enc/common.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared helpers: dev sentences (walk2 snapshot, read-only), ids + legal mask via sloth's own
|
| 2 |
+
zhuyin_fmt/slothe_rt (imported read-only; run with PYTHONDONTWRITEBYTECODE=1)."""
|
| 3 |
+
import json, os, sys
|
| 4 |
+
import numpy as np
|
| 5 |
+
W = os.environ.get("MCBPMF_LM_WORK", ".") # research workspace root
|
| 6 |
+
sys.dont_write_bytecode = True
|
| 7 |
+
sys.path.insert(0, W + "/sloth")
|
| 8 |
+
import zhuyin_fmt # noqa
|
| 9 |
+
from slothe_rt import hf, UNK_CHAR_ID # noqa
|
| 10 |
+
SYL = json.load(open(hf("syl_vocab.json"), encoding="utf-8"))
|
| 11 |
+
MASK = np.load(hf("syl2legal.npz"))["mask"]
|
| 12 |
+
|
| 13 |
+
def dev_sentences(set_name="dev"):
|
| 14 |
+
snap = f"{W}/walk2/snap/{set_name}"
|
| 15 |
+
sents = {json.loads(l)["sent_id"]: json.loads(l) for l in open(snap + "/sentences.jsonl", encoding="utf-8") if l.strip()}
|
| 16 |
+
walks = [json.loads(l) for l in open(snap + "/walks.jsonl", encoding="utf-8") if l.strip()]
|
| 17 |
+
return [(w["sent_id"], sents[w["sent_id"]]["readings"]) for w in walks]
|
| 18 |
+
|
| 19 |
+
def ids_of(readings):
|
| 20 |
+
_, ids, _ = zhuyin_fmt.readings_to_ids(readings, SYL)
|
| 21 |
+
return np.asarray(ids, dtype=np.int32)
|
| 22 |
+
|
| 23 |
+
def logprobs(ids, lg):
|
| 24 |
+
legal = MASK[ids]
|
| 25 |
+
z = np.where(legal, lg.astype(np.float32), -np.inf) # float32, exactly slothe_rt.SlothE.logprobs
|
| 26 |
+
mx = z.max(1, keepdims=True)
|
| 27 |
+
return z - (mx + np.log(np.exp(z - mx).sum(1, keepdims=True))), legal
|
scripts/enc/extract_weights.py
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Extract SlothE-T 12M deploy weights from the fp32 master safetensors (upstream quantizer:
|
| 2 |
+
weight_quant_ternary median, per output channel) -> work/w12m.npz, and cross-check the ternary
|
| 3 |
+
codes/scales and the fp islands against the shipped TQ2_0/F16 GGUF that libslothe loads."""
|
| 4 |
+
import glob, json, os, sys, argparse
|
| 5 |
+
import numpy as np, torch
|
| 6 |
+
from safetensors.torch import load_file
|
| 7 |
+
import gguf
|
| 8 |
+
from gguf.quants import dequantize
|
| 9 |
+
|
| 10 |
+
ap = argparse.ArgumentParser(); ap.add_argument("--size", default="12m", choices=["12m", "25m"]); SZ = ap.parse_args().size
|
| 11 |
+
F = {"12m": ("12m/model.safetensors", "12m/slothe_config.json", "slothe-t-12m-256x12.gguf"),
|
| 12 |
+
"25m": ("model.safetensors", "slothe_config.json", "slothe-t-25m.gguf")}[SZ]
|
| 13 |
+
SNAP = glob.glob(os.path.expanduser("~/.cache/huggingface/hub/models--Luigi--sloth-ime-models/snapshots/e7d13c9c*/"))[0]
|
| 14 |
+
cfg = json.load(open(SNAP + F[1]))
|
| 15 |
+
sd = {k: v.float() for k, v in load_file(SNAP + F[0]).items()}
|
| 16 |
+
D = cfg["depth"]
|
| 17 |
+
out = {}
|
| 18 |
+
def tern(w): # verbatim math of slothe_torch.weight_quant_ternary(mode="median")
|
| 19 |
+
s = w.abs().median(dim=1, keepdim=True).values.clamp_(min=1e-5)
|
| 20 |
+
q = (w / s).round().clamp_(-1, 1)
|
| 21 |
+
return q.numpy().astype(np.int8), s[:, 0].numpy()
|
| 22 |
+
out["embed"] = sd["embed.weight"].numpy(); out["embed_norm"] = sd["embed_norm.w"].numpy()
|
| 23 |
+
out["norm"] = sd["norm.w"].numpy(); out["head"] = sd["head.weight"].numpy()
|
| 24 |
+
LIN = {"q": "attn.q", "k": "attn.k", "v": "attn.v", "o": "attn.o", "w1": "ffn.w1", "w3": "ffn.w3", "w2": "ffn.w2"}
|
| 25 |
+
for i in range(D):
|
| 26 |
+
fp = i == 0 or i == D - 1
|
| 27 |
+
p = f"blocks.{i}."
|
| 28 |
+
out[f"{i}.n1"] = sd[p + "n1.w"].numpy(); out[f"{i}.n2"] = sd[p + "n2.w"].numpy()
|
| 29 |
+
out[f"{i}.qn"] = sd[p + "attn.qn.w"].numpy(); out[f"{i}.kn"] = sd[p + "attn.kn.w"].numpy()
|
| 30 |
+
for s, n in LIN.items():
|
| 31 |
+
w = sd[p + n + ".weight"]
|
| 32 |
+
if fp:
|
| 33 |
+
out[f"{i}.{s}.w"] = w.numpy()
|
| 34 |
+
else:
|
| 35 |
+
q, sc = tern(w)
|
| 36 |
+
out[f"{i}.{s}.q"] = q; out[f"{i}.{s}.s"] = sc
|
| 37 |
+
out[f"{i}.{s}.pre"] = sd[p + n + ".pre.w"].numpy()
|
| 38 |
+
np.savez(f"work/w{SZ}.npz", **out)
|
| 39 |
+
json.dump(cfg, open(f"work/cfg{SZ}.json", "w"))
|
| 40 |
+
# ---- cross-check against the GGUF libslothe loads ----
|
| 41 |
+
r = gguf.GGUFReader(SNAP + F[2])
|
| 42 |
+
G = {t.name: t for t in r.tensors}
|
| 43 |
+
def g(name):
|
| 44 |
+
t = G[name]; shp = [int(x) for x in reversed(t.shape)]
|
| 45 |
+
return dequantize(t.data, t.tensor_type).reshape(shp).astype(np.float32)
|
| 46 |
+
GN = {"q": "attn_q", "k": "attn_k", "v": "attn_v", "o": "attn_output", "w1": "ffn_gate", "w3": "ffn_up", "w2": "ffn_down"}
|
| 47 |
+
worst_t, worst_f, code_mis = 0.0, 0.0, 0
|
| 48 |
+
for i in range(D):
|
| 49 |
+
fp = i == 0 or i == D - 1
|
| 50 |
+
for s, gn in GN.items():
|
| 51 |
+
gw = g(f"blk.{i}.{gn}.weight")
|
| 52 |
+
if fp:
|
| 53 |
+
worst_f = max(worst_f, float(np.abs(gw - out[f"{i}.{s}.w"].astype(np.float16).astype(np.float32)).max()))
|
| 54 |
+
else:
|
| 55 |
+
mine = out[f"{i}.{s}.q"] * out[f"{i}.{s}.s"][:, None].astype(np.float16).astype(np.float32)
|
| 56 |
+
pad = gw[:, mine.shape[1]:]; assert not pad.any(), "nonzero GGUF in-feature padding"
|
| 57 |
+
gw = gw[:, :mine.shape[1]] # GGUF pads ternary in-features to a multiple of 256 with zeros
|
| 58 |
+
worst_t = max(worst_t, float(np.abs(gw - mine).max()))
|
| 59 |
+
code_mis += int((np.sign(gw) != out[f"{i}.{s}.q"]).sum())
|
| 60 |
+
hd = g("output.weight"); worst_f = max(worst_f, float(np.abs(hd - out["head"].astype(np.float16).astype(np.float32)).max()))
|
| 61 |
+
print(json.dumps({"ternary_max_abs_vs_gguf": worst_t, "ternary_code_mismatch": code_mis,
|
| 62 |
+
"fp_island_max_abs_vs_gguf(f16)": worst_f,
|
| 63 |
+
"n_params": int(sum(v.size for v in out.values()))}))
|
scripts/enc/make_multifunction.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Package the per-L bucket models into ONE multifunction .mlpackage (functions L8, L16, ...; default L16),
|
| 2 |
+
coremltools save_multifunction dedups the shared weights. usage: make_multifunction.py 25m fp16_emb [8,16,32,64,256]"""
|
| 3 |
+
import sys, subprocess
|
| 4 |
+
import coremltools as ct
|
| 5 |
+
size, var = sys.argv[1], sys.argv[2]
|
| 6 |
+
Ls = [int(x) for x in (sys.argv[3] if len(sys.argv) > 3 else "8,16,32,64,256").split(",")]
|
| 7 |
+
d = ct.utils.MultiFunctionDescriptor()
|
| 8 |
+
for L in Ls:
|
| 9 |
+
d.add_function(f"models/enc{size}_L{L}_{var}.mlpackage", src_function_name="main", target_function_name=f"L{L}")
|
| 10 |
+
d.default_function_name = "L16"
|
| 11 |
+
out = f"models/enc{size}_multi_{var}.mlpackage"
|
| 12 |
+
ct.utils.save_multifunction(d, out)
|
| 13 |
+
du = lambda p: subprocess.run(["du", "-sk", p], capture_output=True, text=True).stdout.split()[0]
|
| 14 |
+
sep = sum(int(du(f"models/enc{size}_L{L}_{var}.mlpackage")) for L in Ls)
|
| 15 |
+
print(f"{out}: {int(du(out))/1024:.1f} MB vs separate packages {sep/1024:.1f} MB")
|
scripts/enc/model_np.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""numpy fp32 forward of SlothE-T 12M mirroring upstream slothe.cpp (ggml) math: F16 islands,
|
| 2 |
+
ternary linears = SubLN -> (A8: per-256-block absmax int8, ggml Q8_K) -> {-1,0,1}*scale.
|
| 3 |
+
Used to check the Core ML graph structure and activation ranges; ggml itself is the reference."""
|
| 4 |
+
import json
|
| 5 |
+
import numpy as np
|
| 6 |
+
|
| 7 |
+
W = np.load("work/w12m.npz"); C = json.load(open("work/cfg12m.json"))
|
| 8 |
+
EPS = 1e-6
|
| 9 |
+
f16 = lambda a: a.astype(np.float16).astype(np.float32)
|
| 10 |
+
|
| 11 |
+
def rms(x, w):
|
| 12 |
+
return x / np.sqrt((x * x).mean(-1, keepdims=True) + EPS) * f16(w)
|
| 13 |
+
|
| 14 |
+
def a8(x):
|
| 15 |
+
L, n = x.shape
|
| 16 |
+
xb = x.reshape(L, n // 256, 256)
|
| 17 |
+
am = np.abs(xb).max(-1, keepdims=True)
|
| 18 |
+
am = np.where(am == 0, 1, am)
|
| 19 |
+
return (np.round(xb * (127.0 / am)) * (am / 127.0)).reshape(L, n)
|
| 20 |
+
|
| 21 |
+
STATS = {}
|
| 22 |
+
TRACE = []
|
| 23 |
+
def lin(i, s, x, fp, act8=True):
|
| 24 |
+
if fp:
|
| 25 |
+
return f16(x) @ f16(W[f"{i}.{s}.w"]).T
|
| 26 |
+
x = rms(x, W[f"{i}.{s}.pre"])
|
| 27 |
+
STATS["lin_in"] = max(STATS.get("lin_in", 0), float(np.abs(x).max()))
|
| 28 |
+
if act8:
|
| 29 |
+
x = a8(x)
|
| 30 |
+
return (x @ W[f"{i}.{s}.q"].astype(np.float32).T) * f16(W[f"{i}.{s}.s"])
|
| 31 |
+
|
| 32 |
+
def rope_tab(L, hd=32):
|
| 33 |
+
half = hd // 2
|
| 34 |
+
freq = 1.0 / (10000 ** (np.arange(half) / half))
|
| 35 |
+
ang = np.arange(L)[:, None] * freq[None]
|
| 36 |
+
return np.concatenate([np.cos(ang)] * 2, -1), np.concatenate([np.sin(ang)] * 2, -1)
|
| 37 |
+
|
| 38 |
+
def forward(ids, act8=True):
|
| 39 |
+
L = len(ids); D = C["depth"]; H, KV, hd = C["heads"], C["kv"], C["dim"] // C["heads"]
|
| 40 |
+
cos, sin = rope_tab(L, hd); TRACE.clear()
|
| 41 |
+
x = rms(f16(W["embed"])[ids], W["embed_norm"])
|
| 42 |
+
for i in range(D):
|
| 43 |
+
fp = i == 0 or i == D - 1
|
| 44 |
+
h = rms(x, W[f"{i}.n1"])
|
| 45 |
+
q = lin(i, "q", h, fp, act8).reshape(L, H, hd).transpose(1, 0, 2)
|
| 46 |
+
k = lin(i, "k", h, fp, act8).reshape(L, KV, hd).transpose(1, 0, 2)
|
| 47 |
+
v = lin(i, "v", h, fp, act8).reshape(L, KV, hd).transpose(1, 0, 2)
|
| 48 |
+
q, k = rms(q, W[f"{i}.qn"]), rms(k, W[f"{i}.kn"])
|
| 49 |
+
rot = lambda t: np.concatenate([-t[..., hd // 2:], t[..., :hd // 2]], -1)
|
| 50 |
+
q, k = q * cos + rot(q) * sin, k * cos + rot(k) * sin
|
| 51 |
+
k, v = np.repeat(k, H // KV, 0), np.repeat(v, H // KV, 0)
|
| 52 |
+
s = q @ k.transpose(0, 2, 1) / np.sqrt(hd)
|
| 53 |
+
s = np.exp(s - s.max(-1, keepdims=True)); s /= s.sum(-1, keepdims=True)
|
| 54 |
+
o = (s @ v).transpose(1, 0, 2).reshape(L, H * hd)
|
| 55 |
+
x = x + lin(i, "o", o, fp, act8)
|
| 56 |
+
h2 = rms(x, W[f"{i}.n2"])
|
| 57 |
+
g, u = lin(i, "w1", h2, fp, act8), lin(i, "w3", h2, fp, act8)
|
| 58 |
+
ff = g / (1 + np.exp(-g)) * u
|
| 59 |
+
STATS["ffn_act"] = max(STATS.get("ffn_act", 0), float(np.abs(ff).max()))
|
| 60 |
+
x = x + lin(i, "w2", ff, fp, act8)
|
| 61 |
+
STATS["resid"] = max(STATS.get("resid", 0), float(np.abs(x).max()))
|
| 62 |
+
TRACE.append(x.copy())
|
| 63 |
+
x = rms(x, W["norm"])
|
| 64 |
+
return f16(x) @ f16(W["head"]).T
|
scripts/prep_resources_v2.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Stage the McBopomofoLM v2 runtime files (Core ML only, ANE) into SlothE/Bundle/SlothE/
|
| 2 |
+
(folder reference -> Contents/Resources/SlothE/).
|
| 3 |
+
|
| 4 |
+
Inputs (read-only):
|
| 5 |
+
* $W/ane/enc/models/enc25m_multi_pal2_emb.mlpackage SlothE-T 25M encoder, 2-bit ternary, functions L8/L16/L32/L64/L256,
|
| 6 |
+
caller-side embedding (ids = fp16 rows [1, L, 352], mask [1, L])
|
| 7 |
+
* $W/ane/enc/work/embed_f16_25m.bin the fp16 embedding table [1539, 352] (== w25m.npz["embed"])
|
| 8 |
+
* $W/ane/dec/mf/dec_mf_fp16.mlpackage SlothE decoder pred_q35_60m, fp16, functions t16/t32/t64/t96, B=3
|
| 9 |
+
* HF cache Luigi/sloth-ime-models @ e7d13c9 pred_q35_60m/tokenizer.json (the decoder's byte-level BPE)
|
| 10 |
+
* the v1 staging's vocabulary files (syl_vocab.tsv, char2id.tsv, syl2legal.bin, variants.tsv; same vocab for 12M/25M)
|
| 11 |
+
Outputs (SlothE/Bundle/SlothE/):
|
| 12 |
+
enc25m.mlmodelc/ xcrun coremlcompiler compile of the encoder package
|
| 13 |
+
dec60m.mlmodelc/ xcrun coremlcompiler compile of the decoder package
|
| 14 |
+
enc25m_embed_f16.bin embedding table
|
| 15 |
+
dec_tokenizer.json tokenizer.json, byte copy
|
| 16 |
+
syl_vocab.tsv char2id.tsv syl2legal.bin variants.tsv
|
| 17 |
+
runtime-manifest.txt "<sha256> <bytes> <path>" for every runtime file, including every file inside the
|
| 18 |
+
two .mlmodelc directories; the app verifies it before loading (SlothEEngine.cpp)
|
| 19 |
+
MANIFEST.txt NOTICE.txt OpenCC-LICENSE.txt
|
| 20 |
+
usage: python3 prep_resources_v2.py (needs only the standard library + xcrun)
|
| 21 |
+
"""
|
| 22 |
+
import hashlib
|
| 23 |
+
import shutil
|
| 24 |
+
import subprocess
|
| 25 |
+
import tempfile
|
| 26 |
+
from pathlib import Path
|
| 27 |
+
|
| 28 |
+
HERE = Path(__file__).resolve().parent
|
| 29 |
+
W = HERE.parent.parent
|
| 30 |
+
OUT = HERE / "Bundle" / "SlothE"
|
| 31 |
+
ENC_PKG = W / "ane" / "enc" / "models" / "enc25m_multi_pal2_emb.mlpackage"
|
| 32 |
+
EMBED = W / "ane" / "enc" / "work" / "embed_f16_25m.bin"
|
| 33 |
+
DEC_PKG = W / "ane" / "dec" / "mf" / "dec_mf_fp16.mlpackage"
|
| 34 |
+
HF = Path.home() / ".cache/huggingface/hub/models--Luigi--sloth-ime-models/snapshots/e7d13c9c451dc01ab9546be53c574f4dbe0fdd54"
|
| 35 |
+
TOKENIZER = HF / "pred_q35_60m" / "tokenizer.json"
|
| 36 |
+
KEEP = ["syl_vocab.tsv", "char2id.tsv", "syl2legal.bin", "variants.tsv", "OpenCC-LICENSE.txt"]
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def sha256(p):
|
| 40 |
+
h = hashlib.sha256()
|
| 41 |
+
with open(p, "rb") as f:
|
| 42 |
+
for b in iter(lambda: f.read(1 << 20), b""):
|
| 43 |
+
h.update(b)
|
| 44 |
+
return h.hexdigest()
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def tree_sha(d):
|
| 48 |
+
h = hashlib.sha256()
|
| 49 |
+
for p in sorted(x for x in Path(d).rglob("*") if x.is_file()):
|
| 50 |
+
h.update(str(p.relative_to(d)).encode() + b"\0" + sha256(p).encode() + b"\n")
|
| 51 |
+
return h.hexdigest()
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def compile_pkg(pkg, name, tmp):
|
| 55 |
+
src = Path(tmp) / f"{name}.mlpackage"
|
| 56 |
+
shutil.copytree(pkg, src)
|
| 57 |
+
subprocess.run(["xcrun", "coremlcompiler", "compile", str(src), str(tmp)], check=True, capture_output=True)
|
| 58 |
+
dst = OUT / f"{name}.mlmodelc"
|
| 59 |
+
shutil.rmtree(dst, ignore_errors=True)
|
| 60 |
+
shutil.move(str(Path(tmp) / f"{name}.mlmodelc"), dst)
|
| 61 |
+
return dst
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
def main():
|
| 65 |
+
OUT.mkdir(parents=True, exist_ok=True)
|
| 66 |
+
keep = {n: (OUT / n).read_bytes() for n in KEEP}
|
| 67 |
+
for p in OUT.iterdir(): # v2 ships no GGUF, no ggml/llama.cpp licence files
|
| 68 |
+
shutil.rmtree(p) if p.is_dir() else p.unlink()
|
| 69 |
+
for n, b in keep.items():
|
| 70 |
+
(OUT / n).write_bytes(b)
|
| 71 |
+
with tempfile.TemporaryDirectory() as tmp:
|
| 72 |
+
compile_pkg(ENC_PKG, "enc25m", tmp)
|
| 73 |
+
compile_pkg(DEC_PKG, "dec60m", tmp)
|
| 74 |
+
shutil.copyfile(EMBED, OUT / "enc25m_embed_f16.bin")
|
| 75 |
+
shutil.copyfile(TOKENIZER, OUT / "dec_tokenizer.json")
|
| 76 |
+
assert (OUT / "enc25m_embed_f16.bin").stat().st_size == 1539 * 352 * 2
|
| 77 |
+
(OUT / "NOTICE.txt").write_text(
|
| 78 |
+
"McBopomofoLM v2 bundles third-party parts (side-by-side build next to stock McBopomofo):\n"
|
| 79 |
+
"- SlothE-T 25M encoder (enc25m.mlmodelc, enc25m_embed_f16.bin; converted to Core ML from the published "
|
| 80 |
+
"weights) and its syl_vocab / syl2legal tables: huggingface.co/Luigi/sloth-ime-models, Apache-2.0.\n"
|
| 81 |
+
"- SlothE decoder pred_q35_60m (dec60m.mlmodelc, dec_tokenizer.json; converted to Core ML from the published "
|
| 82 |
+
"weights): huggingface.co/Luigi/sloth-ime-models, Apache-2.0.\n"
|
| 83 |
+
"- char2id table (char2id.tsv, converted from enc/char2id.json): huggingface.co/spaces/Luigi/slothing-web, Apache-2.0.\n"
|
| 84 |
+
"- Orthographic variant classes derived from OpenCC TWVariants.txt / HKVariants.txt, Apache-2.0 "
|
| 85 |
+
"(OpenCC-LICENSE.txt).\n"
|
| 86 |
+
"v2 runs the models with Core ML on the Apple Neural Engine only. It contains no ggml, llama.cpp or "
|
| 87 |
+
"libslothe code.\n", encoding="utf-8")
|
| 88 |
+
files = sorted(str(p.relative_to(OUT)) for p in OUT.rglob("*")
|
| 89 |
+
if p.is_file() and p.name not in ("runtime-manifest.txt", "MANIFEST.txt", "NOTICE.txt", "OpenCC-LICENSE.txt"))
|
| 90 |
+
(OUT / "runtime-manifest.txt").write_text(
|
| 91 |
+
"# McBopomofoLM v2 checks the byte size and sha256 of every file below before loading a model.\n"
|
| 92 |
+
"# Any mismatch or missing file = that model is not loaded (encoder -> stock McBopomofo,\n"
|
| 93 |
+
"# decoder -> encoder-only in-walk). Format: <sha256> <bytes> <path>\n"
|
| 94 |
+
+ "".join(f"{sha256(OUT / n)} {(OUT / n).stat().st_size} {n}\n" for n in files), encoding="utf-8")
|
| 95 |
+
lines = [
|
| 96 |
+
"SlothE runtime files for McBopomofoLM v2 (Core ML, ANE only)",
|
| 97 |
+
f"encoder source: {ENC_PKG.relative_to(W)} tree sha256 {tree_sha(ENC_PKG)}",
|
| 98 |
+
f"decoder source: {DEC_PKG.relative_to(W)} tree sha256 {tree_sha(DEC_PKG)}",
|
| 99 |
+
f"embedding: {EMBED.relative_to(W)} sha256 {sha256(EMBED)}",
|
| 100 |
+
f"tokenizer: HF pred_q35_60m/tokenizer.json sha256 {sha256(TOKENIZER)}",
|
| 101 |
+
"compiled with: xcrun coremlcompiler compile",
|
| 102 |
+
"config A' (walk2/frozen_final2.json): 25M, beta 0.3, gamma 0, pen -15, variant guard; decoder lambda 2, tau 0.5, top-3",
|
| 103 |
+
"",
|
| 104 |
+
]
|
| 105 |
+
(OUT / "MANIFEST.txt").write_text("\n".join(lines) + "\n", encoding="utf-8")
|
| 106 |
+
print("\n".join(lines))
|
| 107 |
+
print(len(files), "files in runtime-manifest.txt")
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
if __name__ == "__main__":
|
| 111 |
+
main()
|