yeah. I think they did a good job with the new subagent feature in Codex btw
@rasbt
-

Per-layer embeddings likely unused in final model implementation
By
–
I saw the per-layer embeddings in the code, but I don't think they were used in the final models. Maybe it was a left-over from some internal experiments.
-

Gemma 4 Variants Side-by-Side Comparison Tool
By
–
Just putting the two Gemma 4 variants side by side here for easy reference. sebastianraschka.com/llm-arc…
-
Ollama Performance Comparable to Custom Compiled Alternatives
By
–
Actually I don't mind ollama (they'll probably have gemma 4 in a few days because the architecture is so similar to gemma 3 that it should be an easy port). I know I should consider other options, but somehow the performance is the same or better compared to custom compiled
-

Overall Architecture Overview and Implementation Guide
By
–
Here you go (for the overall architecture):
-
Gemma 4 26B model architecture gallery entry and details
By
–
And the link to the gallery entry for more details, links, comparisons, etc: sebastianraschka.com/llm-arc…
-

Gemma 4 Release: Architecture Stability, Training Innovation, Strong Performance
By
–
Flagship open-weight release days are always exciting. Was just reading through the Gemma 4 reports, configs, and code, and here are my takeaways: Architecture-wise, besides multi-model support, Gemma 4 (31B) looks pretty much unchanged compared to Gemma 3 (27B). Gemma 4 maintains a relatively unique Pre- and Post-norm setup and remains relatively classic, with a 5:1 hybrid attention mechanism combining a sliding-window (local) layer and a full-attention (global) layer. The attention mechanism itself is also classic Grouped Query Attention (GQA). But let’s not be fooled by the lack of architectural changes. Looking at the benchmarks, Gemma 4 is a huge leap from Gemma 3. This is likely due to the training set and recipe. Interestingly, on the AI Arena Leaderboard, Gemma 4 (31B) ranks similarly to the much larger Qwen3.5-397B-A17B model. But as I discussed in my model evaluation article, arena scores are a bit problematic as they can be gamed and are biased towards human (style) preference. If we look at some other common benchmarks, which I plotted below, we can see that it’s indeed a very clear leap over Gemma 3 and ranks on par with Qwen3.5 27B. Note that there is also a Mixture-of-Experts (MoE) Gemma 4 variant that is slightly smaller (27B with 4 billion parameters active. The benchmarks are only slightly worse compared to Gemma 4 (31B). I omitted the MoE architecture in the figure below because the figure is already very crowded, but you can find it in my LLM Architecture Gallery. Anyways, overall, it's a nice and strong model release and a strong contender for local usage. Also, one aspect that should not be underrated is that (it seems) the model is now released with a standard Apache 2.0 open-source license, which has much friendlier usage terms than the custom Gemma 3 license.
-
Book Independence and Relationship to LLM from Scratch Guide
By
–
Thanks for getting a copy! And that's a good question, there's practically not much overlap. So, this book can be read on its own, and it also works well as a follow-up to Build a Large Language Model (from Scratch). The latter focuses on LLM architecture and pre-training from
-
Ollama Gets MLX Support in Recent Update
By
–
Haha, but what's not April's fools is that ollama finally got MLX support the other day