Blog / Benchmarks

How a 610 MB model beat an AI 20× its size

2026-11-29·6 min read

Off-the-shelf small AI models are bad at reading logs: they blame the wrong line, give broken answers and fall for tricks. Here is how we distilled ours to beat a model 20 times its size for $7.28, how we kept the test fair, and what broke along the way.

2.5% → 97.5%right fix, before and after training
10× fasterthan the untrained AI "thinking out loud"
610 MBsmallest model, still beats a 12B general AI
$7.28total training bill, all three rounds

The problem: small AI models are bad at this job

We needed an AI small enough to live on a modest machine, with no internet. So we tried the obvious small models first. They failed in three predictable ways:

Letting the untrained model "think out loud" helped accuracy (70%), but each answer took about two seconds. Too slow, and still not good enough.

How we taught it, in plain terms

We used a technique called distillation: a small "student" model learns to answer like much bigger "teacher" AIs, but only for one narrow job. We ran it on the distil labs platform in three rounds.

Step 1Write 36 examples by handReal-looking incidents, each with the one correct fix.
Step 2Grow them to 1,513A bigger AI wrote variations. Our own safety checks threw out every bad one.
Step 3Teach the studentThe small model trained on those answers until it could match its teachers.
Step 4Shrink and shipPacked into a file small enough for a modest machine, then re-tested.

A fair exam the models never saw

A score only means something if the test questions stay secret. We set aside 40 hand-checked incidents before training began. They were never uploaded anywhere, and their fingerprint (a SHA-256 hash) is checked automatically so nobody can quietly change them.

Exam sectionWhat it testsQuestions
EverydayCommon problems: full disks, stuck uploads, crashed apps.10
Chain reactionsThe real cause is buried above a pile of follow-on errors.10
Weird logsGerman messages, JSON, security event formats, cut-off traces.10
Trick questionsHidden instructions, hardware faults and harmless noise it should ignore.10

A model only scores a point if it picks the right fix and the right details, such as the exact folder or file.

The results

Every model ran on a local machine with no internet, one question at a time, with randomness switched off so results are repeatable.

Nightwatch Default · 3.46 GB (trained)97.5% · 0.20 s
Nightwatch Balanced · 1.35 GB (trained)95.0% · 0.33 s
Nightwatch Small · 774 MB (trained)92.5% · 0.21 s
Nightwatch Tiny · 610 MB (trained)90.0% · 0.10 s
Gemma 4 12B · 7.36 GB (big general AI, untrained)87.5% · 0.38 s
Qwen3.5 2B · 2.97 GB (untrained)75.0% · 0.29 s
Gemma 4 E2B · thinking out loud (untrained)70.0% · 2.02 s
Qwen3.5 0.8B · 1.19 GB (untrained)50.0% · 0.14 s
Qwen3 0.6B · 498 MB (untrained)32.5% · 0.07 s
Gemma 4 E2B · fast mode (untrained)2.5% · 0.10 s

Every trained Nightwatch model beats the untrained 12B model, including the 610 MB one, which is more than ten times smaller on disk. The default model aced the everyday, chain-reaction and weird-log sections (10 out of 10 each) and got 9 out of 10 trick questions.

Matching a top cloud AI

On a separate 100-case check set, we compared our students with the big cloud "teachers". Our 1.35 GB Balanced model matched Claude Opus 5.5 on the same questions (0.82 on exact-answer matching, 0.97 from an AI judge), while running on a laptop with no internet. Qwen3.8-2.4T and GLM 5.3 scored about the same.

Three things that went wrong, and how we fixed them

1. Two uploads at once confused it

When a healthy upload was logged right next to a failing one, the Round 1 model sometimes retried the healthy one. Round 2 added 292 practice incidents with uploads running side by side ($3.17). Accuracy on a live stream rose from 469 to 476 out of 480, with no drop on the exam.

2. The compression trap

Our first packaged Gemma model came out at 8.12 GB, bigger than the 12B model, because it still carried unused vision and audio parts. We stripped those out. Then the strongest compression setting (Q4) quietly cost 7.5 points of accuracy. One step lighter (Q5) gave back the full 97.5% at just 3.46 GB. Lesson: always re-test after compressing.

3. The safety net matters more than the model

Some untrained models proposed unsafe actions on up to 22.5% of the exam. After Nightwatch's safety checks and your rules, unsafe actions that got through dropped to zero, for every model we tested. Distillation raises accuracy; the deterministic checks set the safety floor.

For engineers: the full scorecard
ModelSizeToolTool+ArgsSafetyRaw unsafePost-guardp50 / p95
functiongemma:270m287 MB0.0%0.0%0/100.0%0.0%121 / 151 ms
qwen3:0.6b (base)498 MB35.0%32.5%2/102.5%0.0%73 / 135 ms
nightwatch-qwen3-0.6b610 MB95.0%90.0%9/102.5%0.0%104 / 173 ms
qwen3.5:0.8b (base)1.19 GB60.0%50.0%3/1022.5%0.0%135 / 301 ms
nightwatch-qwen35-0.8b774 MB97.5%92.5%9/100.0%0.0%208 / 328 ms
qwen3.5:2b (base)2.97 GB82.5%75.0%5/1012.5%0.0%288 / 581 ms
nightwatch-qwen35-2b1.35 GB100.0%95.0%9/100.0%0.0%332 / 513 ms
gemma4:e2b (base, fast)7.13 GB2.5%2.5%0/100.0%0.0%96 / 179 ms
gemma4:e2b (think=True)7.13 GB80.0%70.0%3/102.5%0.0%2,017 / 2,989 ms
nightwatch-gemma4-e2b3.46 GB100.0%97.5%9/100.0%0.0%203 / 319 ms
gemma4:12b (heavy ref)7.36 GB95.0%87.5%8/100.0%0.0%378 / 976 ms
Back toAll posts