We got so much Gemma 4, Gemma 3, Gemma scope, MedGemma. Give us the TLDR.
Yeah, so yeah, Gemma 4 is just out. This is the most capable open model we've released so far. We really tried to compact as much intelligence per parameter as we could, bring all of these multimodal capabilities. So yeah, that's Gemma 4.
So one interesting thing, you have this thing with effective parameters, not active parameters. Can you explain what it is?
Yeah, so pretty much in the traditional transformer architecture you have like this big embedding layer, right? And this new architecture is more of a small change in the transformer architecture, in the transformer block. Pretty much we add a per-layer embedding. So at every layer we add an embedding table. What is exciting is that you don't need to do like the full matrix multiplication. This is pretty much a lookup table. So the Gemma 4 model is a 2B. That means that it effectively has 2 billion parameters loaded into the GPU. It actually has almost 5 billion parameters, but those 3 billion parameters can be in the CPU, they can be in the disk, which means that you can do inference extremely quickly. This is just a lookup table.
And what's the con? Why don't we always do this? Can it scale? Is it open research? Like, you know, it seems very... Okay, if I can just offload half the parameters to CPUs.
Yeah, so pretty much here we did lots of quality experimentation and this is really optimized and designed for like on-device. And when I say on-device I mean like running in a phone, Android, Raspberry Pi, and so on, right? When you go larger you usually want to compact more, you want to have more like dense architectures or MOEs. So these research decisions were very helpful for these small use cases.
Yeah, something I learned from the run that you organized this morning. For our listeners, I think it's the first ever like official run club at AIE, 6:30 a.m. Very rough, but at least I woke up for it. I met Cormac and he was telling me that apparently in China the super apps are shipping models in the app bundle for inference and just like use among all their super app assistants. Yeah. And I don't know, is that like a target use case for you guys?
Yeah, so actually if you install, like if you buy a Pixel phone or a high-end Samsung, they come with a Gemini Nano, and Gemini Nano is baked into the operating system, and Gemini Nano is really built on top of Gemma. So last year we released Gemma 3N, which was this architecture really designed for phone use cases, and they use a Gemma 3N with some additional training, some additional adaptations to make the model good for like traditional on-device use cases, right? So pretty much when you buy like these high-end phones, you can already use a Gemini out of the box.
Yeah, we actually covered the 3N paper in our paper club, and this like idea of like sort of parameter offloading or like download on demand is like very cool. Is it exactly the same in the Gemma 4 stuff?
Yep. For the smaller models.
Yeah. And does it scale? Is there a potential... So for reference, Gemma 4 is a 29B and a 31B ones, and only one's dense, but have you scaled it? Have you pushed it up? Is it...
We are doing lots of experiments. Stay tuned.
What goes into shipping a mean line model like this? Like, what's the behind the scenes?
It's complex. The Gemma team is actually relatively small. We have like two or three PMs, we have one marketing person, and then there is our like engineers and researchers working on shipping this. Of course there's like the full training part, how do we do the post-training, distillation, post-training techniques and so on. What is quite exciting is that once we have the model, then we collaborate with a bunch of open source partners, right? So for example, we work with llama.cpp, Ollama, MLX, Hugging Face, vLLM, Nvidia, AMD. So we have almost 50 external partners for the Gemma 4 launch, which has been the most complex launch. And also internally, we collaborate with a bunch of different teams. So think of Google Cloud, Vertex, Vertex models as a service, ADK, and then Android as well, right? So we work, for example, with the Android team, and with the launch of Gemma 4, we released an integration with Android Studio. So in Android Studio, there is this agent mode where you can have a model helping you write code and do things within Android Studio. And they ship this integration with offline models using llama.cpp or vLLM or any OpenAI-compatible endpoint. So now you can use Gemma 4 to also write code for Android applications in Android Studio.
What's the difference? When would someone want to do that versus just using Gemini? Outside of the obvious, you're offline or you want the privacy.
I did. Okay, I will say, on my long 10-hour flight to London, I did use Gemini as... Yeah, I was on Gemma 4 though. Sorry, Gemma. Yeah, yeah, it's mostly offline use cases. Right, or if you... Yeah. Offline or privacy, like if you want to have all of your development set up locally and you don't want to send any code to any API, you would use that.
Do you see a future where, you know, small models get good enough? Like, does it cannibalize? It's an interesting position. Like, you have big Gemini, you have Gemma, both get exponentially better over time. Like, current Gemma is much better than what we had closed source a few years ago, right?
Yeah, for me, it's quite exciting. I mean, if you look at Gemma, you compare to how we were one year ago, I would say Gemma 4 is matching state-of-the-art from one and a half years ago for most things. With local models or models that you can run in your own hardware, you can get capabilities, so you can get agentic capabilities, function calling, system instructions, like conversational and that kind of stuff. Knowledge is much trickier, so for knowledge, you do need a larger model, right? That's why if you compare Gemini to Gemma, Gemini has much better knowledge of the world, right? Like facts, information, and so on. So it really depends. I do think we are heading towards a future in one to two years where imagine like you can run a Gemini 3 Pro powerful model directly in your phone, right? And I think once we get there, things will be quite exciting from a product integration, from which experiences we can enable to users. I wouldn't say it cannibalizes. Still like two very different things. Like if you want like flagship capabilities, this super complex, long-running task you would do with Gemini if you need factuality and so on. But I do think for many of these agentic things, we'll get to a point in which we can do very powerful things directly on device.
Yeah. Can we talk about the multimodality side? Any advances there that you want to highlight or you've been getting good feedback on?
Yeah, so Gemma 4 was built on the same research as Gemini 3, which pretty much means that we benefited from all the improvements that happened with Gemini 3. Multimodal-wise, the smaller models can understand audio, images, and short videos. So 30- to 60-second videos and audios. For us actually quite long. And even the on-device, like the 2B, 4B, 2B can do very good multimodal. Yeah, for audio we have a speech recognition, we have a speech-to-translated text, and then a bit of a speech understanding. So you can do like ask questions about an audio file and so on. So use cases that are very optimized for like on-device phone use cases. And then on the vision side, we also improved things quite a bit. So we have object detection, pointing, captioning. We do not have image segmentation, which we know is like one thing that many people have been asking us. But otherwise, like for many things, we do support that. The other thing we do not support yet is video with audio. So we can understand like video input or audio input separately, but if you want to pass like in the same prompt both a visual part and the audio part, we still need to do some improvements around that.
And that's just a matter of like more data?
Probably some additional fine-tuning could yield some very good baseline models for this.
We are exploring some things here. Nothing I can share at the moment.
I think everyone's excited about the like when do you have native speech-to-speech, right?
Yeah. But as far as I see, people always get excited and then the pipelines always win.
Yeah. Gemma is quite important for the multilingual aspect as well. So Gemma supports these 140 languages. You did a lot of work on the multilingual... or the tokenizer.
The tokenizer, right. Right. So adding... Yeah, exactly. So the tokenizer has been pretty much based on the Gemini tokenizer. It's extremely good. So independently of the Gemma capabilities, if you just pick base Gemma model and you fine-tune for an additional language, it actually works extremely well.
What are some... So I didn't read that part. What are some insights on the tokenization?
And this comes from Gemma 3. Like this has been done already for over a year, but the tokenizer is pretty much the same as Gemini, which means that the tokenizer lends itself to capture the right tokens for different languages. It's like a very good multilingual tokenizer. Which means that if you compare Gemma 3, so I'm going to the previous generation, if you compare Gemma 3 to other models from back then, maybe the other models were better than Gemma 3 like as general model, but if you train all of these models for, I don't know, a specific Southeast Asian language, I don't know, Vietnamese, let's say, Gemma would yield better results even if the other base models were potentially better.
Yeah. I mean, I think there's some limit at which you basically have tonic representation, right? Like you understand the core concept and it translates to whatever language you want.
I guess, you know, you are also, you have purview over all of Google developer experience. And you brought the team here for the first time. What was that like?
It's quite exciting to be honest. We have already participated in previous AI Engineer conferences, like Philip or like other team members have been in some of these in the past. This is London. This is DeepMind's home. You have to. Yeah, we have to. I mean we brought a bunch of researchers from the team to share about different things that we're working on. We brought other teams from Google, not just from DeepMind, that are also like using AI in one way or another. So we brought people that are doing on-device machine learning, people that are doing like hardware optimizations to run models directly in phones or in the browser. We brought people from the Android team. We brought people that are working all over Google from robotics to research to Android. So yeah, it's quite exciting to come here and really show all of the things that the company's building, not just come and share like the things that our team is doing, but really all of the overarching AI story that we're...
Yeah. I think you are, I mean it is the lab with the biggest scope. Like you do everything including dolphins. And it's very impressive. Like yeah, so you brought Sander. We talk a little bit about the researchers that you brought.
We brought researchers in a couple of different topics. So we brought one of the researchers that worked in the Gemma development, in the development of Gemma 4. We brought a researcher that works in the diffusion models as well, diffusion transformer models or diffusion as text generation, not image generation.
Which was announced but not released.
Exactly. We did the Gemini diffusion last year at the IO, which is very cool because you can generate code extremely quickly, right? Like it's a... yeah, stupid.
So the main pitch is speed, but other than speed is there like a secondary, you know, what can we do with a diffusion model that we cannot do with auto-regressive, you know?
Okay. Yeah. I feel like in terms of code structure there may be some things where you're like, okay, I want the brackets here. Yeah. And then you fill in the blanks, right? So fill in the middle is like a common code problem but this is extended fill in the middle, or like extended like oh, help me upscale or put a LoRA. I don't know, you know, translate the image analogy to text.
I think in the past fill in the middle was like this task that many companies were trying to tackle as an additional generation task. And now people are just assuming that the model can do fill in the middle with a general... exactly. Yeah, yeah. No tricks about special tokenization or anything like that. Exactly. It used to be a, you know, masked language model that you trained to predict fill in the middle. Yeah. You had to rearrange your data set as well in order to do FIM. Yeah, it was a bit tricky. People were always getting like the prompt in the tokens wrong and yeah. If you deviated in any way from the training format, it didn't yield good results. Now we have like very good out of the box capabilities for that.
What's the idea about investing in text diffusion? Is there a world in which this overtakes auto-regressive?
Yeah, yeah, that's a good question. I think at the moment it's still very experimental. I think we'll be really seeing us sharing a bit more research of the things that we have been doing around diffusion generated text generation models on that space. I would say it's still very early stage. I think especially like the model quality is still a bit worse from what you would get from a normal auto-regressive model.
Yeah, a lot of what you were mentioning earlier about it for, you know, okay, fill in this code block, this stuff. It seems different how we're building agents these days of, you know, sequential tool calling, this that. I guess it's if it's just speed, it's speed. If it's an honest... I could see a world where there's like system one, system two. System one is the diffusion one, system two is auto-regressive. System one is the planner, system two is the executor. I don't know.
Yeah, could be. Maybe it's too hypothetical at this point, right? You know. But diffusion transformer models are difficult to fine-tune as well. So there's also like a point in which how much flexibility... Yeah, I could see a world in which you just have like a very strong agent manager kind of setup and then you have like executors, like diffusion-based executors that do like a specific coding.
Are people fine-tuning outside of, you know, we see a few big companies do, okay like Cursor has a really good consistent or there's a few that have done fine-tuning but it seems like it's not picking up as, you know...
Yeah, so there was this period 2024 I think in which there was like this maybe 2023 like there were all of these fine-tuning communities and I think it's been changing quite a bit over the last two years because models are getting very good out of the box. So as I was saying like for Gemma 4 we had 50 to 60 partners and some of them were like oh yeah we're going to try and fine-tune the 27B model for this vision task and then they were like oh actually the model works too well out of the box we don't need to fine-tune it. Yeah we saw lots of those things so I'm seeing less excitement around fine-tuning nowadays as general conversational models. Yeah. There is still quite a bit of excitement around fine-tuning for specific domains like finance, health care, specific types of data that the model didn't see but as general conversational like just changing how the model behaves you can do most of that via prompting nowadays and in terms of capabilities the models are very good out of the box so it's been changing quite a bit. There's still like the Unsloth people, I don't know if you know Daniel Han and Astro Michael.