P2-25D: public-core punctuation fp32/int8 ONNX, manifest and MIT licence
Browse files- LICENSE +25 -0
- NOTICE +227 -0
- README.md +223 -0
- manifest.json +1398 -0
- model.int8.onnx +3 -0
- model.onnx +3 -0
- vocab.json +0 -0
LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 the 0C project contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
| 22 |
+
|
| 23 |
+
The MIT licence above covers the model weights, the ONNX graphs and the 0C
|
| 24 |
+
export code. Training data and the lexicon pack keep their own upstream
|
| 25 |
+
licences; see NOTICE.
|
NOTICE
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NOTICE: 0c-ja-punct
|
| 2 |
+
|
| 3 |
+
Model repository: <https://huggingface.co/jeffpeng3/0c-ja-punct>
|
| 4 |
+
|
| 5 |
+
This repository contains the 0C public-core Japanese punctuation tagger
|
| 6 |
+
`punctuation-public-core`: fp32 and int8 ONNX graphs, the SentencePiece
|
| 7 |
+
id-to-piece table, the manifest and this notice.
|
| 8 |
+
|
| 9 |
+
- Model artefact and export code licence: **MIT** (see `LICENSE`).
|
| 10 |
+
- Training data licence track: **public-core**, CC BY 4.0 and public domain
|
| 11 |
+
only. No CC BY-SA text, no Mozc, no NEologd.
|
| 12 |
+
- Checkpoint: P2-24A full run, step 114,000, 33,865,732 parameters,
|
| 13 |
+
SHA-256 `3357dacf108cdcb63f582762e5aa42bb9c2701a243796284d3927725ff132c7f`.
|
| 14 |
+
|
| 15 |
+
MIT covers the weights and the ONNX graphs. It does not relicense the
|
| 16 |
+
training text, the tokenizer or the lexicon sources below.
|
| 17 |
+
|
| 18 |
+
## What the model does
|
| 19 |
+
|
| 20 |
+
The model reads token ids and predicts one of four labels per position:
|
| 21 |
+
`none`, `comma` (、), `period` (。), `question` (?). The decoder appends the
|
| 22 |
+
chosen mark after the token. It never rewrites, deletes, merges or reorders
|
| 23 |
+
input characters. The mark insertion is string concatenation over the
|
| 24 |
+
untouched token surfaces.
|
| 25 |
+
|
| 26 |
+
## Training data
|
| 27 |
+
|
| 28 |
+
Source corpus: **0C public-core Japanese corpus**, built by the 0C project from
|
| 29 |
+
five sources, all CC BY 4.0:
|
| 30 |
+
|
| 31 |
+
| id | material | documents | tokens |
|
| 32 |
+
| --- | --- | ---: | ---: |
|
| 33 |
+
| `pc-aozora` | Aozora Bunko | 10,042 | 100,857,594 |
|
| 34 |
+
| `pc-egov` | e-Gov法令 | 8,182 | 50,342,701 |
|
| 35 |
+
| `pc-kaken` | KAKEN research summaries | 999,490 | 750,280,028 |
|
| 36 |
+
| `pc-sip-pdf` | SIP3 PDF corpus | 153,809 | 601,799,550 |
|
| 37 |
+
| `pc-patent` | 特許庁 patent text | 53,274 | 605,244,939 |
|
| 38 |
+
|
| 39 |
+
Attribution: the 0C project and the upstream publishers named above. The
|
| 40 |
+
corpus manifest is `/mnt/work/0c/data/public_core_ja/manifest.json` in the
|
| 41 |
+
training repository, SHA-256
|
| 42 |
+
`eee2b5985bff2d5b94dffa83496fb060de571eaabde7c2bc30f5369cafeddec8`.
|
| 43 |
+
|
| 44 |
+
The punctuation dataset
|
| 45 |
+
(`/mnt/work/0c/data/punctuation_public_core_ja`) removes `、`, `,`, `。` and
|
| 46 |
+
`?` from those spans, records the insertion offset, and re-tokenizes the
|
| 47 |
+
stripped text with the public-core SentencePiece model. Its `index.json`
|
| 48 |
+
SHA-256 is `5f5b5bf0923465787277e52652f80e5148e4251a3b7c82d606545b2894e9ff6b`.
|
| 49 |
+
|
| 50 |
+
The tokenizer is the public-core SentencePiece model (32,768 pieces), SHA-256
|
| 51 |
+
`b25260c9c3d90a754c719e62eea6b8125f08448d48dd4d1755c18edbd00e2078`,
|
| 52 |
+
trained by the 0C project on the corpus above.
|
| 53 |
+
|
| 54 |
+
## Modification statement
|
| 55 |
+
|
| 56 |
+
The upstream text was normalized with the P2-21A profile, exact- and
|
| 57 |
+
near-deduplicated, split by document group, stripped of the four target
|
| 58 |
+
marks, tokenized, and packed into 256-token windows. The model was trained
|
| 59 |
+
by the 0C project. It does not reproduce the training text and has no
|
| 60 |
+
retrieval path to it.
|
| 61 |
+
|
| 62 |
+
## Public-core lexicon family attribution
|
| 63 |
+
|
| 64 |
+
The public-core distribution ships a Japanese lexicon pack alongside this
|
| 65 |
+
model. The sources below are listed for that combined distribution and for
|
| 66 |
+
the family-level manifest. They contributed **no tokens, labels or weights**
|
| 67 |
+
to this checkpoint: the punctuation model is trained only on the corpus and
|
| 68 |
+
tokenizer above. The 0C project includes them because the product package
|
| 69 |
+
and its NOTICE cover both artefacts.
|
| 70 |
+
|
| 71 |
+
### 1. 現代書き言葉UniDic 2025.12 (unidic-cwj-202512)
|
| 72 |
+
|
| 73 |
+
Copyright (c) 2023 National Institute for Japanese Language and Linguistics
|
| 74 |
+
|
| 75 |
+
Redistribution and use in source and binary forms, with or without
|
| 76 |
+
modification, are permitted provided that the following conditions are
|
| 77 |
+
met:
|
| 78 |
+
|
| 79 |
+
* Redistributions of source code must retain the above copyright
|
| 80 |
+
notice, this list of conditions and the following disclaimer.
|
| 81 |
+
|
| 82 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 83 |
+
notice, this list of conditions and the following disclaimer in the
|
| 84 |
+
documentation and/or other materials provided with the
|
| 85 |
+
distribution.
|
| 86 |
+
|
| 87 |
+
* Neither the name of the UniDic Consortium nor the names of its
|
| 88 |
+
contributors may be used to endorse or promote products derived
|
| 89 |
+
from this software without specific prior written permission.
|
| 90 |
+
|
| 91 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 92 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 93 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 94 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 95 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 96 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 97 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 98 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 99 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 100 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 101 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 102 |
+
|
| 103 |
+
Upstream: <https://clrd.ninjal.ac.jp/unidic_archive/2512/unidic-cwj-202512_full.zip>
|
| 104 |
+
AUTHORS: The UniDic Consortium / National Institute for Japanese Language
|
| 105 |
+
and Linguistics. 現代書き言葉UniDic 2025.12. Implementer: 小木曽智信.
|
| 106 |
+
|
| 107 |
+
### 2. IPADic 2.7.0
|
| 108 |
+
|
| 109 |
+
Copyright 2000, 2001, 2002, 2003 Nara Institute of Science
|
| 110 |
+
and Technology. All Rights Reserved.
|
| 111 |
+
|
| 112 |
+
Use, reproduction, and distribution of this software is permitted.
|
| 113 |
+
Any copy of this software, whether in its original form or modified,
|
| 114 |
+
must include both the above copyright notice and the following
|
| 115 |
+
paragraphs.
|
| 116 |
+
|
| 117 |
+
Nara Institute of Science and Technology (NAIST),
|
| 118 |
+
the copyright holders, disclaims all warranties with regard to this
|
| 119 |
+
software, including all implied warranties of merchantability and
|
| 120 |
+
fitness, in no event shall NAIST be liable for
|
| 121 |
+
any special, indirect or consequential damages or any damages
|
| 122 |
+
whatsoever resulting from loss of use, data or profits, whether in an
|
| 123 |
+
action of contract, negligence or other tortuous action, arising out
|
| 124 |
+
of or in connection with the use or performance of this software.
|
| 125 |
+
|
| 126 |
+
A large portion of the dictionary entries originate from ICOT Free
|
| 127 |
+
Software. The following conditions for ICOT Free Software apply to the
|
| 128 |
+
current dictionary as well.
|
| 129 |
+
|
| 130 |
+
Each User may also freely distribute the Program, whether in its
|
| 131 |
+
original form or modified, to any third party or parties, PROVIDED
|
| 132 |
+
that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear
|
| 133 |
+
on, or be attached to the Program, which is distributed substantially
|
| 134 |
+
in the same form as set out herein and that such intended
|
| 135 |
+
distribution, if actually made, will neither violate or otherwise
|
| 136 |
+
contravene any of the laws and regulations of the countries having
|
| 137 |
+
jurisdiction over the User or the intended distribution itself.
|
| 138 |
+
|
| 139 |
+
NO WARRANTY
|
| 140 |
+
|
| 141 |
+
The program was produced on an experimental basis in the course of the
|
| 142 |
+
research and development conducted during the project and is provided
|
| 143 |
+
to users as so produced on an experimental basis. Accordingly, the
|
| 144 |
+
program is provided without any warranty whatsoever, whether express,
|
| 145 |
+
implied, statutory or otherwise. The term "warranty" used herein
|
| 146 |
+
includes, but is not limited to, any warranty of the quality,
|
| 147 |
+
performance, merchantability and fitness for a particular purpose of
|
| 148 |
+
the program and the nonexistence of any infringement or violation of
|
| 149 |
+
any right of any third party.
|
| 150 |
+
|
| 151 |
+
Each user of the program will agree and understand, and be deemed to
|
| 152 |
+
have agreed and understood, that there is no warranty whatsoever for
|
| 153 |
+
the program and, accordingly, the entire risk arising from or
|
| 154 |
+
otherwise connected with the program is assumed by the user.
|
| 155 |
+
|
| 156 |
+
Therefore, neither ICOT, the copyright holder, or any other
|
| 157 |
+
organization that participated in or was otherwise related to the
|
| 158 |
+
development of the program and their respective officials, directors,
|
| 159 |
+
officers and other employees shall be held liable for any and all
|
| 160 |
+
damages, including, without limitation, general, special, incidental
|
| 161 |
+
and consequential damages, arising out of or otherwise in connection
|
| 162 |
+
with the use or inability to use the program or any product, material
|
| 163 |
+
or result produced or otherwise obtained by using the program,
|
| 164 |
+
regardless of whether they have been advised of, or otherwise had
|
| 165 |
+
knowledge of, the possibility of such damages at any time during the
|
| 166 |
+
project or thereafter. Each user will be deemed to have agreed to the
|
| 167 |
+
foregoing by his or her commencement of use of the program. The term
|
| 168 |
+
"use" as used herein includes, but is not limited to, the use,
|
| 169 |
+
modification, copying and distribution of the program and the
|
| 170 |
+
production of secondary products from the program.
|
| 171 |
+
|
| 172 |
+
In the case where the program, whether in its original form or
|
| 173 |
+
modified, was distributed or delivered to or received by a user from
|
| 174 |
+
any person, organization or entity other than ICOT, unless it makes or
|
| 175 |
+
grants independently of ICOT any specific warranty to the user in
|
| 176 |
+
writing, such person, organization or entity, will also be exempted
|
| 177 |
+
from and not be held liable to the user for any such damages as noted
|
| 178 |
+
above as far as the program is concerned.
|
| 179 |
+
|
| 180 |
+
Upstream: <https://github.com/taku910/mecab/blob/master/mecab-ipadic/COPYING>
|
| 181 |
+
|
| 182 |
+
### 3. Unicode Unihan database 18.0.0
|
| 183 |
+
|
| 184 |
+
Copyright © 1991-2026 Unicode, Inc. All rights reserved.
|
| 185 |
+
Distributed under the Terms of Use of the Unicode Consortium.
|
| 186 |
+
|
| 187 |
+
UNICODE LICENSE V3
|
| 188 |
+
|
| 189 |
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
| 190 |
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
| 191 |
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
| 192 |
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
| 193 |
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
| 194 |
+
|
| 195 |
+
Permission is hereby granted, free of charge, to any person obtaining a
|
| 196 |
+
copy of data files and any associated documentation (the "Data Files")
|
| 197 |
+
or software and any associated documentation (the "Software") to deal in
|
| 198 |
+
the Data Files or Software without restriction, including without
|
| 199 |
+
limitation the rights to use, copy, modify, merge, publish, distribute,
|
| 200 |
+
and/or sell copies of the Data Files or Software, and to permit persons
|
| 201 |
+
to whom the Data Files or Software are furnished to do so, provided that
|
| 202 |
+
either (a) this copyright and permission notice appear with all copies of
|
| 203 |
+
the Data Files or Software, or (b) this copyright and permission notice
|
| 204 |
+
appear in associated Documentation.
|
| 205 |
+
|
| 206 |
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
| 207 |
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 208 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
| 209 |
+
THIRD PARTY RIGHTS.
|
| 210 |
+
|
| 211 |
+
Full text: <https://www.unicode.org/license.txt>
|
| 212 |
+
|
| 213 |
+
The public-core lexicon uses Unihan only to review readings. No
|
| 214 |
+
Unihan-derived words or readings are in the pack or in this model.
|
| 215 |
+
|
| 216 |
+
### 4. 0C curated entries
|
| 217 |
+
|
| 218 |
+
Copyright the 0C project contributors. Licence **CC BY 4.0**
|
| 219 |
+
<https://creativecommons.org/licenses/by/4.0/>. Six curated overrides,
|
| 220 |
+
source `configs/lexicon/curated/ja-curated.tsv` in the training repository,
|
| 221 |
+
SHA-256 `a2a940641b0cd514f4aee87396c8736ef6488c9b25bf2ff93cadb8461a79de3e`.
|
| 222 |
+
|
| 223 |
+
## Endorsement
|
| 224 |
+
|
| 225 |
+
NINJAL, the UniDic Consortium, NAIST, ICOT, the Unicode Consortium, the
|
| 226 |
+
Aozora Bunko, e-Gov, KAKEN, SIP and 特許庁 do not endorse this model or the
|
| 227 |
+
0C project.
|
README.md
ADDED
|
@@ -0,0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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- ja
|
| 5 |
+
tags:
|
| 6 |
+
- punctuation
|
| 7 |
+
- onnx
|
| 8 |
+
- japanese
|
| 9 |
+
- ime
|
| 10 |
+
- sentencepiece
|
| 11 |
+
library_name: onnxruntime
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# 0c-ja-punct
|
| 15 |
+
|
| 16 |
+
Japanese punctuation insertion model for the 0C input method. It reads a
|
| 17 |
+
token sequence and predicts, for every token, whether `、`, `。` or `?`
|
| 18 |
+
should be inserted **after** that token. It never rewrites, deletes, merges
|
| 19 |
+
or reorders input characters.
|
| 20 |
+
|
| 21 |
+
Architecture: D512 transformer encoder, 8 layers, 8 heads, FFN 1024,
|
| 22 |
+
32,768-piece public-core SentencePiece vocabulary, 33,865,732 parameters.
|
| 23 |
+
Trained by the 0C project on the public-core Japanese corpus only (CC BY 4.0
|
| 24 |
+
and public domain; no CC BY-SA, no Mozc, no NEologd).
|
| 25 |
+
|
| 26 |
+
## Labels and decoding
|
| 27 |
+
|
| 28 |
+
| index | label | inserted after the token |
|
| 29 |
+
| ---: | --- | --- |
|
| 30 |
+
| 0 | `none` | nothing |
|
| 31 |
+
| 1 | `comma` | `、` |
|
| 32 |
+
| 2 | `period` | `。` |
|
| 33 |
+
| 3 | `question` | `?` |
|
| 34 |
+
|
| 35 |
+
Decoding rules from the training code:
|
| 36 |
+
|
| 37 |
+
1. Tokenize the stripped text and append `<eos>` (id 3) for the model only.
|
| 38 |
+
2. Take the argmax per position; drop the appended `<eos>` row.
|
| 39 |
+
3. Force `none` on whitespace-only tokens and on `<eos>`.
|
| 40 |
+
4. Output text is `''.join(surface + mark)`. No other string operation is
|
| 41 |
+
applied, so removing the three marks always recovers the input exactly.
|
| 42 |
+
|
| 43 |
+
## Tensor contract
|
| 44 |
+
|
| 45 |
+
| name | dtype | shape | meaning |
|
| 46 |
+
| --- | --- | --- | --- |
|
| 47 |
+
| `input_ids` | int64 | `[batch, seq]` | public-core SentencePiece ids |
|
| 48 |
+
| `attention_mask` | int64 | `[batch, seq]` | 1 real token, 0 padding |
|
| 49 |
+
| `logits` | float32 | `[batch, seq, 4]` | per-token logits in label order |
|
| 50 |
+
|
| 51 |
+
- Batch and sequence axes are dynamic. Sequence length 1 to 512 is accepted
|
| 52 |
+
because the learned position table has 512 entries.
|
| 53 |
+
- There is no BOS. Positions are `0..seq-1`; the training window is 256
|
| 54 |
+
tokens. Pad with id 0 and mask 0 if a batch row is shorter.
|
| 55 |
+
- Special ids: `pad=0`, `unk=1`, `bos=2`, `eos=3`.
|
| 56 |
+
- The mark for position `i` goes after token `i`. Do not shift logits.
|
| 57 |
+
|
| 58 |
+
## Usage
|
| 59 |
+
|
| 60 |
+
```python
|
| 61 |
+
import numpy as np
|
| 62 |
+
import onnxruntime as ort
|
| 63 |
+
import sentencepiece as spm
|
| 64 |
+
|
| 65 |
+
sp = spm.SentencePieceProcessor(model_file="public_core_ja.model")
|
| 66 |
+
session = ort.InferenceSession(
|
| 67 |
+
"model.int8.onnx", providers=["CPUExecutionProvider"]
|
| 68 |
+
)
|
| 69 |
+
PAD, EOS = 0, 3
|
| 70 |
+
marks = [None, "、", "。", "?"]
|
| 71 |
+
|
| 72 |
+
text = "今日はいい天気ですね明日は雨が降るでしょう"
|
| 73 |
+
proto = sp.encode(text, out_type="immutable_proto")
|
| 74 |
+
tokens = [(piece.id, piece.surface) for piece in proto.pieces]
|
| 75 |
+
ids = [token for token, _ in tokens] + [EOS]
|
| 76 |
+
|
| 77 |
+
feed_ids = np.asarray([ids], dtype=np.int64)
|
| 78 |
+
feed_mask = np.ones_like(feed_ids)
|
| 79 |
+
logits = session.run(
|
| 80 |
+
None, {"input_ids": feed_ids, "attention_mask": feed_mask}
|
| 81 |
+
)[0]
|
| 82 |
+
|
| 83 |
+
labels = np.argmax(logits[0, : len(tokens)], axis=-1)
|
| 84 |
+
for index, (token, surface) in enumerate(tokens):
|
| 85 |
+
piece = sp.id_to_piece(int(token))
|
| 86 |
+
if piece.replace("\u2581", "").strip() == "":
|
| 87 |
+
labels[index] = 0
|
| 88 |
+
|
| 89 |
+
output = "".join(
|
| 90 |
+
surface + (marks[label] or "")
|
| 91 |
+
for (_, surface), label in zip(tokens, labels)
|
| 92 |
+
)
|
| 93 |
+
assert output.translate({ord(mark): None for mark in "、。?"}) == text
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
Long input: split into segments of at most 255 tokens plus `<eos>`, preferably
|
| 97 |
+
at existing sentence boundaries, and call the graph once per segment. The
|
| 98 |
+
training data packed 256-token windows the same way. Quality across a window
|
| 99 |
+
boundary has not been measured, so avoid cutting inside a short clause when
|
| 100 |
+
the caller can choose.
|
| 101 |
+
|
| 102 |
+
## Quality
|
| 103 |
+
|
| 104 |
+
Evaluation uses the P2-24A packed data, token accuracy and per-mark
|
| 105 |
+
precision / recall / F1. `macro F1` is the mean F1 of `comma`, `period` and
|
| 106 |
+
`question`; `none` is excluded, matching the training code.
|
| 107 |
+
|
| 108 |
+
Full validation split, 75,631 windows, 18,746,968 scored tokens:
|
| 109 |
+
|
| 110 |
+
| label | support | precision | recall | F1 |
|
| 111 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 112 |
+
| `none` | 17,029,290 | 0.9941 | 0.9762 | 0.9850 |
|
| 113 |
+
| `comma` 、 | 1,166,798 | 0.7412 | 0.9166 | 0.8196 |
|
| 114 |
+
| `period` 。 | 548,865 | 0.9296 | 0.9796 | 0.9539 |
|
| 115 |
+
| `question` ? | 2,015 | 0.5155 | 0.6610 | 0.5793 |
|
| 116 |
+
|
| 117 |
+
- macro F1 **0.7843**, token accuracy **0.9725**, validation loss 0.06783.
|
| 118 |
+
|
| 119 |
+
Held-out test split, 78,058 windows, 19,350,011 tokens:
|
| 120 |
+
|
| 121 |
+
| label | support | precision | recall | F1 |
|
| 122 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 123 |
+
| `none` | 17,598,516 | 0.9939 | 0.9770 | 0.9854 |
|
| 124 |
+
| `comma` 、 | 1,205,558 | 0.7458 | 0.9142 | 0.8215 |
|
| 125 |
+
| `period` 。 | 543,456 | 0.9343 | 0.9808 | 0.9570 |
|
| 126 |
+
| `question` ? | 2,481 | 0.5362 | 0.6844 | 0.6013 |
|
| 127 |
+
|
| 128 |
+
- macro F1 **0.7932**, token accuracy **0.9732**, test loss 0.06657.
|
| 129 |
+
|
| 130 |
+
`?` is rare in the public-core corpus (0.013 % of training positions), so its
|
| 131 |
+
F1 is lower and noisier than the other marks. The model was selected on
|
| 132 |
+
validation; the test split was not used for model choice.
|
| 133 |
+
|
| 134 |
+
The checkpoint's own 2,048-window validation evaluation reports macro F1
|
| 135 |
+
0.7710. The full-split numbers above use the same checkpoint with every
|
| 136 |
+
validation window. The training run's final 2,048-window value 0.7648
|
| 137 |
+
belongs to the last step (116,703), not to this checkpoint (114,000).
|
| 138 |
+
|
| 139 |
+
## No-edit guarantee
|
| 140 |
+
|
| 141 |
+
Decoding appends strings; it cannot change an input character. This was
|
| 142 |
+
verified end-to-end through the ONNX files on 3,000 held-out documents
|
| 143 |
+
(374,682 tokens):
|
| 144 |
+
|
| 145 |
+
| path | inserted marks | changed characters | surface mismatch | input not recovered |
|
| 146 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 147 |
+
| PyTorch checkpoint | 40,607 | **0** | 0 | 0 |
|
| 148 |
+
| `model.onnx` fp32 | 40,640 | **0** | 0 | 0 |
|
| 149 |
+
| `model.int8.onnx` | 40,385 | **0** | 0 | 0 |
|
| 150 |
+
|
| 151 |
+
The re-tokenization check also matched the stored training ids for all 3,000
|
| 152 |
+
documents (`tokenizer_mismatches = 0`).
|
| 153 |
+
|
| 154 |
+
## Parity
|
| 155 |
+
|
| 156 |
+
fp32 ONNX vs PyTorch on 240 validation windows (61,440 token positions),
|
| 157 |
+
feeding the identical int64 arrays to both runtimes:
|
| 158 |
+
|
| 159 |
+
- token-id hash identical;
|
| 160 |
+
- max absolute logit difference **2.38e-5** (threshold 1e-4), mean 2.37e-6;
|
| 161 |
+
- argmax agreement 100 %; insertion macro F1 identical (0.7961).
|
| 162 |
+
|
| 163 |
+
int8 is informational, not parity-exact: max logit difference 0.693, mean
|
| 164 |
+
0.046, argmax agreement **99.881 %**, insertion macro F1 0.7851 on the same
|
| 165 |
+
240 windows. Dynamic qint8 has no calibration set, so this gap is expected.
|
| 166 |
+
Use fp32 if bit-level agreement with the training model matters.
|
| 167 |
+
|
| 168 |
+
## Latency (int8, CPU)
|
| 169 |
+
|
| 170 |
+
ONNX Runtime CPU, 8 intra-op threads, one window per forward pass, 200
|
| 171 |
+
validation windows, 5 passes, least-contended pass. Host: NVIDIA GB10
|
| 172 |
+
(aarch64), load average 5.83 at measurement, so numbers are conservative.
|
| 173 |
+
|
| 174 |
+
| metric at seq 256 | median | p95 |
|
| 175 |
+
| --- | ---: | ---: |
|
| 176 |
+
| `model.int8.onnx`, one 256-token window | **11.881 ms** | **11.997 ms** |
|
| 177 |
+
| per 1,000 tokens | 46.41 ms | 46.86 ms |
|
| 178 |
+
| per 1,000 characters (1.995 chars/token measured) | 23.26 ms | — |
|
| 179 |
+
| throughput | 21,548 tokens/s | — |
|
| 180 |
+
|
| 181 |
+
Insertion cost scales with the number of forward passes, not with the number
|
| 182 |
+
of marks. A text of N tokens needs `ceil(N / 256)` windows, i.e. 3.906
|
| 183 |
+
windows per 1k tokens at the training length. Within a window the token
|
| 184 |
+
embeddings and the FFN grow linearly with sequence length and self-attention
|
| 185 |
+
with its square; the measured sweep:
|
| 186 |
+
|
| 187 |
+
| seq | median / window | median per 1k tokens | median per 1k chars |
|
| 188 |
+
| ---: | ---: | ---: | ---: |
|
| 189 |
+
| 64 | 2.824 ms | 44.13 ms | 22.12 ms |
|
| 190 |
+
| 128 | 5.261 ms | 41.10 ms | 20.60 ms |
|
| 191 |
+
| 192 | 7.788 ms | 40.56 ms | 20.33 ms |
|
| 192 |
+
| 256 | 11.884 ms | 46.42 ms | 23.27 ms |
|
| 193 |
+
| 384 | 19.803 ms | 51.57 ms | 25.85 ms |
|
| 194 |
+
| 512 | 31.640 ms | 61.80 ms | 30.98 ms |
|
| 195 |
+
|
| 196 |
+
The log-log slope between 64 and 512 tokens is **1.16**. Short windows are
|
| 197 |
+
slightly more efficient per token down to 192, then attention cost dominates;
|
| 198 |
+
doubling 256 to 512 raises per-token cost by 33 %. fp32 latency was not
|
| 199 |
+
measured because fp32 is not shipped.
|
| 200 |
+
|
| 201 |
+
## Files
|
| 202 |
+
|
| 203 |
+
| file | size | note |
|
| 204 |
+
| --- | ---: | --- |
|
| 205 |
+
| `model.onnx` | 135,599,640 B | fp32, dynamic batch/seq, parity reference |
|
| 206 |
+
| `model.int8.onnx` | 34,240,656 B | dynamic qint8, no calibration; shipping file |
|
| 207 |
+
| `vocab.json` | see manifest | SentencePiece id-to-piece table |
|
| 208 |
+
| `manifest.json` | see manifest | contract, SHAs, quality, parity, latency, licence |
|
| 209 |
+
| `LICENSE` | | MIT |
|
| 210 |
+
| `NOTICE` | | training-data and lexicon attribution, no-edit statement |
|
| 211 |
+
|
| 212 |
+
int8 is 34.24 MB, inside the 60 MB per-model budget. ONNX weights are not
|
| 213 |
+
committed to the training git repository; pin the Hugging Face revision and
|
| 214 |
+
verify each file SHA-256 from `manifest.json`.
|
| 215 |
+
|
| 216 |
+
## Licence
|
| 217 |
+
|
| 218 |
+
MIT for the weights, ONNX graphs and export code. The training corpus is
|
| 219 |
+
CC BY 4.0 and public domain; the public-core lexicon sources (UniDic
|
| 220 |
+
BSD-3-Clause, IPADic / ICOT, Unicode Unihan, 0C curated CC BY 4.0) are
|
| 221 |
+
attributed in `NOTICE` for the combined public-core distribution but
|
| 222 |
+
contributed no training data to this checkpoint. See `NOTICE` for full
|
| 223 |
+
notices and the modification statement.
|
manifest.json
ADDED
|
@@ -0,0 +1,1398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": {
|
| 3 |
+
"activation": "gelu",
|
| 4 |
+
"attention": "scaled dot-product, non-causal, pre-norm residual",
|
| 5 |
+
"d_model": 512,
|
| 6 |
+
"eos_id": 3,
|
| 7 |
+
"family": "transformer-encoder",
|
| 8 |
+
"ffn_width": 1024,
|
| 9 |
+
"head": "per-token 4-way classifier",
|
| 10 |
+
"head_dim": 64,
|
| 11 |
+
"heads": 8,
|
| 12 |
+
"insertion": "the chosen mark is appended after the labelled token",
|
| 13 |
+
"kind": "punctuation",
|
| 14 |
+
"labels": [
|
| 15 |
+
"none",
|
| 16 |
+
"comma",
|
| 17 |
+
"period",
|
| 18 |
+
"question"
|
| 19 |
+
],
|
| 20 |
+
"layers": 8,
|
| 21 |
+
"marks": [
|
| 22 |
+
"",
|
| 23 |
+
"、",
|
| 24 |
+
"。",
|
| 25 |
+
"?"
|
| 26 |
+
],
|
| 27 |
+
"max_positions": 512,
|
| 28 |
+
"normalisation": "layernorm",
|
| 29 |
+
"pad_id": 0,
|
| 30 |
+
"parameters": 33865732,
|
| 31 |
+
"position_encoding": "learned absolute (0..seq-1)",
|
| 32 |
+
"vocab_size": 32768
|
| 33 |
+
},
|
| 34 |
+
"artifact_id": "punctuation-public-core",
|
| 35 |
+
"datasets": [
|
| 36 |
+
{
|
| 37 |
+
"id": "punctuation_public_core_ja",
|
| 38 |
+
"license_track": "public-core",
|
| 39 |
+
"manifest": {
|
| 40 |
+
"path": "/mnt/work/0c/data/punctuation_public_core_ja/index.json",
|
| 41 |
+
"sha256": "5f5b5bf0923465787277e52652f80e5148e4251a3b7c82d606545b2894e9ff6b"
|
| 42 |
+
},
|
| 43 |
+
"path": "/mnt/work/0c/data/punctuation_public_core_ja",
|
| 44 |
+
"role": "training-and-evaluation-data",
|
| 45 |
+
"split": "validation"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"id": "public_core_ja",
|
| 49 |
+
"license_track": "public-core",
|
| 50 |
+
"manifest": {
|
| 51 |
+
"path": "/mnt/work/0c/data/public_core_ja/manifest.json",
|
| 52 |
+
"sha256": "eee2b5985bff2d5b94dffa83496fb060de571eaabde7c2bc30f5369cafeddec8"
|
| 53 |
+
},
|
| 54 |
+
"path": "/mnt/work/0c/data/public_core_ja",
|
| 55 |
+
"role": "source-corpus"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"id": "public_core_ja_tokenizer",
|
| 59 |
+
"path": "/mnt/work/0c/data/public_core_ja/work/tokenizer/public_core_ja.model",
|
| 60 |
+
"role": "tokenizer",
|
| 61 |
+
"sha256": "b25260c9c3d90a754c719e62eea6b8125f08448d48dd4d1755c18edbd00e2078"
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"environment": {
|
| 65 |
+
"cpu_count": 20,
|
| 66 |
+
"gpu": null,
|
| 67 |
+
"machine": "aarch64",
|
| 68 |
+
"onnx": "1.23.2",
|
| 69 |
+
"onnxruntime": "1.32.0",
|
| 70 |
+
"providers": [
|
| 71 |
+
"AzureExecutionProvider",
|
| 72 |
+
"CPUExecutionProvider"
|
| 73 |
+
],
|
| 74 |
+
"python": "3.13.12",
|
| 75 |
+
"system": "Linux",
|
| 76 |
+
"torch": "2.14.1+cu130"
|
| 77 |
+
},
|
| 78 |
+
"files": {
|
| 79 |
+
"fp32": {
|
| 80 |
+
"bytes": 135599640,
|
| 81 |
+
"path": "punctuation-public-core/punctuation-public-core.fp32.onnx",
|
| 82 |
+
"quantization": "none (fp32)",
|
| 83 |
+
"sha256": "998b3df5af330a7f2106d6ecd4185a15760bb4ea942eb3ebf9f24b9ca7151a06"
|
| 84 |
+
},
|
| 85 |
+
"int8": {
|
| 86 |
+
"bytes": 34240656,
|
| 87 |
+
"path": "punctuation-public-core/punctuation-public-core.int8.onnx",
|
| 88 |
+
"quantization": "dynamic-qint8",
|
| 89 |
+
"sha256": "2860267deb3da1816b3f53decf786c5f5f478a1b9d327c8c80f2428c643f051b"
|
| 90 |
+
}
|
| 91 |
+
},
|
| 92 |
+
"generated_at": "2026-11-18T16:34:38+00:00",
|
| 93 |
+
"generator": {
|
| 94 |
+
"config": "punctuation_public_core.yaml",
|
| 95 |
+
"fingerprint": {
|
| 96 |
+
"deterministic_within": "torch 2.14.1+cu130 / python 3.13.12",
|
| 97 |
+
"value": "punctuation:public-core:ckpt=3357dacf108cdcb63f582762e5aa42bb9c2701a243796284d3927725ff132c7f:params=33865732:opset=17:step=114000"
|
| 98 |
+
},
|
| 99 |
+
"tool": "oc_training.export.punctuation",
|
| 100 |
+
"version": "0.1.0"
|
| 101 |
+
},
|
| 102 |
+
"io": {
|
| 103 |
+
"decoding": "argmax over the last axis; whitespace-only tokens and the appended <eos> never receive a mark; output text is the untouched token surfaces plus the inserted marks",
|
| 104 |
+
"dynamic_axes": [
|
| 105 |
+
"batch",
|
| 106 |
+
"seq"
|
| 107 |
+
],
|
| 108 |
+
"inputs": [
|
| 109 |
+
{
|
| 110 |
+
"description": "Public-core SentencePiece ids, batch-major.",
|
| 111 |
+
"dtype": "int64",
|
| 112 |
+
"name": "input_ids",
|
| 113 |
+
"shape": [
|
| 114 |
+
"batch",
|
| 115 |
+
"seq"
|
| 116 |
+
]
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"description": "1 for real tokens, 0 for padding.",
|
| 120 |
+
"dtype": "int64",
|
| 121 |
+
"name": "attention_mask",
|
| 122 |
+
"shape": [
|
| 123 |
+
"batch",
|
| 124 |
+
"seq"
|
| 125 |
+
]
|
| 126 |
+
}
|
| 127 |
+
],
|
| 128 |
+
"onnx_graph": {
|
| 129 |
+
"checker": true,
|
| 130 |
+
"dynamic_axes_ok": true,
|
| 131 |
+
"ir_version": 8,
|
| 132 |
+
"label_axis": 4,
|
| 133 |
+
"opset": 17
|
| 134 |
+
},
|
| 135 |
+
"outputs": [
|
| 136 |
+
{
|
| 137 |
+
"description": "Per-token punctuation logits in label order ['none', 'comma', 'period', 'question']; the mark is inserted after the token.",
|
| 138 |
+
"dtype": "float32",
|
| 139 |
+
"name": "logits",
|
| 140 |
+
"shape": [
|
| 141 |
+
"batch",
|
| 142 |
+
"seq",
|
| 143 |
+
4
|
| 144 |
+
]
|
| 145 |
+
}
|
| 146 |
+
],
|
| 147 |
+
"runtime_max_seq": 512,
|
| 148 |
+
"runtime_min_seq": 1,
|
| 149 |
+
"sequence_layout": "packed token windows without BOS; positions are 0..seq-1. The runtime appends <eos> (id 3) after the last real token; the model emits one 4-way logit row per position and the mark is inserted after that token. padding uses pad_id 0 with attention_mask 0."
|
| 150 |
+
},
|
| 151 |
+
"kind": "punctuation",
|
| 152 |
+
"latency": {
|
| 153 |
+
"byte_budget": {
|
| 154 |
+
"inside_budget": true,
|
| 155 |
+
"int8_bytes": 34240656,
|
| 156 |
+
"max_int8_bytes_per_model": 60000000
|
| 157 |
+
},
|
| 158 |
+
"characters_per_token_examples": 200,
|
| 159 |
+
"file": "int8",
|
| 160 |
+
"fp32": {
|
| 161 |
+
"measured": false,
|
| 162 |
+
"reason": "fp32 does not ship; it exists only for parity checking"
|
| 163 |
+
},
|
| 164 |
+
"host_load_average": [
|
| 165 |
+
5.83,
|
| 166 |
+
3.34,
|
| 167 |
+
2.53
|
| 168 |
+
],
|
| 169 |
+
"insertion_cost": {
|
| 170 |
+
"characters_per_token": 1.995,
|
| 171 |
+
"ms_per_1k_characters_median": 23.263,
|
| 172 |
+
"note": "A window is one forward pass. The number of forward passes for a text of N tokens is ceil(N / seq_len); at the training window of 256 tokens that is 3.906 windows per 1k tokens. Per window the token embeddings and the FFN grow linearly with seq, self-attention with seq^2, so cost per token rises with the window length. The seq sweep measures the mix instead of assuming either end; the string concatenation that inserts the marks is O(output length) and is not timed here.",
|
| 173 |
+
"scaling_exponent": 1.162,
|
| 174 |
+
"us_per_token": 46.41,
|
| 175 |
+
"window_tokens": 256,
|
| 176 |
+
"windows_per_1k_tokens": 3.906
|
| 177 |
+
},
|
| 178 |
+
"inter_op_threads": 1,
|
| 179 |
+
"intra_op_threads": 8,
|
| 180 |
+
"measured_at": "2026-11-18T16:34:38+00:00",
|
| 181 |
+
"method": "onnxruntime CPU single-run wall clock for the int8 file; one window per run, several passes, least-contended pass reported",
|
| 182 |
+
"primary": {
|
| 183 |
+
"max_ms": 12.3,
|
| 184 |
+
"mean_ms": 11.887,
|
| 185 |
+
"median_ms": 11.881,
|
| 186 |
+
"median_ms_per_1k_tokens": 46.409,
|
| 187 |
+
"min_ms": 11.745,
|
| 188 |
+
"p95_ms": 11.997,
|
| 189 |
+
"p95_ms_per_1k_tokens": 46.864,
|
| 190 |
+
"pass_median_ms": [
|
| 191 |
+
11.886,
|
| 192 |
+
11.881,
|
| 193 |
+
11.886,
|
| 194 |
+
11.901,
|
| 195 |
+
11.893
|
| 196 |
+
],
|
| 197 |
+
"passes": 5,
|
| 198 |
+
"samples": 200,
|
| 199 |
+
"selected_pass": 1,
|
| 200 |
+
"seq": 256,
|
| 201 |
+
"tokens_per_second": 21547.5
|
| 202 |
+
},
|
| 203 |
+
"provider": "CPUExecutionProvider",
|
| 204 |
+
"seq_scaling": {
|
| 205 |
+
"128": {
|
| 206 |
+
"max_ms": 5.345,
|
| 207 |
+
"mean_ms": 5.265,
|
| 208 |
+
"median_ms": 5.261,
|
| 209 |
+
"median_ms_per_1k_characters": 20.602,
|
| 210 |
+
"median_ms_per_1k_tokens": 41.102,
|
| 211 |
+
"median_us_per_token": 41.102,
|
| 212 |
+
"min_ms": 5.226,
|
| 213 |
+
"p95_ms": 5.302,
|
| 214 |
+
"p95_ms_per_1k_tokens": 41.423,
|
| 215 |
+
"pass_median_ms": [
|
| 216 |
+
5.261,
|
| 217 |
+
5.262,
|
| 218 |
+
5.262
|
| 219 |
+
],
|
| 220 |
+
"passes": 3,
|
| 221 |
+
"samples": 50,
|
| 222 |
+
"selected_pass": 0,
|
| 223 |
+
"seq": 128,
|
| 224 |
+
"tokens_per_second": 24329.4
|
| 225 |
+
},
|
| 226 |
+
"192": {
|
| 227 |
+
"max_ms": 7.923,
|
| 228 |
+
"mean_ms": 7.793,
|
| 229 |
+
"median_ms": 7.788,
|
| 230 |
+
"median_ms_per_1k_characters": 20.332,
|
| 231 |
+
"median_ms_per_1k_tokens": 40.564,
|
| 232 |
+
"median_us_per_token": 40.562,
|
| 233 |
+
"min_ms": 7.721,
|
| 234 |
+
"p95_ms": 7.869,
|
| 235 |
+
"p95_ms_per_1k_tokens": 40.982,
|
| 236 |
+
"pass_median_ms": [
|
| 237 |
+
7.791,
|
| 238 |
+
7.788,
|
| 239 |
+
7.805
|
| 240 |
+
],
|
| 241 |
+
"passes": 3,
|
| 242 |
+
"samples": 50,
|
| 243 |
+
"selected_pass": 1,
|
| 244 |
+
"seq": 192,
|
| 245 |
+
"tokens_per_second": 24652.5
|
| 246 |
+
},
|
| 247 |
+
"256": {
|
| 248 |
+
"max_ms": 11.999,
|
| 249 |
+
"mean_ms": 11.884,
|
| 250 |
+
"median_ms": 11.884,
|
| 251 |
+
"median_ms_per_1k_characters": 23.269,
|
| 252 |
+
"median_ms_per_1k_tokens": 46.421,
|
| 253 |
+
"median_us_per_token": 46.422,
|
| 254 |
+
"min_ms": 11.784,
|
| 255 |
+
"p95_ms": 11.983,
|
| 256 |
+
"p95_ms_per_1k_tokens": 46.81,
|
| 257 |
+
"pass_median_ms": [
|
| 258 |
+
11.888,
|
| 259 |
+
11.884,
|
| 260 |
+
11.885
|
| 261 |
+
],
|
| 262 |
+
"passes": 3,
|
| 263 |
+
"samples": 50,
|
| 264 |
+
"selected_pass": 1,
|
| 265 |
+
"seq": 256,
|
| 266 |
+
"tokens_per_second": 21541.8
|
| 267 |
+
},
|
| 268 |
+
"384": {
|
| 269 |
+
"max_ms": 20.251,
|
| 270 |
+
"mean_ms": 19.822,
|
| 271 |
+
"median_ms": 19.803,
|
| 272 |
+
"median_ms_per_1k_characters": 25.85,
|
| 273 |
+
"median_ms_per_1k_tokens": 51.569,
|
| 274 |
+
"median_us_per_token": 51.57,
|
| 275 |
+
"min_ms": 19.699,
|
| 276 |
+
"p95_ms": 19.997,
|
| 277 |
+
"p95_ms_per_1k_tokens": 52.074,
|
| 278 |
+
"pass_median_ms": [
|
| 279 |
+
19.803,
|
| 280 |
+
19.815,
|
| 281 |
+
19.831
|
| 282 |
+
],
|
| 283 |
+
"passes": 3,
|
| 284 |
+
"samples": 50,
|
| 285 |
+
"selected_pass": 0,
|
| 286 |
+
"seq": 384,
|
| 287 |
+
"tokens_per_second": 19391.4
|
| 288 |
+
},
|
| 289 |
+
"512": {
|
| 290 |
+
"max_ms": 31.873,
|
| 291 |
+
"mean_ms": 31.641,
|
| 292 |
+
"median_ms": 31.64,
|
| 293 |
+
"median_ms_per_1k_characters": 30.976,
|
| 294 |
+
"median_ms_per_1k_tokens": 61.796,
|
| 295 |
+
"median_us_per_token": 61.797,
|
| 296 |
+
"min_ms": 31.421,
|
| 297 |
+
"p95_ms": 31.779,
|
| 298 |
+
"p95_ms_per_1k_tokens": 62.069,
|
| 299 |
+
"pass_median_ms": [
|
| 300 |
+
31.64,
|
| 301 |
+
31.649,
|
| 302 |
+
31.715
|
| 303 |
+
],
|
| 304 |
+
"passes": 3,
|
| 305 |
+
"samples": 50,
|
| 306 |
+
"selected_pass": 0,
|
| 307 |
+
"seq": 512,
|
| 308 |
+
"tokens_per_second": 16182.3
|
| 309 |
+
},
|
| 310 |
+
"64": {
|
| 311 |
+
"max_ms": 2.892,
|
| 312 |
+
"mean_ms": 2.828,
|
| 313 |
+
"median_ms": 2.824,
|
| 314 |
+
"median_ms_per_1k_characters": 22.118,
|
| 315 |
+
"median_ms_per_1k_tokens": 44.132,
|
| 316 |
+
"median_us_per_token": 44.125,
|
| 317 |
+
"min_ms": 2.801,
|
| 318 |
+
"p95_ms": 2.86,
|
| 319 |
+
"p95_ms_per_1k_tokens": 44.693,
|
| 320 |
+
"pass_median_ms": [
|
| 321 |
+
2.828,
|
| 322 |
+
2.827,
|
| 323 |
+
2.824
|
| 324 |
+
],
|
| 325 |
+
"passes": 3,
|
| 326 |
+
"samples": 50,
|
| 327 |
+
"selected_pass": 2,
|
| 328 |
+
"seq": 64,
|
| 329 |
+
"tokens_per_second": 22659.5
|
| 330 |
+
}
|
| 331 |
+
}
|
| 332 |
+
},
|
| 333 |
+
"license": {
|
| 334 |
+
"attributions": [
|
| 335 |
+
{
|
| 336 |
+
"entries_used": 1012480,
|
| 337 |
+
"evidence": {
|
| 338 |
+
"path": "docs/lexicon/NOTICE-public-core-lexicon.md",
|
| 339 |
+
"sha256": "7afcc0dd985ff79602c2591107a86eab5bdbee7027f65da032164d5df70fd0f6"
|
| 340 |
+
},
|
| 341 |
+
"evidence_section": "1. 現代書き言葉UniDic 2025.12 (unidic-cwj-202512)",
|
| 342 |
+
"id": "lex-unidic-cwj-202512",
|
| 343 |
+
"license": "BSD-3-Clause (NINJAL, 2023)",
|
| 344 |
+
"license_class": "permissive",
|
| 345 |
+
"name": "現代書き言葉UniDic 2025.12 (unidic-cwj-202512)",
|
| 346 |
+
"notice": "Ship license/BSD, license/COPYING and the generated AUTHORS with the pack; reproduce the BSD copyright and disclaimer in the NOTICE.",
|
| 347 |
+
"revision": "2025.12",
|
| 348 |
+
"role": "public-core family lexicon (no training contribution)",
|
| 349 |
+
"sha256": "d8df4133c913f8c1fafc6778ff15181def67b13263b176d7bbe9abbbcb954e22",
|
| 350 |
+
"url": "https://clrd.ninjal.ac.jp/unidic_archive/2512/unidic-cwj-202512_full.zip"
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"entries_used": 134535,
|
| 354 |
+
"evidence": {
|
| 355 |
+
"path": "docs/lexicon/NOTICE-public-core-lexicon.md",
|
| 356 |
+
"sha256": "7afcc0dd985ff79602c2591107a86eab5bdbee7027f65da032164d5df70fd0f6"
|
| 357 |
+
},
|
| 358 |
+
"evidence_section": "2. IPADic 2.7.0 (fallback, only when the artifact was present)",
|
| 359 |
+
"id": "lex-ipadic-2.7.0",
|
| 360 |
+
"license": "NAIST copyright + ICOT Free Software terms",
|
| 361 |
+
"license_class": "permissive",
|
| 362 |
+
"name": "MeCab IPA dictionary 2.7.0",
|
| 363 |
+
"notice": "NAIST / ICOT Free Software; keep COPYING with the data.",
|
| 364 |
+
"revision": "2.7.0-20070801",
|
| 365 |
+
"role": "public-core family lexicon (no training contribution)",
|
| 366 |
+
"sha256": "b74721eb5951a6a0e6f3744562c42c7ce202f23871a77cf1a7f43570d5b7d57f",
|
| 367 |
+
"url": "https://taku910.github.io/mecab/"
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"evidence": {
|
| 371 |
+
"path": "docs/lexicon/NOTICE-public-core-lexicon.md",
|
| 372 |
+
"sha256": "7afcc0dd985ff79602c2591107a86eab5bdbee7027f65da032164d5df70fd0f6"
|
| 373 |
+
},
|
| 374 |
+
"evidence_section": "3. Unicode Unihan database (reading validation)",
|
| 375 |
+
"id": "lex-unihan",
|
| 376 |
+
"license": "Unicode License V3",
|
| 377 |
+
"license_class": "permissive",
|
| 378 |
+
"name": "Unicode Unihan database",
|
| 379 |
+
"notice": "Included because the public-core readings were reviewed against Unihan; the pack contains no Unihan-derived words or readings.",
|
| 380 |
+
"revision": "18.0.0",
|
| 381 |
+
"role": "public-core family reading validation (no training contribution)",
|
| 382 |
+
"url": "https://www.unicode.org/license.txt"
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"entries_used": 6,
|
| 386 |
+
"evidence": {
|
| 387 |
+
"path": "configs/lexicon/curated/ja-curated.tsv",
|
| 388 |
+
"sha256": "a2a940641b0cd514f4aee87396c8736ef6488c9b25bf2ff93cadb8461a79de3e"
|
| 389 |
+
},
|
| 390 |
+
"id": "lex-curated-0c",
|
| 391 |
+
"license": "CC-BY-4.0",
|
| 392 |
+
"license_class": "cc-by",
|
| 393 |
+
"name": "0C curated entries",
|
| 394 |
+
"notice": "Copyright the 0C project contributors.",
|
| 395 |
+
"role": "public-core family curated overrides (no training contribution)",
|
| 396 |
+
"sha256": "a2a940641b0cd514f4aee87396c8736ef6488c9b25bf2ff93cadb8461a79de3e",
|
| 397 |
+
"url": "https://creativecommons.org/licenses/by/4.0/"
|
| 398 |
+
}
|
| 399 |
+
],
|
| 400 |
+
"distribution": "public-core",
|
| 401 |
+
"model_license": "MIT",
|
| 402 |
+
"model_license_url": "https://opensource.org/license/mit",
|
| 403 |
+
"notice": "docs/models/NOTICE-punctuation-public-core.md",
|
| 404 |
+
"scope": "public-core",
|
| 405 |
+
"source_checkpoint": {
|
| 406 |
+
"bytes": 406517247,
|
| 407 |
+
"path": "/mnt/work/0c/runs/p2-24a-punctuation-public-core/best.pt",
|
| 408 |
+
"sha256": "3357dacf108cdcb63f582762e5aa42bb9c2701a243796284d3927725ff132c7f"
|
| 409 |
+
},
|
| 410 |
+
"training_data": {
|
| 411 |
+
"corpus": {
|
| 412 |
+
"path": "/mnt/work/0c/data/public_core_ja",
|
| 413 |
+
"sha256": null
|
| 414 |
+
},
|
| 415 |
+
"corpus_manifest": {
|
| 416 |
+
"path": "/mnt/work/0c/data/public_core_ja/manifest.json",
|
| 417 |
+
"sha256": "eee2b5985bff2d5b94dffa83496fb060de571eaabde7c2bc30f5369cafeddec8"
|
| 418 |
+
},
|
| 419 |
+
"punctuation_data": {
|
| 420 |
+
"path": "/mnt/work/0c/data/punctuation_public_core_ja",
|
| 421 |
+
"sha256": null
|
| 422 |
+
},
|
| 423 |
+
"punctuation_index": {
|
| 424 |
+
"path": "/mnt/work/0c/data/punctuation_public_core_ja/index.json",
|
| 425 |
+
"sha256": "5f5b5bf0923465787277e52652f80e5148e4251a3b7c82d606545b2894e9ff6b"
|
| 426 |
+
},
|
| 427 |
+
"tokenizer": {
|
| 428 |
+
"path": "/mnt/work/0c/data/public_core_ja/work/tokenizer/public_core_ja.model",
|
| 429 |
+
"sha256": "b25260c9c3d90a754c719e62eea6b8125f08448d48dd4d1755c18edbd00e2078"
|
| 430 |
+
}
|
| 431 |
+
}
|
| 432 |
+
},
|
| 433 |
+
"notes": "P2-25D export of the P2-24A D512 public-core punctuation checkpoint. Trained on the public-core corpus only; no CC BY-SA data, no Mozc, no NEologd. Every position carries a 4-way decision and the decoder appends the mark after the token, so no input character is rewritten. fp32 exists for parity only; int8 is the deployment file.",
|
| 434 |
+
"parity": {
|
| 435 |
+
"fp32": {
|
| 436 |
+
"argmax": {
|
| 437 |
+
"agree_fraction": 1.0,
|
| 438 |
+
"positions": 61440
|
| 439 |
+
},
|
| 440 |
+
"batch_size": 8,
|
| 441 |
+
"insertion": {
|
| 442 |
+
"onnx": {
|
| 443 |
+
"macro_f1": 0.796077,
|
| 444 |
+
"per_label": {
|
| 445 |
+
"comma": {
|
| 446 |
+
"f1": 0.8122059758423396,
|
| 447 |
+
"false_negative": 289,
|
| 448 |
+
"false_positive": 1188,
|
| 449 |
+
"label": "comma",
|
| 450 |
+
"precision": 0.72889091738932,
|
| 451 |
+
"recall": 0.9170255526844674,
|
| 452 |
+
"support": 3483,
|
| 453 |
+
"true_positive": 3194
|
| 454 |
+
},
|
| 455 |
+
"none": {
|
| 456 |
+
"f1": 0.9852127758636744,
|
| 457 |
+
"false_negative": 1278,
|
| 458 |
+
"false_positive": 310,
|
| 459 |
+
"label": "none",
|
| 460 |
+
"precision": 0.9941741369265753,
|
| 461 |
+
"recall": 0.9764115247605161,
|
| 462 |
+
"support": 54179,
|
| 463 |
+
"true_positive": 52901
|
| 464 |
+
},
|
| 465 |
+
"period": {
|
| 466 |
+
"f1": 0.9510240427426536,
|
| 467 |
+
"false_negative": 49,
|
| 468 |
+
"false_positive": 116,
|
| 469 |
+
"label": "period",
|
| 470 |
+
"precision": 0.9324796274738067,
|
| 471 |
+
"recall": 0.970321017565112,
|
| 472 |
+
"support": 1651,
|
| 473 |
+
"true_positive": 1602
|
| 474 |
+
},
|
| 475 |
+
"question": {
|
| 476 |
+
"f1": 0.6250000000000001,
|
| 477 |
+
"false_negative": 2,
|
| 478 |
+
"false_positive": 4,
|
| 479 |
+
"label": "question",
|
| 480 |
+
"precision": 0.5555555555555556,
|
| 481 |
+
"recall": 0.7142857142857143,
|
| 482 |
+
"support": 7,
|
| 483 |
+
"true_positive": 5
|
| 484 |
+
}
|
| 485 |
+
},
|
| 486 |
+
"token_accuracy": 0.972724
|
| 487 |
+
},
|
| 488 |
+
"torch": {
|
| 489 |
+
"macro_f1": 0.796077,
|
| 490 |
+
"per_label": {
|
| 491 |
+
"comma": {
|
| 492 |
+
"f1": 0.8122059758423396,
|
| 493 |
+
"false_negative": 289,
|
| 494 |
+
"false_positive": 1188,
|
| 495 |
+
"label": "comma",
|
| 496 |
+
"precision": 0.72889091738932,
|
| 497 |
+
"recall": 0.9170255526844674,
|
| 498 |
+
"support": 3483,
|
| 499 |
+
"true_positive": 3194
|
| 500 |
+
},
|
| 501 |
+
"none": {
|
| 502 |
+
"f1": 0.9852127758636744,
|
| 503 |
+
"false_negative": 1278,
|
| 504 |
+
"false_positive": 310,
|
| 505 |
+
"label": "none",
|
| 506 |
+
"precision": 0.9941741369265753,
|
| 507 |
+
"recall": 0.9764115247605161,
|
| 508 |
+
"support": 54179,
|
| 509 |
+
"true_positive": 52901
|
| 510 |
+
},
|
| 511 |
+
"period": {
|
| 512 |
+
"f1": 0.9510240427426536,
|
| 513 |
+
"false_negative": 49,
|
| 514 |
+
"false_positive": 116,
|
| 515 |
+
"label": "period",
|
| 516 |
+
"precision": 0.9324796274738067,
|
| 517 |
+
"recall": 0.970321017565112,
|
| 518 |
+
"support": 1651,
|
| 519 |
+
"true_positive": 1602
|
| 520 |
+
},
|
| 521 |
+
"question": {
|
| 522 |
+
"f1": 0.6250000000000001,
|
| 523 |
+
"false_negative": 2,
|
| 524 |
+
"false_positive": 4,
|
| 525 |
+
"label": "question",
|
| 526 |
+
"precision": 0.5555555555555556,
|
| 527 |
+
"recall": 0.7142857142857143,
|
| 528 |
+
"support": 7,
|
| 529 |
+
"true_positive": 5
|
| 530 |
+
}
|
| 531 |
+
},
|
| 532 |
+
"token_accuracy": 0.972724
|
| 533 |
+
}
|
| 534 |
+
},
|
| 535 |
+
"logits": {
|
| 536 |
+
"max_abs_diff": 2.384185791015625e-05,
|
| 537 |
+
"mean_abs_diff": 2.371320733403811e-06,
|
| 538 |
+
"p95_abs_diff": 6.67572021484375e-06,
|
| 539 |
+
"passed": true,
|
| 540 |
+
"threshold": 0.0001
|
| 541 |
+
},
|
| 542 |
+
"passed": true,
|
| 543 |
+
"token_ids": {
|
| 544 |
+
"identical": true,
|
| 545 |
+
"mismatched_batches": 0,
|
| 546 |
+
"onnx_sha256": "5d3cff3e0d70420705c279ab454a4ffa8b8acdd98eb27c123b6be6b8673622ce",
|
| 547 |
+
"sha256": "5d3cff3e0d70420705c279ab454a4ffa8b8acdd98eb27c123b6be6b8673622ce"
|
| 548 |
+
},
|
| 549 |
+
"tokens": 61440,
|
| 550 |
+
"wall_clock_seconds": 10.58,
|
| 551 |
+
"windows": 240
|
| 552 |
+
},
|
| 553 |
+
"int8": {
|
| 554 |
+
"argmax": {
|
| 555 |
+
"agree_fraction": 0.99881185,
|
| 556 |
+
"positions": 61440
|
| 557 |
+
},
|
| 558 |
+
"batch_size": 8,
|
| 559 |
+
"informational": true,
|
| 560 |
+
"insertion": {
|
| 561 |
+
"onnx": {
|
| 562 |
+
"macro_f1": 0.785055,
|
| 563 |
+
"per_label": {
|
| 564 |
+
"comma": {
|
| 565 |
+
"f1": 0.8138970494316005,
|
| 566 |
+
"false_negative": 297,
|
| 567 |
+
"false_positive": 1160,
|
| 568 |
+
"label": "comma",
|
| 569 |
+
"precision": 0.7330878969167051,
|
| 570 |
+
"recall": 0.9147286821705426,
|
| 571 |
+
"support": 3483,
|
| 572 |
+
"true_positive": 3186
|
| 573 |
+
},
|
| 574 |
+
"none": {
|
| 575 |
+
"f1": 0.9854230661826305,
|
| 576 |
+
"false_negative": 1247,
|
| 577 |
+
"false_positive": 319,
|
| 578 |
+
"label": "none",
|
| 579 |
+
"precision": 0.9940095021689733,
|
| 580 |
+
"recall": 0.9769837021724285,
|
| 581 |
+
"support": 54179,
|
| 582 |
+
"true_positive": 52932
|
| 583 |
+
},
|
| 584 |
+
"period": {
|
| 585 |
+
"f1": 0.9530321046373366,
|
| 586 |
+
"false_negative": 48,
|
| 587 |
+
"false_positive": 110,
|
| 588 |
+
"label": "period",
|
| 589 |
+
"precision": 0.9357851722124927,
|
| 590 |
+
"recall": 0.9709267110841914,
|
| 591 |
+
"support": 1651,
|
| 592 |
+
"true_positive": 1603
|
| 593 |
+
},
|
| 594 |
+
"question": {
|
| 595 |
+
"f1": 0.588235294117647,
|
| 596 |
+
"false_negative": 2,
|
| 597 |
+
"false_positive": 5,
|
| 598 |
+
"label": "question",
|
| 599 |
+
"precision": 0.5,
|
| 600 |
+
"recall": 0.7142857142857143,
|
| 601 |
+
"support": 7,
|
| 602 |
+
"true_positive": 5
|
| 603 |
+
}
|
| 604 |
+
},
|
| 605 |
+
"token_accuracy": 0.973129
|
| 606 |
+
},
|
| 607 |
+
"torch": {
|
| 608 |
+
"macro_f1": 0.796077,
|
| 609 |
+
"per_label": {
|
| 610 |
+
"comma": {
|
| 611 |
+
"f1": 0.8122059758423396,
|
| 612 |
+
"false_negative": 289,
|
| 613 |
+
"false_positive": 1188,
|
| 614 |
+
"label": "comma",
|
| 615 |
+
"precision": 0.72889091738932,
|
| 616 |
+
"recall": 0.9170255526844674,
|
| 617 |
+
"support": 3483,
|
| 618 |
+
"true_positive": 3194
|
| 619 |
+
},
|
| 620 |
+
"none": {
|
| 621 |
+
"f1": 0.9852127758636744,
|
| 622 |
+
"false_negative": 1278,
|
| 623 |
+
"false_positive": 310,
|
| 624 |
+
"label": "none",
|
| 625 |
+
"precision": 0.9941741369265753,
|
| 626 |
+
"recall": 0.9764115247605161,
|
| 627 |
+
"support": 54179,
|
| 628 |
+
"true_positive": 52901
|
| 629 |
+
},
|
| 630 |
+
"period": {
|
| 631 |
+
"f1": 0.9510240427426536,
|
| 632 |
+
"false_negative": 49,
|
| 633 |
+
"false_positive": 116,
|
| 634 |
+
"label": "period",
|
| 635 |
+
"precision": 0.9324796274738067,
|
| 636 |
+
"recall": 0.970321017565112,
|
| 637 |
+
"support": 1651,
|
| 638 |
+
"true_positive": 1602
|
| 639 |
+
},
|
| 640 |
+
"question": {
|
| 641 |
+
"f1": 0.6250000000000001,
|
| 642 |
+
"false_negative": 2,
|
| 643 |
+
"false_positive": 4,
|
| 644 |
+
"label": "question",
|
| 645 |
+
"precision": 0.5555555555555556,
|
| 646 |
+
"recall": 0.7142857142857143,
|
| 647 |
+
"support": 7,
|
| 648 |
+
"true_positive": 5
|
| 649 |
+
}
|
| 650 |
+
},
|
| 651 |
+
"token_accuracy": 0.972724
|
| 652 |
+
}
|
| 653 |
+
},
|
| 654 |
+
"logits": {
|
| 655 |
+
"max_abs_diff": 0.6928642988204956,
|
| 656 |
+
"mean_abs_diff": 0.046028976308819684,
|
| 657 |
+
"p95_abs_diff": 0.12100896835327146,
|
| 658 |
+
"passed": true,
|
| 659 |
+
"threshold": null
|
| 660 |
+
},
|
| 661 |
+
"note": "dynamic int8 weights; no 1e-4 logit threshold applies. The deployment-relevant numbers are the argmax agreement and the insertion macro F1.",
|
| 662 |
+
"passed": true,
|
| 663 |
+
"token_ids": {
|
| 664 |
+
"identical": true,
|
| 665 |
+
"mismatched_batches": 0,
|
| 666 |
+
"onnx_sha256": "5d3cff3e0d70420705c279ab454a4ffa8b8acdd98eb27c123b6be6b8673622ce",
|
| 667 |
+
"sha256": "5d3cff3e0d70420705c279ab454a4ffa8b8acdd98eb27c123b6be6b8673622ce"
|
| 668 |
+
},
|
| 669 |
+
"tokens": 61440,
|
| 670 |
+
"wall_clock_seconds": 8.86,
|
| 671 |
+
"windows": 240
|
| 672 |
+
}
|
| 673 |
+
},
|
| 674 |
+
"placeholder": false,
|
| 675 |
+
"production_eligible": true,
|
| 676 |
+
"quality": "trained",
|
| 677 |
+
"quality_report": {
|
| 678 |
+
"checkpoint_metrics": {
|
| 679 |
+
"macro_f1": 0.7710068552264163,
|
| 680 |
+
"per_label": {
|
| 681 |
+
"comma": {
|
| 682 |
+
"f1": 0.8166025914851204,
|
| 683 |
+
"false_negative": 2664,
|
| 684 |
+
"false_positive": 10216,
|
| 685 |
+
"label": "comma",
|
| 686 |
+
"precision": 0.7373171170707876,
|
| 687 |
+
"recall": 0.9149940968122786,
|
| 688 |
+
"support": 31339,
|
| 689 |
+
"true_positive": 28675
|
| 690 |
+
},
|
| 691 |
+
"none": {
|
| 692 |
+
"f1": 0.98492445835592,
|
| 693 |
+
"false_negative": 11056,
|
| 694 |
+
"false_positive": 2738,
|
| 695 |
+
"label": "none",
|
| 696 |
+
"precision": 0.9939603429678142,
|
| 697 |
+
"recall": 0.9760513803597924,
|
| 698 |
+
"support": 461655,
|
| 699 |
+
"true_positive": 450599
|
| 700 |
+
},
|
| 701 |
+
"period": {
|
| 702 |
+
"f1": 0.9540450928381963,
|
| 703 |
+
"false_negative": 316,
|
| 704 |
+
"false_positive": 1070,
|
| 705 |
+
"label": "period",
|
| 706 |
+
"precision": 0.9307757003299476,
|
| 707 |
+
"recall": 0.9785077875263551,
|
| 708 |
+
"support": 14703,
|
| 709 |
+
"true_positive": 14387
|
| 710 |
+
},
|
| 711 |
+
"question": {
|
| 712 |
+
"f1": 0.5423728813559323,
|
| 713 |
+
"false_negative": 21,
|
| 714 |
+
"false_positive": 33,
|
| 715 |
+
"label": "question",
|
| 716 |
+
"precision": 0.49230769230769234,
|
| 717 |
+
"recall": 0.6037735849056604,
|
| 718 |
+
"support": 53,
|
| 719 |
+
"true_positive": 32
|
| 720 |
+
}
|
| 721 |
+
},
|
| 722 |
+
"tokens": 507750,
|
| 723 |
+
"val_loss": 0.06872054451172836,
|
| 724 |
+
"val_token_accuracy": 0.9723151157065485,
|
| 725 |
+
"windows": 2048
|
| 726 |
+
},
|
| 727 |
+
"headline": {
|
| 728 |
+
"macro_f1": 0.7842744539883636,
|
| 729 |
+
"per_label": {
|
| 730 |
+
"comma": {
|
| 731 |
+
"f1": 0.8196280434342753,
|
| 732 |
+
"false_negative": 97367,
|
| 733 |
+
"false_positive": 373323,
|
| 734 |
+
"label": "comma",
|
| 735 |
+
"precision": 0.7412427898311147,
|
| 736 |
+
"recall": 0.9165519652930498,
|
| 737 |
+
"support": 1166798,
|
| 738 |
+
"true_positive": 1069431
|
| 739 |
+
},
|
| 740 |
+
"none": {
|
| 741 |
+
"f1": 0.9850473386876002,
|
| 742 |
+
"false_negative": 405375,
|
| 743 |
+
"false_positive": 99315,
|
| 744 |
+
"label": "none",
|
| 745 |
+
"precision": 0.994061254913076,
|
| 746 |
+
"recall": 0.9761954256460487,
|
| 747 |
+
"support": 17029290,
|
| 748 |
+
"true_positive": 16623915
|
| 749 |
+
},
|
| 750 |
+
"period": {
|
| 751 |
+
"f1": 0.9539389584525377,
|
| 752 |
+
"false_negative": 11194,
|
| 753 |
+
"false_positive": 40729,
|
| 754 |
+
"label": "period",
|
| 755 |
+
"precision": 0.9295833333333333,
|
| 756 |
+
"recall": 0.9796051852459166,
|
| 757 |
+
"support": 548865,
|
| 758 |
+
"true_positive": 537671
|
| 759 |
+
},
|
| 760 |
+
"question": {
|
| 761 |
+
"f1": 0.5792563600782779,
|
| 762 |
+
"false_negative": 683,
|
| 763 |
+
"false_positive": 1252,
|
| 764 |
+
"label": "question",
|
| 765 |
+
"precision": 0.5154798761609907,
|
| 766 |
+
"recall": 0.6610421836228287,
|
| 767 |
+
"support": 2015,
|
| 768 |
+
"true_positive": 1332
|
| 769 |
+
}
|
| 770 |
+
},
|
| 771 |
+
"split": "validation",
|
| 772 |
+
"token_accuracy": 0.9725492143582898,
|
| 773 |
+
"tokens": 18746968,
|
| 774 |
+
"val_loss": 0.06783106585551037,
|
| 775 |
+
"windows": 75631
|
| 776 |
+
},
|
| 777 |
+
"no_edit": {
|
| 778 |
+
"available": true,
|
| 779 |
+
"changed_characters": 0,
|
| 780 |
+
"examples": 3000,
|
| 781 |
+
"input_not_recovered": 0,
|
| 782 |
+
"inserted_marks": 40607,
|
| 783 |
+
"ok": true,
|
| 784 |
+
"surface_mismatches": 0,
|
| 785 |
+
"tokenizer_mismatches": 0,
|
| 786 |
+
"tokens": 374682
|
| 787 |
+
},
|
| 788 |
+
"recorded_eval": {
|
| 789 |
+
"checkpoint": "/mnt/work/0c/runs/p2-24a-punctuation-public-core/best.pt",
|
| 790 |
+
"macro_f1": 0.7842744539883636,
|
| 791 |
+
"no_edit": {
|
| 792 |
+
"available": true,
|
| 793 |
+
"changed_characters": 0,
|
| 794 |
+
"examples": 3000,
|
| 795 |
+
"input_not_recovered": 0,
|
| 796 |
+
"inserted_marks": 40607,
|
| 797 |
+
"ok": true,
|
| 798 |
+
"surface_mismatches": 0,
|
| 799 |
+
"tokenizer_mismatches": 0,
|
| 800 |
+
"tokens": 374682
|
| 801 |
+
},
|
| 802 |
+
"per_label": {
|
| 803 |
+
"comma": {
|
| 804 |
+
"f1": 0.8196280434342753,
|
| 805 |
+
"false_negative": 97367,
|
| 806 |
+
"false_positive": 373323,
|
| 807 |
+
"label": "comma",
|
| 808 |
+
"precision": 0.7412427898311147,
|
| 809 |
+
"recall": 0.9165519652930498,
|
| 810 |
+
"support": 1166798,
|
| 811 |
+
"true_positive": 1069431
|
| 812 |
+
},
|
| 813 |
+
"none": {
|
| 814 |
+
"f1": 0.9850473386876002,
|
| 815 |
+
"false_negative": 405375,
|
| 816 |
+
"false_positive": 99315,
|
| 817 |
+
"label": "none",
|
| 818 |
+
"precision": 0.994061254913076,
|
| 819 |
+
"recall": 0.9761954256460487,
|
| 820 |
+
"support": 17029290,
|
| 821 |
+
"true_positive": 16623915
|
| 822 |
+
},
|
| 823 |
+
"period": {
|
| 824 |
+
"f1": 0.9539389584525377,
|
| 825 |
+
"false_negative": 11194,
|
| 826 |
+
"false_positive": 40729,
|
| 827 |
+
"label": "period",
|
| 828 |
+
"precision": 0.9295833333333333,
|
| 829 |
+
"recall": 0.9796051852459166,
|
| 830 |
+
"support": 548865,
|
| 831 |
+
"true_positive": 537671
|
| 832 |
+
},
|
| 833 |
+
"question": {
|
| 834 |
+
"f1": 0.5792563600782779,
|
| 835 |
+
"false_negative": 683,
|
| 836 |
+
"false_positive": 1252,
|
| 837 |
+
"label": "question",
|
| 838 |
+
"precision": 0.5154798761609907,
|
| 839 |
+
"recall": 0.6610421836228287,
|
| 840 |
+
"support": 2015,
|
| 841 |
+
"true_positive": 1332
|
| 842 |
+
}
|
| 843 |
+
},
|
| 844 |
+
"phase": "eval-only",
|
| 845 |
+
"time": "2026-11-18T12:03:07+00:00",
|
| 846 |
+
"tokens": 18746968,
|
| 847 |
+
"val_loss": 0.06783106585551037,
|
| 848 |
+
"val_token_accuracy": 0.9725492143582898,
|
| 849 |
+
"windows": 75631
|
| 850 |
+
},
|
| 851 |
+
"run_summary": {
|
| 852 |
+
"final": {
|
| 853 |
+
"macro_f1": 0.7648247873144803,
|
| 854 |
+
"no_edit": {
|
| 855 |
+
"available": true,
|
| 856 |
+
"changed_characters": 0,
|
| 857 |
+
"examples": 3000,
|
| 858 |
+
"input_not_recovered": 0,
|
| 859 |
+
"inserted_marks": 40373,
|
| 860 |
+
"ok": true,
|
| 861 |
+
"surface_mismatches": 0,
|
| 862 |
+
"tokenizer_mismatches": 0,
|
| 863 |
+
"tokens": 374682
|
| 864 |
+
},
|
| 865 |
+
"per_label": {
|
| 866 |
+
"comma": {
|
| 867 |
+
"f1": 0.8189644059299577,
|
| 868 |
+
"false_negative": 2751,
|
| 869 |
+
"false_positive": 9888,
|
| 870 |
+
"label": "comma",
|
| 871 |
+
"precision": 0.7430086287555879,
|
| 872 |
+
"recall": 0.912218003127094,
|
| 873 |
+
"support": 31339,
|
| 874 |
+
"true_positive": 28588
|
| 875 |
+
},
|
| 876 |
+
"none": {
|
| 877 |
+
"f1": 0.985138936685075,
|
| 878 |
+
"false_negative": 10784,
|
| 879 |
+
"false_positive": 2819,
|
| 880 |
+
"label": "none",
|
| 881 |
+
"precision": 0.9937865062046772,
|
| 882 |
+
"recall": 0.9766405649240234,
|
| 883 |
+
"support": 461655,
|
| 884 |
+
"true_positive": 450871
|
| 885 |
+
},
|
| 886 |
+
"period": {
|
| 887 |
+
"f1": 0.953121896311991,
|
| 888 |
+
"false_negative": 308,
|
| 889 |
+
"false_positive": 1108,
|
| 890 |
+
"label": "period",
|
| 891 |
+
"precision": 0.9285299619428498,
|
| 892 |
+
"recall": 0.9790518941712576,
|
| 893 |
+
"support": 14703,
|
| 894 |
+
"true_positive": 14395
|
| 895 |
+
},
|
| 896 |
+
"question": {
|
| 897 |
+
"f1": 0.5223880597014925,
|
| 898 |
+
"false_negative": 18,
|
| 899 |
+
"false_positive": 46,
|
| 900 |
+
"label": "question",
|
| 901 |
+
"precision": 0.43209876543209874,
|
| 902 |
+
"recall": 0.660377358490566,
|
| 903 |
+
"support": 53,
|
| 904 |
+
"true_positive": 35
|
| 905 |
+
}
|
| 906 |
+
},
|
| 907 |
+
"tokens": 507750,
|
| 908 |
+
"val_loss": 0.06797123311811454,
|
| 909 |
+
"val_token_accuracy": 0.9727011324470705,
|
| 910 |
+
"windows": 2048
|
| 911 |
+
},
|
| 912 |
+
"inside_budget": true,
|
| 913 |
+
"int8_bytes_per_model": 33865732,
|
| 914 |
+
"parameters": 33865732,
|
| 915 |
+
"steps": 116703,
|
| 916 |
+
"tokens_seen": 1912061952
|
| 917 |
+
},
|
| 918 |
+
"source": {
|
| 919 |
+
"device": "cuda",
|
| 920 |
+
"dtype": "bf16",
|
| 921 |
+
"measured_at": "2026-11-18T16:31:08+00:00",
|
| 922 |
+
"path": "/mnt/work/0c/runs/p2-25d-eval/quality.json",
|
| 923 |
+
"sha256": "6e979085279e17f5af49701579665f1e81b9c107051b3732072360a40ebdc344",
|
| 924 |
+
"trained_step": 114000
|
| 925 |
+
},
|
| 926 |
+
"splits": {
|
| 927 |
+
"test": {
|
| 928 |
+
"macro_f1": 0.7932360627944295,
|
| 929 |
+
"per_label": {
|
| 930 |
+
"comma": {
|
| 931 |
+
"f1": 0.8214539802010159,
|
| 932 |
+
"false_negative": 103467,
|
| 933 |
+
"false_positive": 375620,
|
| 934 |
+
"label": "comma",
|
| 935 |
+
"precision": 0.7458095662819049,
|
| 936 |
+
"recall": 0.9141750127326931,
|
| 937 |
+
"support": 1205558,
|
| 938 |
+
"true_positive": 1102091
|
| 939 |
+
},
|
| 940 |
+
"none": {
|
| 941 |
+
"f1": 0.985403717372751,
|
| 942 |
+
"false_negative": 404614,
|
| 943 |
+
"false_positive": 104755,
|
| 944 |
+
"label": "none",
|
| 945 |
+
"precision": 0.9939443275856618,
|
| 946 |
+
"recall": 0.9770086295912678,
|
| 947 |
+
"support": 17598516,
|
| 948 |
+
"true_positive": 17193902
|
| 949 |
+
},
|
| 950 |
+
"period": {
|
| 951 |
+
"f1": 0.9569794206468617,
|
| 952 |
+
"false_negative": 10451,
|
| 953 |
+
"false_positive": 37471,
|
| 954 |
+
"label": "period",
|
| 955 |
+
"precision": 0.9343162551974141,
|
| 956 |
+
"recall": 0.9807693723134899,
|
| 957 |
+
"support": 543456,
|
| 958 |
+
"true_positive": 533005
|
| 959 |
+
},
|
| 960 |
+
"question": {
|
| 961 |
+
"f1": 0.6012747875354107,
|
| 962 |
+
"false_negative": 783,
|
| 963 |
+
"false_positive": 1469,
|
| 964 |
+
"label": "question",
|
| 965 |
+
"precision": 0.5361540890432586,
|
| 966 |
+
"recall": 0.6844014510278114,
|
| 967 |
+
"support": 2481,
|
| 968 |
+
"true_positive": 1698
|
| 969 |
+
}
|
| 970 |
+
},
|
| 971 |
+
"tokens": 19350011,
|
| 972 |
+
"val_loss": 0.06656939773114519,
|
| 973 |
+
"val_token_accuracy": 0.9731620307606027,
|
| 974 |
+
"windows": 78058
|
| 975 |
+
},
|
| 976 |
+
"validation": {
|
| 977 |
+
"macro_f1": 0.7842744539883636,
|
| 978 |
+
"no_edit": {
|
| 979 |
+
"available": true,
|
| 980 |
+
"changed_characters": 0,
|
| 981 |
+
"examples": 3000,
|
| 982 |
+
"input_not_recovered": 0,
|
| 983 |
+
"inserted_marks": 40607,
|
| 984 |
+
"ok": true,
|
| 985 |
+
"surface_mismatches": 0,
|
| 986 |
+
"tokenizer_mismatches": 0,
|
| 987 |
+
"tokens": 374682
|
| 988 |
+
},
|
| 989 |
+
"per_label": {
|
| 990 |
+
"comma": {
|
| 991 |
+
"f1": 0.8196280434342753,
|
| 992 |
+
"false_negative": 97367,
|
| 993 |
+
"false_positive": 373323,
|
| 994 |
+
"label": "comma",
|
| 995 |
+
"precision": 0.7412427898311147,
|
| 996 |
+
"recall": 0.9165519652930498,
|
| 997 |
+
"support": 1166798,
|
| 998 |
+
"true_positive": 1069431
|
| 999 |
+
},
|
| 1000 |
+
"none": {
|
| 1001 |
+
"f1": 0.9850473386876002,
|
| 1002 |
+
"false_negative": 405375,
|
| 1003 |
+
"false_positive": 99315,
|
| 1004 |
+
"label": "none",
|
| 1005 |
+
"precision": 0.994061254913076,
|
| 1006 |
+
"recall": 0.9761954256460487,
|
| 1007 |
+
"support": 17029290,
|
| 1008 |
+
"true_positive": 16623915
|
| 1009 |
+
},
|
| 1010 |
+
"period": {
|
| 1011 |
+
"f1": 0.9539389584525377,
|
| 1012 |
+
"false_negative": 11194,
|
| 1013 |
+
"false_positive": 40729,
|
| 1014 |
+
"label": "period",
|
| 1015 |
+
"precision": 0.9295833333333333,
|
| 1016 |
+
"recall": 0.9796051852459166,
|
| 1017 |
+
"support": 548865,
|
| 1018 |
+
"true_positive": 537671
|
| 1019 |
+
},
|
| 1020 |
+
"question": {
|
| 1021 |
+
"f1": 0.5792563600782779,
|
| 1022 |
+
"false_negative": 683,
|
| 1023 |
+
"false_positive": 1252,
|
| 1024 |
+
"label": "question",
|
| 1025 |
+
"precision": 0.5154798761609907,
|
| 1026 |
+
"recall": 0.6610421836228287,
|
| 1027 |
+
"support": 2015,
|
| 1028 |
+
"true_positive": 1332
|
| 1029 |
+
}
|
| 1030 |
+
},
|
| 1031 |
+
"tokens": 18746968,
|
| 1032 |
+
"val_loss": 0.06783106585551037,
|
| 1033 |
+
"val_token_accuracy": 0.9725492143582898,
|
| 1034 |
+
"windows": 75631
|
| 1035 |
+
}
|
| 1036 |
+
},
|
| 1037 |
+
"status": "trained",
|
| 1038 |
+
"tier": "full"
|
| 1039 |
+
},
|
| 1040 |
+
"quality_tier": "full",
|
| 1041 |
+
"quantization": {
|
| 1042 |
+
"activation_type": "dynamic uint8 (onnxruntime default)",
|
| 1043 |
+
"calibration_data": null,
|
| 1044 |
+
"fp32": {
|
| 1045 |
+
"dynamic_quantize_linear": 0,
|
| 1046 |
+
"embedding_gather": 27,
|
| 1047 |
+
"embedding_weight_dtype": "float32",
|
| 1048 |
+
"initializer_dtypes": {
|
| 1049 |
+
"float32": 104
|
| 1050 |
+
},
|
| 1051 |
+
"nodes": {
|
| 1052 |
+
"Add": 74,
|
| 1053 |
+
"Cast": 18,
|
| 1054 |
+
"Concat": 32,
|
| 1055 |
+
"Constant": 270,
|
| 1056 |
+
"Div": 24,
|
| 1057 |
+
"Erf": 8,
|
| 1058 |
+
"Gather": 27,
|
| 1059 |
+
"IsNaN": 8,
|
| 1060 |
+
"LayerNormalization": 18,
|
| 1061 |
+
"MatMul": 49,
|
| 1062 |
+
"Mul": 56,
|
| 1063 |
+
"Range": 1,
|
| 1064 |
+
"Reshape": 32,
|
| 1065 |
+
"Shape": 33,
|
| 1066 |
+
"Slice": 32,
|
| 1067 |
+
"Softmax": 8,
|
| 1068 |
+
"Sqrt": 24,
|
| 1069 |
+
"Transpose": 32,
|
| 1070 |
+
"Unsqueeze": 67,
|
| 1071 |
+
"Where": 16
|
| 1072 |
+
},
|
| 1073 |
+
"quantized_matmul": 0
|
| 1074 |
+
},
|
| 1075 |
+
"int8": {
|
| 1076 |
+
"dynamic_quantize_linear": 33,
|
| 1077 |
+
"embedding_gather": 27,
|
| 1078 |
+
"embedding_weight_dtype": "uint8",
|
| 1079 |
+
"initializer_dtypes": {
|
| 1080 |
+
"float32": 104,
|
| 1081 |
+
"int8": 66,
|
| 1082 |
+
"uint8": 4
|
| 1083 |
+
},
|
| 1084 |
+
"nodes": {
|
| 1085 |
+
"Add": 74,
|
| 1086 |
+
"Cast": 51,
|
| 1087 |
+
"Concat": 32,
|
| 1088 |
+
"Constant": 270,
|
| 1089 |
+
"DequantizeLinear": 2,
|
| 1090 |
+
"Div": 24,
|
| 1091 |
+
"DynamicQuantizeLinear": 33,
|
| 1092 |
+
"Erf": 8,
|
| 1093 |
+
"Gather": 27,
|
| 1094 |
+
"IsNaN": 8,
|
| 1095 |
+
"LayerNormalization": 18,
|
| 1096 |
+
"MatMul": 16,
|
| 1097 |
+
"MatMulInteger": 33,
|
| 1098 |
+
"Mul": 122,
|
| 1099 |
+
"Range": 1,
|
| 1100 |
+
"Reshape": 32,
|
| 1101 |
+
"Shape": 33,
|
| 1102 |
+
"Slice": 32,
|
| 1103 |
+
"Softmax": 8,
|
| 1104 |
+
"Sqrt": 24,
|
| 1105 |
+
"Transpose": 32,
|
| 1106 |
+
"Unsqueeze": 67,
|
| 1107 |
+
"Where": 16
|
| 1108 |
+
},
|
| 1109 |
+
"quantized_matmul": 33
|
| 1110 |
+
},
|
| 1111 |
+
"method": "dynamic",
|
| 1112 |
+
"note": "dynamic quantisation needs no calibration set; null op_types means the onnxruntime default set, which also quantises the 32k embedding table",
|
| 1113 |
+
"op_types": null,
|
| 1114 |
+
"per_channel": false,
|
| 1115 |
+
"reduce_range": false,
|
| 1116 |
+
"weight_type": "qint8"
|
| 1117 |
+
},
|
| 1118 |
+
"schema": "0c.model.manifest/1",
|
| 1119 |
+
"source_checkpoint": {
|
| 1120 |
+
"bytes": 406517247,
|
| 1121 |
+
"path": "/mnt/work/0c/runs/p2-24a-punctuation-public-core/best.pt",
|
| 1122 |
+
"sha256": "3357dacf108cdcb63f582762e5aa42bb9c2701a243796284d3927725ff132c7f",
|
| 1123 |
+
"step": 114000,
|
| 1124 |
+
"trained_parameters": 33865732
|
| 1125 |
+
},
|
| 1126 |
+
"trained": true,
|
| 1127 |
+
"training": {
|
| 1128 |
+
"batch_size": null,
|
| 1129 |
+
"checkpoint_validation": {
|
| 1130 |
+
"macro_f1": 0.7710068552264163,
|
| 1131 |
+
"per_label": {
|
| 1132 |
+
"comma": {
|
| 1133 |
+
"f1": 0.8166025914851204,
|
| 1134 |
+
"false_negative": 2664,
|
| 1135 |
+
"false_positive": 10216,
|
| 1136 |
+
"label": "comma",
|
| 1137 |
+
"precision": 0.7373171170707876,
|
| 1138 |
+
"recall": 0.9149940968122786,
|
| 1139 |
+
"support": 31339,
|
| 1140 |
+
"true_positive": 28675
|
| 1141 |
+
},
|
| 1142 |
+
"none": {
|
| 1143 |
+
"f1": 0.98492445835592,
|
| 1144 |
+
"false_negative": 11056,
|
| 1145 |
+
"false_positive": 2738,
|
| 1146 |
+
"label": "none",
|
| 1147 |
+
"precision": 0.9939603429678142,
|
| 1148 |
+
"recall": 0.9760513803597924,
|
| 1149 |
+
"support": 461655,
|
| 1150 |
+
"true_positive": 450599
|
| 1151 |
+
},
|
| 1152 |
+
"period": {
|
| 1153 |
+
"f1": 0.9540450928381963,
|
| 1154 |
+
"false_negative": 316,
|
| 1155 |
+
"false_positive": 1070,
|
| 1156 |
+
"label": "period",
|
| 1157 |
+
"precision": 0.9307757003299476,
|
| 1158 |
+
"recall": 0.9785077875263551,
|
| 1159 |
+
"support": 14703,
|
| 1160 |
+
"true_positive": 14387
|
| 1161 |
+
},
|
| 1162 |
+
"question": {
|
| 1163 |
+
"f1": 0.5423728813559323,
|
| 1164 |
+
"false_negative": 21,
|
| 1165 |
+
"false_positive": 33,
|
| 1166 |
+
"label": "question",
|
| 1167 |
+
"precision": 0.49230769230769234,
|
| 1168 |
+
"recall": 0.6037735849056604,
|
| 1169 |
+
"support": 53,
|
| 1170 |
+
"true_positive": 32
|
| 1171 |
+
}
|
| 1172 |
+
},
|
| 1173 |
+
"tokens": 507750,
|
| 1174 |
+
"val_loss": 0.06872054451172836,
|
| 1175 |
+
"val_token_accuracy": 0.9723151157065485,
|
| 1176 |
+
"windows": 2048
|
| 1177 |
+
},
|
| 1178 |
+
"max_steps": null,
|
| 1179 |
+
"optimizer": {
|
| 1180 |
+
"betas": [
|
| 1181 |
+
0.9,
|
| 1182 |
+
0.98
|
| 1183 |
+
],
|
| 1184 |
+
"lr": 0.0006,
|
| 1185 |
+
"weight_decay": 0.01
|
| 1186 |
+
},
|
| 1187 |
+
"precision": "bf16 (autocast) with fp32 logits",
|
| 1188 |
+
"seed": 20261119,
|
| 1189 |
+
"seq_len": 256,
|
| 1190 |
+
"trained_step": 114000
|
| 1191 |
+
},
|
| 1192 |
+
"variant": "public-core",
|
| 1193 |
+
"verification": {
|
| 1194 |
+
"checked": "onnx.checker full graph, input/output names, dtypes, symbolic batch/seq, dynamic seq beyond the trace length, finiteness",
|
| 1195 |
+
"dynamic_batch_probe": {
|
| 1196 |
+
"1": {
|
| 1197 |
+
"finite": true,
|
| 1198 |
+
"shape": [
|
| 1199 |
+
1,
|
| 1200 |
+
256,
|
| 1201 |
+
4
|
| 1202 |
+
]
|
| 1203 |
+
},
|
| 1204 |
+
"2": {
|
| 1205 |
+
"finite": true,
|
| 1206 |
+
"shape": [
|
| 1207 |
+
2,
|
| 1208 |
+
256,
|
| 1209 |
+
4
|
| 1210 |
+
]
|
| 1211 |
+
},
|
| 1212 |
+
"3": {
|
| 1213 |
+
"finite": true,
|
| 1214 |
+
"shape": [
|
| 1215 |
+
3,
|
| 1216 |
+
256,
|
| 1217 |
+
4
|
| 1218 |
+
]
|
| 1219 |
+
},
|
| 1220 |
+
"8": {
|
| 1221 |
+
"finite": true,
|
| 1222 |
+
"shape": [
|
| 1223 |
+
8,
|
| 1224 |
+
256,
|
| 1225 |
+
4
|
| 1226 |
+
]
|
| 1227 |
+
}
|
| 1228 |
+
},
|
| 1229 |
+
"dynamic_seq_probe": {
|
| 1230 |
+
"1": {
|
| 1231 |
+
"finite": true,
|
| 1232 |
+
"shape": [
|
| 1233 |
+
1,
|
| 1234 |
+
1,
|
| 1235 |
+
4
|
| 1236 |
+
]
|
| 1237 |
+
},
|
| 1238 |
+
"128": {
|
| 1239 |
+
"finite": true,
|
| 1240 |
+
"shape": [
|
| 1241 |
+
1,
|
| 1242 |
+
128,
|
| 1243 |
+
4
|
| 1244 |
+
]
|
| 1245 |
+
},
|
| 1246 |
+
"2": {
|
| 1247 |
+
"finite": true,
|
| 1248 |
+
"shape": [
|
| 1249 |
+
1,
|
| 1250 |
+
2,
|
| 1251 |
+
4
|
| 1252 |
+
]
|
| 1253 |
+
},
|
| 1254 |
+
"255": {
|
| 1255 |
+
"finite": true,
|
| 1256 |
+
"shape": [
|
| 1257 |
+
1,
|
| 1258 |
+
255,
|
| 1259 |
+
4
|
| 1260 |
+
]
|
| 1261 |
+
},
|
| 1262 |
+
"256": {
|
| 1263 |
+
"finite": true,
|
| 1264 |
+
"shape": [
|
| 1265 |
+
1,
|
| 1266 |
+
256,
|
| 1267 |
+
4
|
| 1268 |
+
]
|
| 1269 |
+
},
|
| 1270 |
+
"512": {
|
| 1271 |
+
"finite": true,
|
| 1272 |
+
"shape": [
|
| 1273 |
+
1,
|
| 1274 |
+
512,
|
| 1275 |
+
4
|
| 1276 |
+
]
|
| 1277 |
+
},
|
| 1278 |
+
"64": {
|
| 1279 |
+
"finite": true,
|
| 1280 |
+
"shape": [
|
| 1281 |
+
1,
|
| 1282 |
+
64,
|
| 1283 |
+
4
|
| 1284 |
+
]
|
| 1285 |
+
}
|
| 1286 |
+
},
|
| 1287 |
+
"fp32": {
|
| 1288 |
+
"actual_shape": [
|
| 1289 |
+
1,
|
| 1290 |
+
256,
|
| 1291 |
+
4
|
| 1292 |
+
],
|
| 1293 |
+
"dtype": "float32",
|
| 1294 |
+
"expected_shape": [
|
| 1295 |
+
1,
|
| 1296 |
+
256,
|
| 1297 |
+
4
|
| 1298 |
+
],
|
| 1299 |
+
"feed_shape_ok": true,
|
| 1300 |
+
"finite": true,
|
| 1301 |
+
"inputs": [
|
| 1302 |
+
"input_ids",
|
| 1303 |
+
"attention_mask"
|
| 1304 |
+
],
|
| 1305 |
+
"ok": true,
|
| 1306 |
+
"outputs": [
|
| 1307 |
+
"logits"
|
| 1308 |
+
]
|
| 1309 |
+
},
|
| 1310 |
+
"int8": {
|
| 1311 |
+
"actual_shape": [
|
| 1312 |
+
1,
|
| 1313 |
+
256,
|
| 1314 |
+
4
|
| 1315 |
+
],
|
| 1316 |
+
"dtype": "float32",
|
| 1317 |
+
"expected_shape": [
|
| 1318 |
+
1,
|
| 1319 |
+
256,
|
| 1320 |
+
4
|
| 1321 |
+
],
|
| 1322 |
+
"feed_shape_ok": true,
|
| 1323 |
+
"finite": true,
|
| 1324 |
+
"inputs": [
|
| 1325 |
+
"input_ids",
|
| 1326 |
+
"attention_mask"
|
| 1327 |
+
],
|
| 1328 |
+
"ok": true,
|
| 1329 |
+
"outputs": [
|
| 1330 |
+
"logits"
|
| 1331 |
+
]
|
| 1332 |
+
},
|
| 1333 |
+
"int8_contract": {
|
| 1334 |
+
"checker": true,
|
| 1335 |
+
"dynamic_axes_ok": true,
|
| 1336 |
+
"input_names_ok": true,
|
| 1337 |
+
"inputs": [
|
| 1338 |
+
{
|
| 1339 |
+
"dtype": "int64",
|
| 1340 |
+
"name": "input_ids",
|
| 1341 |
+
"shape": [
|
| 1342 |
+
"batch",
|
| 1343 |
+
"seq"
|
| 1344 |
+
]
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"dtype": "int64",
|
| 1348 |
+
"name": "attention_mask",
|
| 1349 |
+
"shape": [
|
| 1350 |
+
"batch",
|
| 1351 |
+
"seq"
|
| 1352 |
+
]
|
| 1353 |
+
}
|
| 1354 |
+
],
|
| 1355 |
+
"ir_version": 8,
|
| 1356 |
+
"label_axis": 4,
|
| 1357 |
+
"opset": 17,
|
| 1358 |
+
"output_names_ok": true,
|
| 1359 |
+
"outputs": [
|
| 1360 |
+
{
|
| 1361 |
+
"dtype": "float32",
|
| 1362 |
+
"name": "logits",
|
| 1363 |
+
"shape": [
|
| 1364 |
+
"batch",
|
| 1365 |
+
"seq",
|
| 1366 |
+
4
|
| 1367 |
+
]
|
| 1368 |
+
}
|
| 1369 |
+
]
|
| 1370 |
+
},
|
| 1371 |
+
"onnx_no_edit": {
|
| 1372 |
+
"fp32": {
|
| 1373 |
+
"available": true,
|
| 1374 |
+
"changed_characters": 0,
|
| 1375 |
+
"examples": 3000,
|
| 1376 |
+
"input_not_recovered": 0,
|
| 1377 |
+
"inserted_marks": 40640,
|
| 1378 |
+
"ok": true,
|
| 1379 |
+
"surface_mismatches": 0,
|
| 1380 |
+
"tokenizer_mismatches": 0,
|
| 1381 |
+
"tokens": 374682
|
| 1382 |
+
},
|
| 1383 |
+
"int8": {
|
| 1384 |
+
"available": true,
|
| 1385 |
+
"changed_characters": 0,
|
| 1386 |
+
"examples": 3000,
|
| 1387 |
+
"input_not_recovered": 0,
|
| 1388 |
+
"inserted_marks": 40385,
|
| 1389 |
+
"ok": true,
|
| 1390 |
+
"surface_mismatches": 0,
|
| 1391 |
+
"tokenizer_mismatches": 0,
|
| 1392 |
+
"tokens": 374682
|
| 1393 |
+
}
|
| 1394 |
+
},
|
| 1395 |
+
"onnxruntime": "1.32.0",
|
| 1396 |
+
"provider": "CPUExecutionProvider"
|
| 1397 |
+
}
|
| 1398 |
+
}
|
model.int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2860267deb3da1816b3f53decf786c5f5f478a1b9d327c8c80f2428c643f051b
|
| 3 |
+
size 34240656
|
model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:998b3df5af330a7f2106d6ecd4185a15760bb4ea942eb3ebf9f24b9ca7151a06
|
| 3 |
+
size 135599640
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|