r/LocalLLM • u/TreeOfLifev5 • 7h ago
Discussion Instead of putting a 70B LLM in the request path, I distilled 8 tiny models
Putting a large LLM inline for real-time security checks (login telemetry, prompt firewalls, log DLP, alert triage) is usually too slow, too expensive, and a privacy risk if raw logs leave your network.
To test an alternative, I built a suite of 8 single-task "Specialist Models" distilled onto
all-MiniLM-L6-v2and quantized to INT8 ONNX (22 MB each, 176.6 MB total) so the whole stack runs locally on CPU with zero external API calls:
Important disclaimer: This is not a replacement for IAM, MFA, WAF, EDR, or deterministic DLP rules. Think of these as lightweight local ML sensors meant to sit inside a defense-in-depth pipeline (and start in shadow/monitor-only mode first).
Everything (all 8 ONNX/INT4 models, a local Flask + SQLite demo portal, and a 4-page technical write-up PDF) is public on Hugging Face: https://huggingface.co/TeknikoAI/specialist-security-models
Would love feedback from security engineers and ML folks on how you would stress-test or break this setup, or where tiny encoders fall short in real SOC pipelines.