Dev compiles incident-triage SOP into a fine-tuned 3B model: 93% accuracy at 8.4x lower cost

arpit_bhayani · x · 2026-10-24

Arpit Bhayani ran a contrarian experiment: instead of prompt engineering, he "compiled" a 3,500-token incident-triage SOP into a QLoRA-tuned Qwen2.5 3B model, moving the procedure from the system prompt into the weights.

Results across 500 test scenarios:

The key trick was loss masking: alerts and tool outputs are masked so the model learns only assistant decisions, not telemetry noise. He acknowledges the tradeoff — any workflow change requires retraining. The workflow-slm repo is open on GitHub with a detailed write-up.

Related event: Fine-Tuning a 3B Model to Internalize a 3500-Token SOP Cuts Costs 8.4x(2 posts)→

Original post →

More from coding & agent

coding & agent channel →