punctuation-restoration-small, ONNX int8

Horizon Labs' punctuation-restoration-small v1.1, made smaller for offline dictation in WM Keyboard. Horizon Labs trained it from mmBERT-small.

Source revision: ee31fdfc5304f876ea3b0dd72d30eda7e940b2b1. Changes: the token table was quantized to int8 and MatMul weights to 8 bits. Weights were moved to an external file, and the tokenizer was rewritten as a SentencePiece model. F1 matched the fp32 model in all eight languages tested on 200 FLORES-200 paragraphs each.

Keep the .onnx and .onnx.data files together, with their names unchanged. Inputs are int64 input_ids and attention_mask, starting with <bos> (2) and ending with <eos> (1). Output logits has six labels: none, ., ,, ?, - and :. Read the label on each word's last token.

License

Apache-2.0, copyright 2026 Horizon Labs. It is built on mmBERT-small (MIT). Horizon Labs added its LICENSE and NOTICE after the source revision; both are included here from its current repository.

Files

File Bytes SHA-256
punct-mmbert-small.model 4,747,941 13cb25eeae71780a9e52d3771ebbc59a7a0eb2274ebcb20e203d68460f93a6d4
punct-mmbert-small.onnx 588,015 1d0ac3af30fa5de2c913f3ab80b26a94a790a988a270adcb239a3a5248f0efe7
punct-mmbert-small.onnx.data 145,913,856 1927826af2b8dae8b879aec82647c74fd26ca79645fb300934607e60f0f526ae
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for wasi-master/punctuation-restoration-small-onnx-int8

Quantized
(4)
this model