2 Downloads Updated 4 days ago
ollama run alicek0914/gemma4-scam
ollama launch claude --model alicek0914/gemma4-scam
ollama launch codex-app --model alicek0914/gemma4-scam
ollama launch openclaw --model alicek0914/gemma4-scam
ollama launch hermes --model alicek0914/gemma4-scam
ollama launch codex --model alicek0914/gemma4-scam
ollama launch opencode --model alicek0914/gemma4-scam
Fine-tuned Gemma 4 E2B for scam-pattern detection — F1 86.1% / FPR 1.1% on a 300-sample real-world test set.
A QLoRA fine-tune of unsloth/gemma-4-E2B-it-unsloth-bnb-4bit, merged into the base and quantized to Q4_K_M GGUF. Fits on a consumer 8 GB GPU. The model classifies SMS, email, voice-call transcripts, and OCR’d MMS images into safe / low / medium / high / critical, explains its reasoning in plain language, and selects which of 12 protective tools to call (notify_trusted_contact, block_payment_intent, check_url_safety, …).
Built for the Gemma 4 Good Hackathon (Safety & Trust + Ollama Special Tech tracks).
ollama pull alicek0914/gemma4-scam
ollama run alicek0914/gemma4-scam
Evaluated on 300 hand-labeled real samples, no RAG, v3 prompt: - 70 from the FTC Consumer Sentinel public scam case database + a normal/control set + curated edge cases - 230 from the UCI SMS Spam Collection (training-disjoint — the 571 UCI seeds used in training are excluded)
| Setup | Size | F1 | FPR | Precision | Recall |
|---|---|---|---|---|---|
| Gemma 4 E4B base (Q4_K_M) | ~8B | 63.4% | 78.9% | 46.9% | 97.6% |
| Gemma 4 E2B base (Q4_K_M) | ~5B | 58.0% | 97.7% | 41.4% | 96.8% |
| gemma4-scam (this model) | ~5B | 86.1% | 1.1% | 98.0% | 76.8% |
Trained for scam-risk reasoning, not generic chat. Best at:
pytesseract extracts the text)risk_level, patterns[], plain-language user_message, and tool_calls[]Not a forensic deepfake detector. Not a general-purpose chatbot.
unsloth/gemma-4-E2B-it-unsloth-bnb-4bit (~5B params, 4-bit)q_proj/k_proj/v_proj/o_projFastLanguageModel + TRL SFTTrainer on Colab L4llama-quantizeThe base Gemma 4 weights are governed by the Gemma Terms of Use. The fine-tuned adapter and merged weights are released under the same terms for research and non-commercial use.