Gemma 4 has restored my faith in Local LLM


I've got a Framework desktop with 128G unified ram, plus a 5060 with 16G vram in an eGPU. For general open-webui stuff it's fine. Slow, but fine. For tool use (OpenCode), it's been horrific.
I use the BMad method for long projects. Most models will take the prompt (e.g. bmad-dev-story 1-1) and start with it, but they will often just stop mid-work. 30k tokens consumed, they just stop. This has been with all of the Qwen models I've tried, GLM 4.7, and several others. I've tried the small 7b models all the way up to Llama 3 70b.
Someone here mentioned Gemma 4 so I thought I would give it a shot. The first one I tried, e4b, crapped out the same as the other. Then I tried the 31b model, and its actually running! It's slow, sure, but I don't care about that. I want to set it on a code review and feed it a story and let it do it's thing. And it's doing it!
About this post
- Posted
- Archived
- Score
- 152 · 92% up
- Kind
- Gallery · 2 files
- ID
- 1tevbxa
37 comments
Glad it’s working out for you- what’s the “BMad method” it’s the first time I’m hearing of it?
https://github.com/bmad-code-org/BMAD-METHOD
Imo it’s way too verbose and that’s why the tokens counts are so high
You could be right, though I will say using Sonnet to create-story, validate story, and dev story, then Haiku to code-review has helped A LOT with that.
The token usage has gone up and down over the last 4 months. In January, I was working on 4 projects simultaneously for about 8 hours a day, no problem. 3 weeks ago I could only get about an hour into my 4-hour on a single project before running out.
Today, I'm 8% into my weekly (resets Wednesday) and I've worked every day. So I dunno.
What I like, is that it follows a pattern I am familiar with from working on a team. It makes sense to me, and has thusfar produced acceptable results.
It's amazing for large legacy projects (we have 78 "microservices"). For a quick weekend project it's way to verbose. It's reasonable to expect spend 8 hours specing out a project with bmad. The results are great, especially if you have lots of dependencies.
It's a systematized method of AI-assisted software development that can carry you from brainstorming, toward PRD creation, UX design, architecture, and finally epic and sprint creation. For me, it allows me to follow a familiar work flow, and is really good for when you have to leave a project and come back. Just check the sprint status and you know where you left off.
Idk if this is specific to your experience with this bmad framework, but I've found directing the agent to make an actual TODO.md file in the directory and track progress against it keeps their focus for much longer than their own self-monitored TODO list.
Neat. I have only experienced this while using local LLM + BMad. If I just open OpenCode and tell it like "I need a reach-native app that shows a random cat picture from the catpictures.org API" it has been able to do projects like that without issue.
Depends on the local model, with both qwen3.5 9b and Gemma 4 this happens a lot with any task. It simply decides that the task ended and stops. Must write “continue” and then they resume … weird as hell … I used opencode that creates a todo and it just stops
This runs at a blimmin fast 150 tokens per second, on 16gb of VRAM 4080 https://ollama.com/VladimirGav/gemma4-26b-16GB-VRAM-Uncensored I mean I preferred Dense but going from 8 tokens a second to 150. Sorry my jaw is still on the floor after discovering it this Thursday.
Local models often stop working on long, complex prompts.
Suggestion: break up your long BMAD prompt into smaller tasks that the model can complete in shorter phases or sprints. While still keeping the BMAD in context as an overall plan.
In the same way that you can’t drive a Toyota Camry they way you would drive a Porsche, you have to modify how you work with a local model as opposed to a cloud model, to work within it’s limitations. This sets both you and the local model up better for success.
Very nice. You might try gemma4-26b-a4b, which should run faster. I'd be curious to see if it still solves the problem.
I will load that and give it a shot. 31b finished the task, but when I asked it "If you wrote these changes to disk and the story is done, please mark it as done" it got stuck on me.
This particular project is like a hobby project of a hobby project, so I don't really care that it does a "good" job at it, just trying to put together a prototype and validate that the workflow actually works the way I think it should.
Also, I really wish OpenCode had the ability to just run a simple timer from when you enter the prompt until the time the prompt stops. It would be interesting to see how long these are going for.
When I was running into the "stopping" issues, I was nowhere near the context (64K), and it was a prompt like "bmad-create-story epic 1 story 1". Might tool around with trying to break the stories down further or something.
Side thing: On non-code tasks, I found gemma4 far more helpful than the qwen3.6 ones. In my case, it was analyzing some of my art from the perspective of Jungian psychology. Both model classes are multi-modal and can see what I drew, but the American model was far, far better on interpretation and concepts. Actually the qwen4 MoE was better than the dense one.
Anyway, I hear the same thing about general story-telling and other less-technical stuff -- gemma4 dominates.
Interesting because I have a 3080Ti (12GB VRAM) with 64GB of Ram and I can run Qwen3.5 9b and even Qwen3.6 (albeit a little slower) at Q4-Q6 and it’s been very good for coding. I use TurboQuant
MTP support is showing up in more inference engines now so that could speed up Gemma 4 for you as well.
Well, i have very bad experience with Gemma4. On E4B fails on calling tools. Qwen 3.6 obliterate it completly on A3B. And it's running about 10t/s on 8GB VRAM. That's a difference. I'll like to see Gemma4 doing good work, cause it's reasoning IS so good. Maybe in Gemma 5 :)
gemma 4 31b works fine with pi and vscode copilot if token context managed correctly
The Qwen models stopping is a complaint I have heard. I haven't tried it yet, but have seen on huggingface some updated chat templates that are supposed to fix this.
You might try these to see if they help.
What harness is this?
Opencode!
What Quantification are you using? 4 Bit can be rough, esp. for tool usage and long running tasks.
ill check that one out!
I tried this on Google AI studio and it was so slow, for anything agentic was bleeding thought tags. Anyone having better luck locally?
Deleted before we saved it.
I'm a bit behind the curve here and this is the first time I'm hearing about "BMAD". Is it possible to use this fully locally from an OpenAI Compatible endpoint?
The instructions seem to suggest I need to use an IDE like VS Code, which in turn seems to demand account linking for Copilot... No fucking thank you. Are there alternatives?
Same. I too switched rrom qwen3 to gemma4. It has a much better understanding of the overall infrastructure
Feels like a lot of people are slowly realizing coding/workflow usability matters more than leaderboard positioning now
If a model can reliably sit inside your actual development loop for hours without becoming annoying, thats probably more valuable than +3 benchmark points on some reasoning eval most users never directly feel
We're CPU twins! I got an ASUS ROG Flow z13 with 128 GB RAM that I have in 64+64 right now but might try 96 GB VRAM for largest local context window idk yet. I'm still a newbie, building my Obsidian library
Gemma 4 is nice. You can also use it with TernBase on Mac
Gemma 4 honestly gave me some hope too.
I still don’t think local models are replacing Claude/Gemini for serious coding anytime soon, but I’m starting to see the appeal more. Not as a general “do everything” model, but as something you can shape for a specific workflow.
Fine-tuning is the part that makes this interesting to me. A small model out of the box can be pretty meh, but if it’s tuned for one narrow job, it can actually become useful.
I saw a project called Forjal that’s playing with this idea, basically making it easier to turn a specific task into a small fine-tuned model. That feels like the direction where local/open models make the most sense to me.
Not replacing frontier models, just using smaller ones where they actually fit.
forjal.com
I assume this is just your app?