{
  "id": 8041280,
  "title": "My local 7B thinks \"kill a Python process\" is a violent crime — and my regex beat it",
  "url": "https://urgent.news/2026/09/17/my-local-7b-thinks-kill-a-python-process-is-a-violent-crime-and-my",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-17T14:31:52.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/amirulcyber/my-local-7b-thinks-kill-a-python-process-is-a-violent-crime-and-my-regex-beat-it-522e"
  },
  "original_language": "en",
  "account": "A local researcher tested a 7-billion-parameter AI model named Qwen 2.5 Coder for AI safety. Initially, the cloud safety API flagged their lab's egress IP address after a few hundred sensitive probes, resulting in all requests being blocked with a 403 error. Unable to resolve the issue, they moved their testing to a local 7B model running on CPU. This local model, quantized to 3-bit and served via llama.cpp on port 8081, performed differently from the cloud API. When tested with a violence classifier, the local model outperformed the cloud API, flagging benign texts as violent crimes while correctly identifying harmless contexts. The researcher concluded that a simple hand-written regex with exception lists outperformed the advanced neural network model at this specific task of determining if a sentence is about violence.",
  "summary": "I burned a cloud IP address doing AI safety testing. Then I moved the whole operation onto a 7-billion-parameter model running on CPU in my own lab. The first thing it did was flag a Python tutorial as a violent crime. This is the story of both failures, and what they taught me about how we measure AI safety. Failure 1: the IP address Cloud safety APIs rate-limit by account, but they block by…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}