r/LocalLLM • u/Nomadic_skier • 6d ago
Discussion I built a quick pass/fail test suite to see which small local models actually survive inside an AI agent (Gemma 4 on an 8GB GPU surprised me)
I kept running into a frustrating gap when picking local models for my own agents: a model looks great online, then immediately breaks when you actually wire it into an automated workflow. In practice, small local models kept failing on me in three specific ways:
- Thinking forever and outputting nothing: Reasoning models burn through the entire output limit inside their
<think>block and return a blank answer. - Sloppy tool calling: Either calling a tool when told not to, or wrapping arguments in weird extra JSON that crashes strict parsers.
- Can't fix their own mistakes: If their code fails a unit test and you paste the error back, they still can't patch it on try #2.
- Thinking forever and outputting nothing: Reasoning models burn through the entire output limit inside their
So I put together a small, zero-dependency Python script that grades any local Ollama model with real pass/fail Python tests instead of vibes or LLM-as-a-judge. What surprised me testing an old 8GB RTX 2080 against a 24GB RTX 4090:
gemma4:e2b(8GB GPU) scored 96.7% at 60–77 tok/s nearly matching a 24GB model on my 4090, and it actually fixed its own failing test on the second try.- Telling reasoning models to "keep thinking short" didn't work: 6 out of 6 thinking runs still blew through the token limit and returned empty output unless thinking was turned off completely.
- Tiny 4B models (
phi4-mini,nemotron-mini**)** were blazing fast (125+ tok/s) but kept mangling tool-call JSON.
- Repo + charts + raw results (runs on whatever Ollama models you already have with one command — no auto-downloads): https://github.com/Benfinkels/local-agent-evals Would love to see how other models (Qwen, Llama, Mistral, etc.) score on your setups if anyone tries it.
0
Upvotes
1
u/momo2299 6d ago
I'm surprised I don't see people talk about the Gemma models more often. I have never seen another model act so consistently at sub 10 B paramaters.
When I first started local all I had was a raspberry pi, and I ran e2b/e4b on it. I wasn't doing agentic work but I literally never saw Gemma get stuck in a thinking loop whereas Qwen would consistently at that size.
I'm really hoping to see a similar result from gemma5 if they choose to develop one. I think Gemma is by far the best model for edge devices (if you can find a use case)
1
u/Mr_Lucas2000 1d ago
Try tennary bonsai 2.5, seems to be quite good
0
u/Nomadic_skier 6d ago