Yes, a 24 GB M5 ran a 4-bit build of Devstral Small 2 at a reported 4,096-token context. It generated at 8.7 tokens per second after roughly 16 seconds to the first token, with 13.9 GB reported peak memory. That is evidence for a short-context run, not proof that a whole repository will fit.
Does the model actually repair software?
Mistral’s model card reports 68.0% on SWE-bench Verified and 55.7% on SWE-bench Multilingual for the 24B Devstral Small 2 checkpoint. The same card reports 22.5% on Terminal Bench 2. SWE-bench measures repository issue resolution in an evaluation environment. That is direct evidence about repair work on those benchmarks. The results belong to the publisher’s setup and do not establish the pass rate of the separate 4-bit M5 build described in this article.
Separate two decisions before you download the model. If you are checking whether the weights and a short prompt fit on a 24 GB Mac, use the published M5 run as one starting point. If you are deciding whether the model can repair your repository, first define how you will decide that a proposed change works. The reported 13.9 GB peak is a benchmark measurement on one machine. macOS, a browser, an editor, language servers and a test runner all compete for memory when you work on a real project. Watch system memory pressure while running the actual request.
Choose the exact coding model
Mistral released Devstral Small 2 24B Instruct 2512 on 2025-12-09. The 24B coding checkpoint is Apache 2.0. It is not the larger 123B Devstral 2 or the general-purpose Mistral Small weights. Verify the upstream checkpoint before choosing an MLX or GGUF conversion.
Measurements with separate workloads
| Test | Settings | Reported performance |
|---|---|---|
| M5 10-core GPU, 24 GB | 4-bit, macOS 26.3.1, oMLX 0.3.10, reported context of 4,096 tokens | 255.6 prompt and 8.7 generation tok/s; 16.023 s to first token; 13.9 GB peak |
| Radeon RX 7900 XTX | Q4_K_M, llama.cpp/ROCm 7.2.4, flash attention on, 49,152 configured context; five concurrent benchmark requests | 2,199.98 prefill and 98.13 generation tok/s reported for this run |
| RTX PRO 6000 Blackwell Workstation Edition | unsloth Q4_K_M GGUF, llama.cpp, 16,384 configured context, four server slots; ten concurrent client requests | 10,716.58 prefill and 645.14 generation tok/s reported for this run |
The desktop rows are server stress tests, not the speed a single chat user receives. The tuned weights, runtime settings, and workloads are not matched across these systems. The M5 entry does not disclose the exact conversion file or the number of generated tokens. Its peak memory is not the machine’s total memory use.
Try a small coding task first
Pick a short function whose failure case you can explain from the source. Ask Devstral to name the input that triggers it and the expected result, then verify both before adding a second file. If the extra file increases the wait without improving that check, keep the smaller input for the task.
On a Mac, follow the oMLX setup guide and choose a verified conversion of this checkpoint. Start by asking it to explain one short function from a non-sensitive local test repository, without allowing tool execution or file edits. Check the explanation against the source and record the input size, first-token delay, completion time, and memory pressure. Add one more relevant file and repeat. If the wait or memory pressure is too high, send fewer files or use a smaller model instead of increasing the context limit repeatedly.
Choose a small issue with an executable check
Start with a source-only request in a copy of a repository. Find an issue that has a failure you can reproduce in one test and a nearby behavior that should stay unchanged. A good example is an importer that treats a zero quantity as missing because it checks truthiness. The failing fixture contains quantity: 0. A second fixture omits quantity entirely. The corrected function should accept zero in the first case and retain its existing missing-field behavior in the second. Add one ordinary positive quantity as a regression check.
Write down the accepted behavior before asking the model. Specify the single file it may edit, the permitted input types, and whether the response should be a diff or a complete replacement function. Ask it to identify the failing condition and propose the smallest edit. A response that silently changes validation on negative numbers or redesigns the importer belongs in a different task. You should be able to inspect the diff line by line before trying it.
When the failing behavior depends on an external schema, add the relevant type or sample record. Avoid starting with a full repository dump. A mismatch between the prompt and ignored files creates a false sense of context. Keep the failing test next to the function so the contract is visible. If you need a second file, send just the named caller and repeat the same request. Treat a prediction about an unshown module as a guess until you can inspect it.
Interpret a diff before running a larger trial
Use a clean worktree or copied directory. Run the existing failing test yourself and save the result. Run the unchanged neighboring cases in the same environment. Read the model’s patch and decide whether to apply it. Compare the generated diff with the task boundaries before running it. Then execute the target test and the nearby regression tests using the project’s regular runner.
A correct verbal explanation with a failing diff counts as a failed repair. A patch that passes the reported failure but changes the missing-field semantics also fails this exercise. A suggestion that returns a larger rewrite may be a design idea. Keep it outside the repair results unless it meets the same constraints and passes the same checks. Tracking these distinctions gives you a clearer picture than a single mark for an answer that looked plausible.
Record the time to a complete patch separately from the time to the first text. With the M5 test’s roughly 16-second first-token wait, interactive use can feel slow before a patch appears. Your actual elapsed time also depends on input length, output length and whether the model was already loaded. Keep a short warm request as a stable baseline. Measure the cold start separately if you expect to open the model only for occasional repairs.
Check what fits alongside your editor
Start with one request, a modest context setting and the apps you normally keep open. Record system memory pressure before loading the model, after loading, and during the request. Save the input size and output cap. If the Mac starts swapping heavily or the editor becomes sluggish, try a smaller input before changing the artifact. A 24B conversion that loads with other apps closed can still be a poor fit for your usual development session.
Watch the type of wait that becomes worse. More input can raise the time to the first visible token. A long diff or an unsolicited explanation can raise the time to a complete answer. Both can grow when you make the context longer, but the fixes differ. If the model repeatedly guesses because it lacks a contract, add the smallest useful source or test. If a correct patch is buried in a long response, request the diff alone and leave enough room for it to finish.
For a second comparison, change only one item. Keep the exact prompt, checks and output limit, and try a smaller conversion or a smaller coding model. Run the same tests and record memory pressure. A small model may already solve a routine boundary defect with much less waiting. The 24B model is useful where it preserves correctness as you add the minimum context the small model needs. One pass shows that the chosen example worked. A batch of recurring defects gives you a better basis for choosing a default.
Add repository tools after a source-only pass
A repository agent can discover files, run tests and apply edits. The publisher’s scores reflect benchmark environments and should not be read as a measurement of an arbitrary local agent configuration. If you add tool use, give the agent a disposable worktree with no secrets and restrict the files or commands it can touch. Capture the commands, diff and final test output. Compare the result to the source-only baseline using the same issue. Keep successful tool invocation, patch correctness and regression behavior as distinct checks.
If the agent spends its time scanning unrelated files, try a focused entry point such as the failing test location. If it repeatedly changes a dependency or an unrelated build rule, return to the source-only path and review the patch manually. If you need unrelated changes for the tests to run, document them separately. That lets you tell whether the model solved the original issue or gained a pass by altering the evaluator or the environment. End your test when you have a reproducible before-and-after result and a patch small enough to inspect without trusting the model’s description.
Keep a repair log you can compare next month
For each issue, save a small card containing the original failing command, its error, the input fixtures, and the proposed patch. Include the exact checkout or revision so you can restore the pre-fix state. Add the model filename, the number of input tokens if available and the elapsed time to receipt of the patch. Record separately whether you had to prompt the model again. A two-attempt success can still be useful, but it should not be counted as a first-attempt pass when you compare your process with another one.
When you pick several pilot issues, include a simple validation defect, a boundary problem and a case that looks local but depends on a caller. Report the class of issue in your notes. If a test does not fail consistently before the change, remove it from the pilot and investigate reproducibility first. This protects the comparison from taking credit for a failure that was already intermittent. If a model suggests adjusting the expectation, verify the original requirement independently before allowing that change into the judged patch. A green test after changing the assertion does not establish the original bug was fixed.