
Agents & Developer Experience Ecosystems Lead EMEA at Google. O'Reilly author. Local AI, fine-tuning. Building tool-eval-bench & awesome-local-ai. Views my own.
Berlin, Germany • he/him
Joined January 2010
- Tweets26.8K
- Following1.6K
- Followers7.7K
- Likes11.5K
A looped Gemma 4 26B went from 10/30 to 23/30 on a hard reasoning slice after 11 minutes of training on my MacBook Pro.
I ported @jasontitus's open recurrent-depth architecture to Gemma 4 26B-A4B in MLX. With Gemini 4 Neon and Hydrogen, that was an afternoon project rather than days of extensive research.
Six of the 30 layers run up to three times per token. All 128 routed experts stay frozen. I trained only 14 million adapter parameters (0.054% of the model), with 19.74 GB peak memory on an M5 Pro with 64 GB.
What looping changed:
- 57.6% fewer thinking tokens, 1,316 down to 558 on average
- Token-cap truncations down from 20 to 6, zero regressions
- 1.62x faster per question, even though raw decode speed drops
The Gemma 4 assistant drafter worked on the looped model without retraining. With speculative decoding it reached 65.28 tok/s, 2.16x faster per prompt than the unmodified model without drafting.
This (re-)affirms my belief that experimenting with the latest advances in AI is more accessible than ever!
Disclaimer: This is an exploratory eval out of curiosity, and a fine-tuning-only baseline without looping is still missing. If I find the necessary idle cycles I'll run full GSM8K, HumanEval+ and MATH-500 to validate my findings.
It's been a huge year for you with github.com/SeraphimSerapis/t… and all of your insights on the world of OSS and open weight models. Bring on 2027!
15
A looped Gemma 4 26B went from 10/30 to 23/30 on a hard reasoning slice after 11 minutes of training on my MacBook Pro.
I ported @jasontitus's open recurrent-depth architecture to Gemma 4 26B-A4B in MLX. With Gemini 4 Neon and Hydrogen, that was an afternoon project rather than days of extensive research.
Six of the 30 layers run up to three times per token. All 128 routed experts stay frozen. I trained only 14 million adapter parameters (0.054% of the model), with 19.74 GB peak memory on an M5 Pro with 64 GB.
What looping changed:
- 57.6% fewer thinking tokens, 1,316 down to 558 on average
- Token-cap truncations down from 20 to 6, zero regressions
- 1.62x faster per question, even though raw decode speed drops
The Gemma 4 assistant drafter worked on the looped model without retraining. With speculative decoding it reached 65.28 tok/s, 2.16x faster per prompt than the unmodified model without drafting.
This (re-)affirms my belief that experimenting with the latest advances in AI is more accessible than ever!
Disclaimer: This is an exploratory eval out of curiosity, and a fine-tuning-only baseline without looping is still missing. If I find the necessary idle cycles I'll run full GSM8K, HumanEval+ and MATH-500 to validate my findings.
Really like the milestone you made. I forked your branch on GitHub and want to build on it for my hybrid ternary Gemma 4 26B MoE (lossless FP16 KV cache locked at 256k context):
huggingface.co/TheSanchezian…
1
1
58
Replying to @SeraAndroid @jasontitus
Held out from training, yes. But how were the 30 hard problems selected, and was that selection fixed before any model results were seen?
1
1
It might be time to whip out the old Xbox and have some fun with Gemini 4 Neon.
Great to see the industry embrace developer- and agent-friendly design!
XBOX CLI: 10 ways it makes game development easier
1. Playtests from the terminal. Check build readiness, then create, target and publish a playtest.
2. Built for scripts and AI agents. Any command can return JSON, and xbox –skill gives your agent a guide that matches your installed version.
3. XBOX services configuration as code. Download achievements and other settings as files, review changes in pull requests and diff them against what's live.
4. One sign-in for everything. Reach Partner Center, XBOX services and PlayFab from one tool with your Microsoft Entra ID account on Windows, macOS and Linux.
5. XBOX services configuration history. See who saved or published each change and what it changed, then restore an earlier version in one command.
6. XBOX test accounts in bulk. Create batches of accounts, including child accounts, for the sandboxes you specify, and find any account's batch by email.
7. PlayFab configuration and live operations. Configure your title, look up players, update player data or call any PlayFab API from your terminal or a CI/CD workflow like GitHub Actions.
8. PlayFab Multiplayer Servers. Upload assets, create a build, point an alias at it and pull server logs.
9. New games and sandboxes. Create a game in Partner Center or an XBOX development sandbox with one command.
10. Work on the leading edge. Try new XBOX developer features early in the technical preview, and run `xbox upgrade` to check for a new release.
All available through the CLI as OSS on GitHub. Get it here: go.xbox/cli
Happy 2 weeks birthday, Gemini 4 Neon!
It's mind-boggling that this model has only been around for two weeks. The amount of cool things people have built with it is nothing but incredible!
Gemini 4 Neon: frontier-level intelligence with fast end-to-end task completion across complex software engineering, knowledge work, and science workflows.
Begins rolling out today in the Gemini API in @GoogleAIStudio, Gemini for business, for paid Google AI Pro and Ultra subscribers in Google @Antigravity, and for Google AI Pro and Ultra subscribers in the @GeminiApp.
My fault for using Gemini 4 Neon with Extra High thinking by default. I guess its time for a coffee break!
Replying to @SeraAndroid @jasontitus
Who contributed more to the “experimenting with the latest advances in AI”, Gemini or Gemma😆
1
206
Replying to @SeraAndroid @jasontitus
You need to track 4 seperate key variables: size, speed, smarts, and joules per token to spot any real gains vs trade-offs in other areas.
2
1
264
Replying to @SeraAndroid @jasontitus
Were those 30 reasoning problems held out from the 11-minute training run? That’s the key detail for interpreting the reported jump from 10/30 to 23/30.
1
Replying to @SeraAndroid @jasontitus
Excellent! These kind of quick trials to learn about what might be possible will surely take us forward. Let’s see if I have understood enough about how you did it, to do it myself.
1
267
Everything is in the repo: data prep, the 400-step training run and the paired eval. For training I'd go with 48 GB+ unified memory on Apple Silicon. Curious what you find.
github.com/SeraphimSerapis/g…
172
Not yet for the Gemma port. Standard mlx-lm doesn't implement the looped architecture, so for now it runs on Apple Silicon through generate.py in the repo.
9
Tim Messerschmidt retweeted
Google Cloud Advent of Agents is back: adventofagents.com
Get curated information every morning focused on getting work done with Gemini! 100% free.
Unlock Developer Program badges for each day you complete.





























