Text Classification
Transformers
Safetensors
Arabic
llama
arabic
rule-checking
compliance
moderation
tiny-model
on-device
text-embeddings-inference
Instructions to use oddadmix/Nawah-RuleCheck-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use oddadmix/Nawah-RuleCheck-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="oddadmix/Nawah-RuleCheck-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("oddadmix/Nawah-RuleCheck-v2") model = AutoModelForSequenceClassification.from_pretrained("oddadmix/Nawah-RuleCheck-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
ship LADDER.json for reproducibility
Verified signature3f050ad -
Card regenerated from eval_all.py - one harness, all four rungs
Verified signature7b130c9 -
Replace with LR-swept checkpoint (1e-4/10ep): unseen 0.9799 -> 0.9980
Verified signaturee937509 -
ship LADDER.json for reproducibility
Verified signaturefbb825c -
ship train_rules_cls.py for reproducibility
Verified signaturedc69a70 -
ship ood_cases.json for reproducibility
Verified signature898e78f -
ship cf_cases.json for reproducibility
Verified signaturef3a9d4b -
ship eval_all.py for reproducibility
Verified signaturef2d43bf -
Card regenerated from eval_all.py
Verified signature0d8868f -
counterfactual_eval: select model via CF_MODEL
Verified signaturea91f64c -
Model card: minimal-pair result re-measured on v2 (0.998, was v1's 1.000), size/latency table, out-of-pool wording limitation
Verified signature3d00f66
-
Nawah-RuleCheck-v2: 51.8M Arabic rule checker, 0.980 on unseen rule wording
Verified signatureBinary classifier over (text, rule-in-natural-Arabic). seen wording 0.9929 acc / 0.9923 macro-F1 unseen wording 0.9799 acc / 0.9783 macro-F1 (majority baseline 0.6401) minimal pairs 1080 @ 100%, flip-rate 1.00 Includes the full pipeline: paraphrase generation, data prep, training, counterfactual eval, and the rule checkers that define the labels.489a82b -
initial commit
Verified signature068c6aa