Model family ← Models
Devstral Small 2 24B
Mistral's coding model. It turned out to be the joint best checker of other models' answers we measured in August, but it never ran a coding test, and in banking tasks it let too many attacks through to read untrusted content.
- Parameters
- 24B
- Files tested
- 2
- Scored runs
- 3
Made by Mistral AI · Apache 2.0
How this page was made. The tests run automatically on our Mac Studio, and every score here comes straight from those runs. This overview was written by Claude, an AI model, from the lab's own records: the run log, notes kept at the time, and the working sessions where each decision was made. Quotes are Alan's words, with spelling fixed. How these pages are made.
Should you use it?
As a second model that checks another model's extracted values, it shared the cleanest result we measured in August, and still tied for the top score in September. Use the 4-bit UD-Q4_K_XL; that's the file the scores come from.
Don't use it to read content you don't trust; Gemma 4 12B resisted the banking attacks better and stayed our pick. For coding we can't tell you, and we have no speed figures for it.
What it taught us
- Before deleting a duplicate, check which copy carries the scores.
- Check the check. The probe we used to diagnose a llama.cpp bug turned out to garble replies itself, so we still don't know whether the bug was real.
- Test a model on what it's for. A coding model scored only on extraction tells you nothing about its coding.
- An overall score can hide a weak spot. It cleared the bar we set in advance overall, but not in banking.
Why we tested it
Alan, on 24 August, while looking around at coding models: "let's try out Devstral Small 2, what sizes does it come in?". Mistral reported 68.0% for it on SWE-bench Verified, a public coding test. No other reason is on record; the question of what job it could do came a day later.
What it took
We downloaded two copies: a 4-bit one for our tool tests, and a larger Q6_K as a quality reference. On the llama.cpp build we used then, it failed our tool-call check twice. We put that down to a llama.cpp bug, updated llama.cpp and re-ran every model on the new build, Devstral first. It passed there once we found that the check itself could garble replies and fixed it, so the diagnosis of the older build was never confirmed.
What happened
- Joint best checker in August. It scored 100% on checking another model's extracted answers: it caught all 20 invented values and all 20 misread ones, and wrongly rejected none of the 20 correct ones. Of the other models we ran in August, only Granite Guardian 4.1 8B, a specialist judging model, matched it.
- Careful, not perfect, with documents. It scored 79.2% on answering from a document and pointing to the right line, inventing only 2 answers, and 62.5% on saying "I don't know" when the answer wasn't there. In August only Qwen3-Next 80B and Gemma 4 12B did better on that.
- Weak on attacks in banking. Alan asked: "So. Where does devstral fit?". The open question was whether it could safely read untrusted content, so we set the bar before running AgentDojo, a public attack test: above 78% of attacks stopped would make it the better choice. It stopped 81.4% overall, but only 58.3% in the banking tasks, where Gemma 4 12B stopped 77.7%. Gemma stayed our pick.
- It never ran a coding test. Every score here is about extracting, checking, tool use or attacks.
- We deleted the file with the scores. In a September tidy-up we kept the more precise of the two copies, the Q6_K, which had never run, and deleted the 4-bit file every score came from. For a while our own inventory listed the model as untested. The Q6_K went in October; nothing is on disk now.
- UD-Q4_K_XL
The file every score came from. A 4-bit copy, chosen so our tool tests would measure the model rather than its speed. Deleted in a tidy-up.
Unsloth · Deleted 7 Sep 2026 · 14.5 GB · 3 scored runs · smallest Mac 32 GB
- Q6_K
A larger, more precise copy, downloaded as a quality reference but never run. Kept over the scored file, then deleted too.
Unsloth · Deleted 11 Oct 2026 · 19.3 GB · never scored
Residency was
resident, nowdeleted. Both weights files were deleted (the scored UD-Q4_K_XL on 2026-09-07, the Q6_K on 2026-10-11), so nothing is on disk.Hugging Face link corrected. The scored weights were downloaded from this repository; the previous link could not be verified.
Why it was tested corrected. The coding-to-extraction framing is not on record; the request was simply to try the model.
What it said before
Why it was tested: A coding model, tested to see whether coding tuning transfers to structured extraction.
Status was
candidate, nowdeleted. Both weights files were deleted (the scored UD-Q4_K_XL on 2026-09-07, the Q6_K on 2026-10-11), so nothing is on disk.
Decisions, in order
- 2026-08-24 16:08Z — bring it in. Alan: "let's try out Devstral Small 2, what sizes does it come in?". Assistant picked UD-Q4_K_XL for Toolery and Q6_K as an extraction reference: "I'll pull both — 34GB total". Alternative rejected: Q8_0, because a 24B dense at 8-bit would make Toolery "measures your decode speed, not the model".
- 2026-08-24 16:15Z — download method. The
hf_hub_downloadrun was crawling (~22 Mbps); killed and replaced by a 6-range parallel curl with per-file sha256 check against the LFS oid. - 2026-08-24 — run gated behind a tool-call smoke test (pre-registered). Written into
devstral_run.shbecause the same day an fp16 control "produced 143 scored scenarios and a headline number" that was entirely a broken chat template. - 2026-08-24 ~19:30Z and 20:31 BST — gate aborts on b10369. Both attempts aborted with a JSON decode error on the tool-call
argumentsfield. Diagnosed as "a server serialisation bug, not a model or template problem. And it's model-specific". See the incident in Devstral Small 2 24B UD-Q4_K_XL (unsloth): that diagnosis was never re-checked once the probe itself was found to corrupt the response. - 2026-08-24 22:11Z — rebuild rather than skip (proposal). Three options offered: rebuild and re-run everything, rebuild for Devstral/Ornith only, or leave them unmeasurable. Assistant: "I'd take the first —... a fleet measured on one build is worth more than one measured on two". Alan's explicit choice is not on record; the rebuild ran at 07:30Z next morning, and Alan's next instruction was "keep benchmarking, we need to be keeping a run log too".
- 2026-08-25 08:09Z — measured first on b10618. "The two never measured come FIRST -- they are the reason for the rebuild". Labels carry
-b10618"so they never mix with build 10369 numbers". - 2026-08-25 20:43Z — AgentDojo, with thresholds pre-registered. Above 78% → "the better choice for the podcast pipeline"; 40–78% → "not safe enough for untrusted content"; below 40% → "no role in your stack at all". Prediction: "around the middle". Outcome: 81.4% overall, but banking 58.3% and lower clean utility; recommendation stayed with gemma4-12b.
- 2026-08-26 — named the screener in the programme report. "Screening, if it proves necessary" — devstral-small-2-24b, "0/20 false rejects against everyone else's 3–7" (a lab note §7).
- 2026-09-07 17:36Z — scored file deleted, unscored one kept. In the duplicate-quant pass, "rm devstral UD-Q4_K_XL (kept Q6_K)" on Alan's "Go for it". The Q6_K was described as "the better" of the pair, which was a bit-width judgement: the Q6_K had no runs. This is why every later inventory listed devstral as Q6_K and, by 2026-09-12, "no result file, no seat UNTESTED" until a token-set fix in the inventory tool matched it back to its label.
- 2026-09-07 21:57Z — rediscovered. The assistant had called another model the "first non-Qwen coding candidate"; Alan's "ornith was another coder" prompted the correction: "both were already tested, and devstral-small-2-24b is the strongest of the lot".
- 2026-10-11 — Q6_K deleted in the Tier B sweep ("benched-once, abandoned"), under Alan's "nuke tiers a & b" (a lab note;
RESTORE-deleted-20261011-tiersAB.sh). The sweep was executed by another agent; the working session on the Mac Studio only validated it.
What we learned, in the lab's words
- The only clean screener measured in August. screening/1 100.0% (60/60): caught 20/20 invented, 20/20 misread, 0/20 false rejects (a lab note §3.3). Still tied top on screening on 2026-09-12, alongside the purpose-built guardian.
- Grounding: low invention, middling misreads. 79.2%: invented 2, misread 14, abstained 60. nullschema 62.5% (45/72; invented 4, misread 23), third in the August fleet behind qwen3-next-80b and gemma4-12b.
- Toolery 73.8% at 99% coverage, 2 timeouts (b10618, label
devstral-small-2-24b-b10618). Not in the run log. - AgentDojo,
important_instructions: 81.4% thwarted overall (slack 86.7, banking 58.3; n=129), clean utility slack 84.6 / banking 60.0. The assistant's reading: "Devstral edges 12b on slack and loses badly on banking, with lower clean utility throughout. 12b is still the pick, and Devstral's role remains unproven". - What it was never measured on: code. Every score above is extraction, screening, tool use or injection. The 2026-09-07 recount flagged this: "best coder on extraction suites, no coding suite exists".
- Decode speed: not on record for this model (the 2026-09-08 tok/s table shows "-").
Why it was tested, in the lab's words
- Alan, 2026-08-24 16:08Z: "let's try out Devstral Small 2, what sizes does it come in?". No further reason is on record from Alan; it arrived in the same few minutes as "Qwen3-Coder 30B Instruct is another one apparently worth looking at", while he was "going to do some digging on what's out there".
- The plan written at the time (task #14): "Toolery, grounding, adversarial", with UD-Q4_K_XL "for fleet-comparable Toolery" and Q6_K as an "extraction quality reference". The assistant's reasoning for staying at 4-bit: qwen3.8-27b had just lost 96 of 143 Toolery scenarios to timeouts at 8.75 t/s, and a 24B dense at Q8_0 "will land in the same place".
- Its role question came a day later. Alan, 2026-08-25 20:42Z: "So. Where does devstral fit?". The answer: "Right now it doesn't have a confirmed role"; its one clear win was screening, and the untested property that mattered was injection resistance for the news/podcast pipeline.
Open questions
- Was build 10369's tool-call serialisation actually broken for this model? The two b10369 gate failures were read through the same zsh
printpipe later shown to mangle\". No file-based probe of b10369 is on record. - How does it do on code? No coding suite has run against any Devstral build. shapegen/sitebuild (2026-09-07) only ran qwen3-coder-30b.
- Decode speed and memory at context: not measured. The 2.68 GB KV at 65,536 / q4_0 in
seat_size.pyis a header-formula estimate for the Q6_K, not a measurement. - AgentDojo travel and workspace never ran for it.
- Would the Q6_K have changed the screening or nullschema verdicts? It was pulled for exactly that comparison and never run.
The model in detail
| field | value |
|---|---|
| vendor | Mistral AI |
| upstream repo | mistralai/Devstral-Small-2-24B-Instruct-2512 (the id the HF search returned on 2026-08-24; mistralai/Devstral-Small-2-2512 returned "not found") |
| GGUF repo used | unsloth/Devstral-Small-2-24B-Instruct-2512-GGUF (29 GGUF files on 2026-08-24, BF16 47.15 GB down to UD-Q3_K_XL 11.85 GB) |
| revision | not on record (both downloads resolved main) |
| licence | Apache 2.0 (as stated in the task created at the time) |
| architecture | dense, 24B; GGUF general.architecture = mistral3 |
| context | card wording "256K"; the GGUF declares context_length=393216, rope.freq_base=1e8, rope.scaling.original_context_length=8192 |
| vendor claim | 68.0% SWE-bench Verified |
| released | not on record (the "2512" suffix is not evidence of a date) |
| vision | the unsloth repo listed vision projectors; none was downloaded (devstral-small-2-24b/mmproj*.gguf no match on 2026-09-09) |
| runtime used here | upstream llama.cpp only: b10369 (6e62ba538) for the failed gates, b10618 (eb25b7263) for every scored run |