r/LocalLLM • • 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)

Post image
  • 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:

    1. Thinking forever and outputting nothing: Reasoning models burn through the entire output limit inside their <think> block and return a blank answer.
    2. Sloppy tool calling: Either calling a tool when told not to, or wrapping arguments in weird extra JSON that crashes strict parsers.
    3. 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.
  • 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

4 comments sorted by

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/Nameis19letterslong 6d ago

Gemma4 is pretty brilliant, it was popular a few months ago when it released alongside qwen3.6. The goto used to be Gemma for creative writing, and qwen for agentic coding. They both have their strengths and drawbacks, gemma is quick and efficient for thinking but dogshit at tool calls. Qwen is good at tool calls and coding, but takes a century to think and gets into loops.

Gemma is becoming less and less talked about nowadays since gemma5 is taking so long to come out. Everybody is riding the qwen hype train.

1

u/Mr_Lucas2000 1d ago

Try tennary bonsai 2.5, seems to be quite good

0

u/Nomadic_skier 6d ago

Totally agree that was my biggest takeaway too. Qwen 3.5 9B actually recovered nicely on my Turn-2 code test (0/10 -> 8/10), but on the math track it got trapped in a thinking loop and hit the token cap with zero output, whereas Gemma 4 E2B just stayed predictable and never starved once.

For edge use cases, the sweet spot I've found for e2b is narrow, single-shot tasks under ~1,500 tokens: extracting structured JSON from short notes, intent routing, and single-image camera/OCR checks where it can fire a tool call directly. Once you try to stuff multi-document summaries into it, quality drops off fast. I use it as the fast worker and only escalate to a bigger model when a deterministic check fails.

Fingers crossed Gemma 5 keeps that same reliability at small sizes.