In short
- On 250 labelled vulnerability descriptions, classified into 33 weakness classes, qwen3.5:4b scored 62.8%, qwen3:1.7b 51.6%, granite3.3:2b 50.4%, llama3.2:3b 46.0% and llama3.2:1b 18.4%. granite3.3:2b, twice as fast as the incumbent qwen3.5:4b, lost to it by 12.4 points with p below 0.001.
- Totals with overlapping confidence intervals cannot rank two models; paired McNemar tests on identical cases can. Between qwen3:1.7b and granite3.3:2b the totals differ by one point and the paired test cannot separate them.
- The rule that the gate enforces fits in one sentence: the model may change, the accuracy may not. It rejected a promotion argued on speed, and it is why the Llama models stay installed as standby only.
About this article
- Format
- Original research: numbers we measured, with the method and the intervals.
- Written for
- Engineering managers · Developers who own their tests · Security and compliance reviewers
- Where it applies
- Every market. The rules that differ by country are on the country pages.
Everything intelligent in the platform, from choosing which tests a change can reach to breaking ties when a broken selector has several candidates, runs by default on small locally hosted open-weight models inside our own servers. Nothing goes to a third-party API unless a team buys and switches on the Work with AI add-on, and source-code analysis is never sent. That is a privacy promise, and it comes with an engineering obligation: if we change a model, accuracy must not move without us knowing. So we built a gate that measures it, and then used the gate to settle an argument we had been having: is the fastest small model good enough?
The task and the cases
The task is closed-set classification: given the text of a vulnerability description, name the weakness class it belongs to, from a fixed list of 33. It is the kind of work the security engine does when it turns a scanner observation into a labelled finding. The 250 cases come from CISA’s Vulnrichment, the public repository in which the agency enriches CVE records with weakness and severity data under a CC0 licence, so anyone can rebuild the set. We strip the weakness identifier out of each description before the model sees it, because several descriptions quote it, and a benchmark a model can read the answer from measures nothing.
The case set is pinned by a content hash. If anyone regenerates it and gets a different hash, the comparison is invalid by definition. That rule cost us nothing and has already prevented one accidental re-baseline.
How we ran it
All five models ran through the same runner on the same server: eight vCPUs, no GPU, four threads per model, seed 42, temperature zero, served by Ollama. Every case gets one retry. An infrastructure failure, for example the container hitting its memory limit, is recorded as null rather than as a wrong answer. We added that rule after the first attempt died at roughly case 180 with an out-of-memory kill; without it, a crash would have looked like a model that suddenly got everything wrong.
Because every model answered the same 250 cases, we can compare them per case rather than only by totals.
Results
| Model | Closed-set accuracy | Wilson 95% interval | Decode speed |
|---|---|---|---|
| qwen3.5:4b | 62.8% | 56.7 to 68.6 | 15.0 tokens per second |
| qwen3:1.7b | 51.6% | 45.4 to 57.7 | 39.2 tokens per second |
| granite3.3:2b | 50.4% | 44.2 to 56.5 | 29.7 tokens per second |
| llama3.2:3b | 46.0% | not published | not published |
| llama3.2:1b | 18.4% | not published | not published |
Look at the middle two. Their intervals overlap almost entirely, and if we only had these totals we could not say whether qwen3:1.7b is better than granite3.3:2b or just luckier on this sample. Totals with intervals tell you how uncertain each number is; they do not tell you whether two models differ.
In the product
What the paired test says
McNemar’s test asks a sharper question: on the cases where the two models disagree, which one is right more often? Between qwen3.5:4b and granite3.3:2b there were 43 cases only the 4b model got right and 12 only granite got right, chi-squared 17.47 (16.36 with continuity correction), p below 0.001. That is not luck.
Against llama3.2:3b, qwen3.5:4b wins with chi-squared 28.45 (p below 0.001) and qwen3:1.7b wins with 4.45 (p below 0.05). Granite against llama3.2:3b is 2.69, which is a tie. So the 3b Llama model beats nothing on this workload, and it is not the fastest either.
We also reran qwen3:1.7b from scratch. Its running accuracy matched the first run checkpoint for checkpoint, with zero flipped cases. At temperature zero and a fixed seed that is what should happen; it is still worth checking, because "should" is not a measurement.
What the numbers do not say
- Closed-set classification of a short description is one task. It says nothing about structured output, long context or code generation. A model that loses here could win on those, and we do not promote or demote a model on a task the gate does not measure.
- Two hundred and fifty cases put roughly plus or minus six percentage points on each accuracy. That is enough to separate 62.8 from 50.4 and not enough to separate 51.6 from 50.4, and the paired test cannot separate those two either.
- Decode speed on a shared CPU server is not a constant. In a separate warm measurement under load, qwen3.5:4b decoded at 7.8 tokens per second, about a quarter of its peers. The table number and the loaded number are both real; they were taken under different conditions, and we say which is which.
The decisions this forced
granite3.3:2b was a candidate for promotion on the argument that it is twice as fast as the incumbent. The gate said: true on speed, false on accuracy, by 12.4 points, with p below 0.001. That is precisely the trade our rule forbids making quietly, so the promotion was rejected and the reasoning is written next to the numbers.
The Llama models stay installed, under Meta’s community licence, as a last-resort standby only; the Apache-2.0 models from the Qwen and Granite families do the work. The licence question had been settled separately; the measurement settled the engineering one. There is no corner of this workload where the Llama models win.
At the time of the measurement the slowest model sat on an interactive tier. That was a capacity risk we recorded and did not fix on this evidence, because the interactive tier does structured output and this gate does not measure structured output; changing it on the wrong evidence would be a different mistake. The agent router has since moved that model to a background lane, on the later measurement under load, not on this one.
If you run local models in a product
- Pin the case set by hash, and refuse to compare runs whose hashes differ.
- Strip the answer out of the prompt. Then check that you actually did.
- Record infrastructure failures as null. A crash is not a wrong answer.
- Compare pairwise on identical cases. Totals with overlapping intervals will mislead you in exactly the cases that matter.
- Write the decision rule before you look at the results. Ours is one sentence: the model may change, the accuracy may not.
Questions people ask
Which small local model is the most accurate?
On this task, closed-set classification of vulnerability descriptions into 33 weakness classes, qwen3.5:4b, at 62.8% with a Wilson 95% interval of 56.7 to 68.6, beat granite3.3:2b and both Llama models with p below 0.001 in paired tests; we have not published a paired test against qwen3:1.7b. On a different task the order could change, and we say so rather than generalise.
Why use paired tests instead of comparing accuracy totals?
Because two models that answered the same cases can be compared case by case, which is a far sharper test than two totals with overlapping intervals. McNemar’s test counts the cases where only one model was right; between qwen3:1.7b and granite3.3:2b the totals differ by one point and the paired test cannot separate them, while qwen3.5:4b beats granite decisively.
Are local models deterministic?
At temperature zero with a fixed seed, on the same model version and the same hardware, they should be, and here they were: a full 250-case rerun of qwen3:1.7b matched the first run checkpoint for checkpoint with zero flipped cases. It is a property to measure, not to assume.
Where do the 250 cases come from?
From CISA’s Vulnrichment, the public, CC0-licensed repository in which the agency enriches CVE records with weakness and severity data. We take the description text, strip the weakness identifier so the model cannot read the answer, and pin the resulting set by content hash so every run uses the same 250.
How we measured this
- 250 labelled cases from the Vulnrichment corpus; a closed set of 33 weakness classes; the weakness identifier removed from every description so the model cannot read the answer; the case set pinned by hash so every run uses the same 250.
- Ollama on one 8-vCPU, CPU-only host; four threads per model; seed 42; temperature 0; one retry per case; an infrastructure failure is recorded as null, never as a wrong answer.
- Accuracy with Wilson 95% intervals; paired McNemar tests on identical cases, reported without continuity correction except where both values are given; one full rerun to check reproducibility. Measured 16 September 2026; the figures are unchanged in this revision. Model licences are read from our model registry (Apache-2.0 for the Qwen and Granite models, Meta’s community licence for Llama), verified 7 September 2026.
- Corrected 2026-11-10: the opening said everything intelligent runs on local models and no customer code goes to a third-party API, with no exception; since 1 November 2026 the Work with AI add-on is one, for a team that buys it and switches it on.
- Corrected 2026-10-28: the title and a takeaway said the fastest model lost; the fastest model in the table is qwen3:1.7b, and the paired evidence is about granite, twice as fast as the incumbent. A FAQ said qwen3.5:4b beat every other model in paired tests; no paired test against qwen3:1.7b is published.