kotoshu/grammar-el v2 (deberta)

Greek grammar-correction weights β€” the deberta-v3-base rung, GECToR-style decode as a single fp16 ONNX (Cast-to-fp32 nodes; deberta ships int8-free β€” quantize_dynamic collapses its activations).

Measured gate (held-out, corruption-gold, 1,486 pairs)

metric value
F0.5 0.6471
precision 0.9349
recall 0.29

Strict span scorer on the fixed wave-2 held-out slice (seed-independent; 1,486 sentences), decoded from this exact artifact through the SpmBpe serving path, 1 round. Reference: the wave-2 mdeberta weights measured 0.367 on the identical slice β€” the deberta encoder is +0.28 F0.5 (+76%).

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 (training ids = serving ids; byte fallback included). Corruption pack: 41,447 pairs (6 balanced Greek classes: keyboard adjacency from the gem's own layout grids, transposition, diacritic, space-join, double-letter, real-word via the licensed Greek hunspell dictionary), seed 20261123, density gate PASS (1.00 edits/sent).

Lineage

Supersedes v1 (mdeberta, F0.5 0.367) β€” remains in this repo's history.

Serving files

gec-tagger.int8.onnx (fp16 weight storage + Cast-to-fp32 nodes, sound ops on arm64 and x86) + labels.json + pieces.json (2,262-piece pruned spm vocab) + charsmap.json (deberta spm charsmap). Tokenizer: the SpmBpe encoder over pieces.json (per-word metaspace + byte fallback, CLS=1/SEP=2).

Serving calibration (MIN_CONFIDENCE, measured through the product surface)

Ruby-ship-decoder sweep on the same 1,486-sentence gate:

MIN_CONFIDENCE F0.5 Precision Recall
0.0 (default) 0.6471 0.9349 0.290
0.3 0.6114 0.9563 0.250
0.5 0.5477 0.9737 0.199
0.7 0.4940 0.9801 0.166

F0.5 declines monotonically with the threshold β€” this encoder is already precision-strong at 0.0 (like the es/ru/fr rungs; unlike ur/en). serving.json ships {"min_confidence": 0.0}.

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