kotoshu/grammar-pt v2 (deberta)

Portuguese 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,467 pairs)

metric value
F0.5 0.7902
precision 0.9819
recall 0.4438

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.571 on the identical slice — the deberta encoder is +0.22 F0.5 (+38%).

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: 41,527 pairs (6 balanced Portuguese 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.571) — 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 (11,309-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,467-sentence gate:

MIN_CONFIDENCE F0.5 Precision Recall
0.0 (default) 0.7902 0.9819 0.4438
0.3 0.7074 0.9878 0.3313
0.5 0.6218 0.9973 0.2481
0.7 0.5359 0.9964 0.1881

F0.5 declines monotonically with the threshold. 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