kotoshu/grammar-it v2 (deberta)
Italian 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,468 pairs)
| metric | value |
|---|---|
| F0.5 | 0.8035 |
| precision | 0.9633 |
| recall | 0.483 |
Strict span scorer on the fixed wave-1 held-out slice, decoded from this exact artifact through the SpmBpe serving path, 1 round. Reference: the wave-1 mdeberta weights measured 0.374 on the identical slice — the deberta encoder is +0.43 F0.5 (+115%), the largest delta of the rung.
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: 1,282,341 pairs (6 balanced Italian classes incl. à è é ì ò ù diacritics, keyboard adjacency, real-word swaps via the licensed hunspell dictionary), seed 20261123, density gate PASS (1.00 edits/sent).
Lineage
Supersedes v1 (mdeberta, F0.5 0.374) — 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 (68,250-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,468-sentence gate:
| MIN_CONFIDENCE | F0.5 | Precision | Recall |
|---|---|---|---|
| 0.0 (default) | 0.8035 | 0.9633 | 0.483 |
| 0.3 | 0.7868 | 0.9691 | 0.4489 |
| 0.5 | 0.778 | 0.9738 | 0.4312 |
| 0.7 | 0.7628 | 0.9755 | 0.4074 |
F0.5 declines monotonically with the threshold — already precision-strong
at 0.0. serving.json ships {"min_confidence": 0.0}.