kotoshu/grammar-ur v3 (deberta) (deberta)

Urdu grammar-correction weights for the Kotoshu spell checker (single-file fp16 ONNX tagger, GECToR-style decode, 184MB).

Measured gate (held-out, corruption-gold, 1500 pairs)

metric value
F0.5 0.9137
precision 0.9621
recall 0.7607

Decoded locally (arm64 onnxruntime) from this exact artifact through the SpmBpe sentencepiece serving encoder (identical ids to training), 1 round, scored with the factory corruption-gold scorer against a held-out split the model never trained on. Reference: the mdeberta-ur encoder on the identical gate scores F0.5 0.640 β€” the deberta encoder is +0.27 F0.5 (+41%) at a third of the shipped size.

Recipe

deberta-v3-base, bf16, 3 rounds x [4ep vanilla + 2ep KEEP-weighted @ LR/10], keep 0.3. Serving encoder: SpmBpe (per-word metaspace + byte fallback). This artifact measured best of the validation ladder (aligned-retrain variants 0.897-0.900); numbers are decode-path faithful. Corruption pack: ur corruption classes with attested-form law; sentences from the private CLE-derived staging (provenance manifests in the private training repo β€” the CLE corpus itself is NOT redistributed).

Lineage

Supersedes v2 (mdeberta-v3, F0.5 0.640, 420MB) β€” the deberta encoder is +0.27 F0.5 (+41%) at a third of the size. v2 remains in this repo's commit history (commit 43aafa57).

Clause 16(e) gate (measured 2026-11-21)

Verbatim memorization: 0 leaks at the 25-consecutive-word threshold over 200 held-in corpus documents Β· membership inference AUC 0.529, attack success 0.0% Β· no completion surface (correction function only) Β· zero WordNet tokenizer leakage. Overall PASS; run record in the private compliance repo.

Training data attribution (Schedule D, verbatim)

This model's training made use of the following licensed linguistic resources: CLE Urdu Digest Corpus 1M (International Package), Catalogue No. CLE12T003; CLE Urdu WordNet (International Package), Catalogue No. CLE12L001. Center for Language Engineering, Al-Khawarizmi Institute of Computer Science, University of Engineering and Technology, Lahore, Pakistan.

Serving files

gec-tagger.int8.onnx (184MB: int8-free fp16 weight storage with Cast-to-fp32 nodes β€” quantize_dynamic collapses deberta activations; fp32 activations throughout, sound ops in every ORT build, verified arm64 + x86) + labels.json + pieces.json (2,857-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-decoder sweep on the same gate (1500 sentences, product surface):

MIN_CONFIDENCE F0.5 Precision Recall
0.0 0.7324 0.7249 0.7640
0.3 0.8225 0.8779 0.6567
0.5 0.8336 0.9224 0.6020
0.7 (default) 0.8377 0.9597 0.5553

Calibration is worth more than a model swap (+10.5pt F0.5). The table above the fold (0.9137) is the python gate instrument at mc=0; this table is the product surface. Ship MIN_CONFIDENCE=0.7 for this model.

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