kotoshu/grammar-pl v2 (deberta)
Polish grammar-correction weights โ the deberta-v3-base rung, GECToR-style decode as a single fp16 ONNX (Cast-to-fp32 nodes; deberta ships int8-free).
Measured gate (held-out, corruption-gold, 1,490 pairs)
| metric | value |
|---|---|
| F0.5 | 0.7698 |
| precision | 0.9794 |
| recall | 0.4148 |
Strict span scorer on the fixed wave-2 held-out slice, decoded from this exact artifact through the SpmBpe serving path, 1 round. Reference: the wave-2 mdeberta weights measured 0.418 on the identical slice โ the deberta encoder is +0.35 F0.5 (+84%).
Recipe
deberta-v3-base, bf16, 3 rounds x [4ep vanilla + 2ep KEEP-weighted @ LR/10], keep 0.3, max_len 128, slow-spm tokenizer with per-word alignment. Corruption pack: 48,431 pairs (6 balanced Polish classes incl. ฤ ฤ ฤ ล ล รณ ล ลบ ลผ diacritics, keyboard adjacency from the gem's layout grids, real-word swaps via the licensed hunspell dictionary), seed 20261123, density gate PASS (1.00 edits/sent).
Lineage
Supersedes v1 (mdeberta, F0.5 0.418) โ remains in this repo's history.
Serving files
gec-tagger.int8.onnx (fp16 weight storage + Cast-to-fp32 nodes, sound on
arm64 + x86) + labels.json + pieces.json (9,106-piece pruned spm vocab)
charsmap.json. Tokenizer: the SpmBpe encoder over pieces.json.
Serving calibration (MIN_CONFIDENCE, measured through the product surface)
Ruby-ship-decoder sweep on the same 1,490-sentence gate:
| MIN_CONFIDENCE | F0.5 | Precision | Recall |
|---|---|---|---|
| 0.0 (default) | 0.7698 | 0.9794 | 0.4148 |
| 0.3 | 0.7062 | 0.9784 | 0.3342 |
| 0.5 | 0.6336 | 0.9873 | 0.2604 |
| 0.7 | 0.5413 | 0.9931 | 0.1919 |
F0.5 declines monotonically with the threshold โ already precision-strong
at 0.0. serving.json ships {"min_confidence": 0.0}.