--- license: apache-2.0 base_model: Qwen/Qwen3-0.6B pipeline_tag: text-generation tags: [scam-detection, lora, qwen3, hinglish, fraud, india] language: [en, hi] --- # TrapCheck 0.6B — India/UPI scam radar (LoRA fine-tune of Qwen3-0.6B) Paste an SMS/WhatsApp message → get a JSON verdict: `{"risk": 0-100, "scam_type": , "red_flags": [...], "action": "..."}` Trained on a hand-curated 10-family scam taxonomy (fake KYC expiry, digital arrest, electricity cut-off, lottery/KBC, loan-app blackmail, job scams, courier/customs, OTP harvesting, trading tips, tax/subsidy refunds) in English and Hinglish. 1,729 examples (seeds + base-model paraphrase augmentation). ## Results ```json {"auc": 1.0, "benign_fpr": 0.0, "type_macro_f1": 1.0} ``` **Read these with care:** they are computed on the 69 seed messages, which are also the base of the training corpus — they validate the pipeline end-to-end but are memorization-flattered, not generalization numbers. True held-out evaluation (unseen variants, live traffic) is the next iteration; the eval harness (`src/evaluate.py`) scores any checkpoint on the untouched test split. Design note: benign-FPR is the headline metric — a detector that flags genuine bank OTP messages trains users to ignore warnings, so false alarms on benign messages are weighted over raw recall. ## Usage ```python from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("kitty1901/trapcheck-0.6b") model = AutoModelForCausalLM.from_pretrained("kitty1901/trapcheck-0.6b") # chat template: system = "Reply with ONLY a JSON verdict...", user = the message ``` Live demo: https://trapcheck.krithidps2003.workers.dev Training: free Kaggle T4 session · Data: hand-curated + synthetic augmentation