Latest / Models & Agents / Ep 27: Gemma 4 delivers massive gains across European languages while a 25.6M Rust model achieves 50× faster inference via hybrid attention.
Transcript
- 0:00Hey, everyone, welcome to Models and Agents episode 27.
- 0:02It's April 7th, 2026.
- 0:04You're daily briefing on the AI models and agents
- 0:07that are changing everything.
- 0:09And no, not those kinds of models and agents.
- 0:12Let's get into it.
- 0:12Gemma 4 delivers massive gains across European languages
- 0:16while a 25.6 million rust model achieves
- 0:2050 times faster inference via hybrid attention.
- 0:23This week, the AI world is showing us
- 0:26three different ways to get better results.
- 0:29Pure scaling is still powerful, but clever architecture
- 0:32can deliver ridiculous speedups at the edge.
- 0:35And agentic workflows are collapsing
- 0:37entire traditional pipelines into simple tool using loops.
- 0:40There is real measurable progress on all three fronts,
- 0:43which makes this an especially fun week to dig in.
- 0:46The top story comes from an independent researcher
- 0:48who built a brand new 25.6 million parameter language model
- 0:53trained entirely on rust code.
- 0:55What makes it interesting is not just the size,
- 0:57but how it was built from scratch
- 0:58to test a very specific idea.
- 1:01The author forked PyTorch and Triton
- 1:03to implement a hybrid attention mechanism.
- 1:05It combines local window detention
- 1:07with a GRU-like recurrent state mixed together
- 1:10by a learned gate.
- 1:12They also replaced standard attention
- 1:13with a linear quadratic linear pattern.
- 1:16The results on inference speed are dramatic.
- 1:18On an RTX 4060T, the model jumped from 5.6 tokens
- 1:24per second to 286 tokens per second.
- 1:27That is a 50 times speedup.
- 1:29It achieves this by keeping only a recent window
- 1:31in the KV cache while the recurrent state
- 1:33lives in tiny, fixed size registers.
- 1:36Expanding the training data from 31 megabytes
- 1:39to 173 megabytes of rust crates delivered
- 1:42much larger reductions in validation loss
- 1:44than the architectural tricks alone.
- 1:47Final perplexity landed at 2.15.
- 1:49The model generates plausible syntax,
- 1:51but still shows weak semantic consistency
- 1:53and some repetition.
- 1:55The clearest takeaway is that at these tiny scales,
- 1:58high-quality data usually beats clever architecture.
- 2:01Yet the hybrid mechanism itself
- 2:03is a compelling inference optimization
- 2:05worth testing on your own edge workloads.
- 2:08Now let's talk about Gemma 4.
- 2:10Google's latest model, especially the 31 billion parameter
- 2:13version, has climbed into the top three or better
- 2:15on nearly every major European language leaderboard
- 2:18according to Euro-Eval.
- 2:19It ranks third on Dutch, second on Danish,
- 2:22third on English, first on Finnish, second on French,
- 2:25fifth on German, second on Italian, and third on Swedish.
- 2:28These are huge gains for a model of its size,
- 2:30often beating much larger models.
- 2:33Community members are now wondering whether real-world usage
- 2:35matches the impressive benchmark numbers,
- 2:38especially for non-English coding, legal,
- 2:40or creative tasks.
- 2:41Early feedback suggests the multilingual improvements
- 2:44are noticeable even in the smaller variants.
- 2:46That makes Gemma 4 an attractive drop-in replacement
- 2:48for Claude or GPT-40 class models
- 2:51when token cost or latency matters to you.
- 2:54One developer is already prototyping a clever setup
- 2:57using Gemma 4 as a local preprocessor for Claude code.
- 3:01They built a bun-based proxy that sits
- 3:03in front of the Claude API.
- 3:05Gemma 4E2B running through lama.cpp translates
- 3:10Korean to English, prunes irrelevant context,
- 3:13and optionally performs initial reasoning
- 3:15before the expensive call.
- 3:16The proxy caches results in SQLite using WAL mode.
- 3:20Intel Mac users are particularly interested
- 3:23in real tokens per second numbers for lama.cpp
- 3:26on non-Apple Silicon hardware.
- 3:28The open question is whether pre-supplying
- 3:30that reasoning actually reduces the paid model's token usage
- 3:33or whether Claude simply re-does the work internally.
- 3:36On the agent side, there is growing excitement
- 3:38around using coding agents as general purpose agents.
- 3:42One Reddit user shared how they took a pie coding agent SDK
- 3:45with red, right, and bash tools
- 3:47and used it to handle document knowledge bases.
- 3:49They performed structured extraction
- 3:51from over 100 PDFs and ran database benchmarking
- 3:55all without any vector database.
- 3:57Traditional pipelines collapse into agent loops.
- 4:00Retrieval augmented generation becomes red index,
- 4:02choose files, open them.
- 4:04ETL becomes write script, run it, inspect output,
- 4:08retry if needed.
- 4:10The pattern has already scaled to roughly 600 documents.
- 4:14The main uncertainties are what breaks first
- 4:16at larger scale, cost, latency, reliability,
- 4:19or context management.
- 4:21The author open sourced the code
- 4:22so others can inspect and build on it.
- 4:25Another fascinating project is VisionClaw.
- 4:28It turns Metareban smart glasses
- 4:30into an always on egocentric agent.
- 4:32The system continuously perceives the world
- 4:35and lets users initiate speech-driven tasks.
- 4:38You can add objects to an Amazon cart,
- 4:40generate notes from documents, create calendar events
- 4:43from posters or control IoT devices.
- 4:46A controlled lab study with 12 participants
- 4:49in a longitudinal deployment with five users
- 4:51showed faster task completion
- 4:53and reduced interaction overhead.
- 4:55The comparison was against both non-agentic
- 4:57and non-always on baselines.
- 4:59Interaction patterns shifted toward opportunistic initiation
- 5:03and delegation rather than manual control.
- 5:06We are also seeing more specialized agent work,
- 5:09a hackathon project created VUHA,
- 5:11an AI site reliability engineering agent built on GLM 5.1.
- 5:16It functions as a triple cloud recovery orchestrator
- 5:18covering AWS, Azure, and GCP.
- 5:22The agent uses a fast API control plane
- 5:25and an evolutionary SU light memory
- 5:27that learns from every human approved failover.
- 5:30It gathers context, proposes fixes in JSON format,
- 5:34and only acts after human approval.
- 5:36A reflection phase writes incident learnings
- 5:38back into memory so future diagnoses improve.
- 5:41There is even a live demo where you can hard kill nodes
- 5:44and watch the system react in real time.
- 5:47On the practical and community side,
- 5:49there is new guidance about using minimal container images
- 5:52to fortify AI agent security.
- 5:54Drastically shrinking container images
- 5:56reduces the attack surface for deployed agents.
- 5:59You get fewer dependencies, smaller software bill of materials
- 6:03and faster cold starts.
- 6:05These are practical wins for both security
- 6:07and operational efficiency when running autonomous agents
- 6:10at scale.
- 6:11On a more serious note, security researchers
- 6:13identified critical remote code execution vulnerabilities
- 6:17in publicly deployed flow eyes instances.
- 6:19The issue carries a CVSS score of 10.0
- 6:22and is under active exploitation in the wild.
- 6:25More than 12,000 instances are currently exposed.
- 6:29Teams running flow eyes or similar low code agent builders
- 6:33should immediately isolate internet facing instances,
- 6:36apply available patches and follow responsible disclosure
- 6:40practices.
- 6:41This incident underscores the operational security
- 6:44debt that comes with rapidly shipping agent tooling.
- 6:49OK, let's pop the hood on this hybrid attention approach
- 6:52because it is more subtle than most people realize.
- 6:55Everyone talks about hybrid attention
- 6:57as if it is a simple performance dial you turn on.
- 7:00In practice, it is a carefully engineered compromise
- 7:02between local syntax, long range state, and memory bandwidth.
- 7:07The core insight is to split attention into three stages,
- 7:11a linear projection, a narrow quadratic window
- 7:13that still captures short-range dependencies
- 7:16and another linear stage.
- 7:18At the same time, they inject a GRU-style recurrent state
- 7:22that compresses history.
- 7:24A learned gate then blends the local and recurrent path
- 7:26so the model can decide token by token
- 7:29whether syntax or distant context matters more.
- 7:32By keeping only the recent window in the KV cache
- 7:35while the recurrent state lives in tiny fixed size registers,
- 7:39they get the 50 times speed up.
- 7:41The quadratic middle layer never sees the full context.
- 7:44The quality cost trade-off is revealing.
- 7:47Perplexity barely moves yet semantic coherence still lags
- 7:51because the recurrent compression is lossy.
- 7:53Above roughly 30 million parameters,
- 7:56the architectural gains shrinks rapidly
- 7:58and data scale reasserts dominance.
- 8:00The gacha that bites most teams is assuming
- 8:03the hybrid mechanism will magically fix repetition.
- 8:06It reduces latency dramatically
- 8:08but does not replace the need for high quality,
- 8:11diverse training data, and proper temperature scheduling.
- 8:14So when should you actually reach for this
- 8:16versus the alternative?
- 8:17Use hybrid attention when you are latency bound
- 8:20on edge hardware and your context is mostly local
- 8:22such as code, chat, or control loops.
- 8:24For deep reasoning or long document synthesis,
- 8:28classic transformer with efficient attention
- 8:29like flash attention to or MLA remains the safer default.
- 8:34If you have not tried the open sourced coding agent SDK
- 8:37from the local LLAMA post, this week is a great time.
- 8:42Replace one manual ETL or retrieval augmented generation pipeline
- 8:46with a red-right bash agent loop
- 8:48and see how far you get before context or cost becomes
- 8:50the bottleneck.
- 8:51Download Gemma 4, either the 9 billion or 31 billion version
- 8:55via hugging face.
- 8:57Run it on the European languages you actually use
- 8:59in Compare Korean or French token efficiency
- 9:01versus Claude 3.5 or 4 to quantify potential API savings.
- 9:06Test the hybrid attention 25.6 million parameter rust model
- 9:10or replicate the linear quadratic linear pattern
- 9:13in your own small decoder on a local 406 OTI or laptop GPU.
- 9:19Measure real-world tokens per second
- 9:21versus a standard transformer of similar size.
- 9:24Deploy a vision-cloth style egocentric prompting setup
- 9:28on your own Rayban glasses or any always on camera feed.
- 9:32Try opportunistic commands like add this to cart
- 9:34or summarize this poster and notice
- 9:36how delegation changes your interaction habits.
- 9:39And if you run flow-ice or any low-code agent builder,
- 9:42audit your internet-exposed instances today
- 9:44and consider moving to minimal container images
- 9:46or air-gapped setups.
- 9:49Security debt compounds fast once agents can call tools.
- 9:52On the horizon, keep an eye on continued community exploration
- 9:55of memory topologies in lifelong LLM multi-agent systems.
- 10:00More agentic federated learning papers and prototypes
- 10:03are likely following the agentic FL paradigm shift.
- 10:06A 2A agentization benchmarks and tooling
- 10:08should see rapid iteration now that the formal framework
- 10:11is public and watch for production deployments
- 10:14of cognitive fabric nodes middleware,
- 10:16which are already showing more than 10% gains
- 10:18on hotpot QA and Musikui.
- 10:21Before we go, tomorrow we will likely have more details
- 10:24on the growing momentum behind agentic memory systems
- 10:27and how they are starting to move from research
- 10:29into early production experiments.
- 10:31That's models and agents for today.
- 10:33If you found this useful, share it with someone
- 10:35who's trying to keep up with all these changes
- 10:37and subscribe so you don't miss tomorrow's update.
- 10:40The AI world moves fast will help you keep up.
- 10:43See you tomorrow.
- 10:45This podcast is curated by Patrick,
- 10:47but generated using AI voice synthesis of my voice
- 10:50using 11 labs.
- 10:51The primary reason to do this is I unfortunately don't have
- 10:54the time to be consistent with generating all the content
- 10:56and wanted to focus on creating consistent
- 10:58and regular episodes for all the themes that I enjoy
- 11:01and I hope others do as well.