Code Generation with Local Models
Small, local AI models deliver surprisingly effective results for everyday tasks. Also llama3.2 is surprisingly fast and gpt-oss is surprisingly good.
I needed a small script to help anonymizing some test data. Nothing fancy, but on my way to ChatGPT I ended up on the “wrong window” — and threw the prompt at Olamma gpt-oss instead. And it surprised me by giving me a solid result quickly. Small local models are the future and being able to run them on hardware you already own is a political statement.
No remote API calls. No burning through tokens/the environment. No company watching. Like a cowboy, just me and my machine.Small, local models that are good enough to be useful and powerful enough to matter.
Mostly, just worked
I ended up trying the prompt with a couple of different models, and then grading the results.
i need a script that will give me at least 1042 distinct but made up show names. they should be funny and grammatically correct and written in typescript
I expected gpt-oss:20b to be the best of the lot, but surprisingly the 5 month old llama3.2 crushed everything on the time dimension:
4 of them got winning results on the first (and only) try:

Code “Quality”
This is silly since it’s a tiny, throw away script but:
| Model | AI Quality | Docker Execution | Notes / Errors |
|---|---|---|---|
| gpt-oss:20b | 4/5 | ✅ Success | Clear & well-named; could abstract title generation. |
| deepseek-r1:32b | 3/5 | ✅ Success | Repeats random-selection logic, refactoring needed. |
| devstral:24b | 4/5 | ✅ Success | Cleanly organized, avoid duplicate checks. |
| llama3.2:latest | 4/5 | ✅ Success | Clear, but unused suffixes array and weak modularity. |
| gemma3:12b | 4/5 | ❌ Failed | TypeError: Cannot read properties of undefined (forEach) |
| gemma3:27b | 3/5 | ❌ Failed | ReferenceError: $2 is not defined |
| mistral-small3.2:24b | 3/5 | ❌ Failed | Syntax error: Expected ”)” but found “count” |
This is for TypeScript, they could be better or worse on different languages.
The test code is on github
Gemini feels different
A client asked to keep his data inside Google, we rebuilt his workflow system with Gemini 4 into self-updating 'freshware,' and six AI Engineer Code Summit talks explain why the model feels different.
How I classify models
Small models are smart yet limited in knowledge; foundation models possess both deep understanding and extensive knowledge but lack structured problem-solving approaches. Educated models like DeepResearch excel by combining learned reasoning processes with large memory capacities, enabling them to adapt effectively to complex tasks while handling vast information instantaneously.
AI for research: DeepResearch a clear winner
Asking the tough questions: DeepResearch excels in depth and comprehensiveness, while o1, Sonnet 3.5, and DeepSeek with DeepThought provide comparable results for complex inquiries. Smaller models like phi4 and llama3.2 are deemed inadequate for intricate topics.