I Tested Gemma 4 12B on a 32GB M5 — Coding, Vision, Full Stress Test

06 June 2026 · 14:05 · 6,174 views · by Vikramjit Sarkar

Watch on YouTubeSubscribe for the next test

Google just dropped Gemma 4 12B with some big claims — so I put it through a full local stress test on my MacBook Pro M5 (32GB). Coding, vision, reasoning, writing... no cloud, no API keys, everything running offline.

Key numbers from this test

ModelGemma 4 12B (8-bit quantized, unified architecture — no separate decoder for images/audio)
HardwareMacBook Pro M5, 32GB RAM

Measured on my own machines.

Chapters

  1. 0:00Gemma 4 12B just launched — what we're testing
  2. 0:33Quick subscribe note (new channel!)
  3. 0:58Loading the model in LM Studio (8-bit, 16K context, 40 layers on GPU)
  4. 1:55First prompt + real token speed (OBS overhead explained)
  5. 2:28Coding test: a Temple Run–style game in HTML + Three.js
  6. 3:43The hardware + Google's claims
  7. 4:08Running the game in VS Code
  8. 5:00Continue.dev + LM Studio setup
  9. 5:35Benchmarks + unified architecture explained
  10. 7:04Continue.dev agent fails to write code → chat workaround
  11. 8:07Game v2 — honestly impressed
  12. 8:32Vision test: HEIC → JPEG, full page description
  13. 9:43Vision test 2: reading the channel name off a screenshot
  14. 10:10Writing + reasoning test: YouTube niche & title ideas
  15. 11:54Trying the MLX version (not supported… yet)
  16. 12:47Benchmark recap (vs E4B & Gemma 3)
  17. 13:16Next video: Qwen 3.6 on MLX + outro

0:00 Gemma 4 12B just launched — what we're testing

So Google just launched its new model, which is Gemma 4 12B, and it's doing some huge claims. So today we are going to do some stress test of this model. We are going to check its coding, check its, you know, writing skills, check its other skills which Google says it's doing. So let's hammer on this model, and I'm Vikramjit, and let's get

0:33 Quick subscribe note (new channel!)

>> So before starting this video, I request you to please subscribe to my channel. It's a very new channel, and I have [music] seen lots of views and good watch time, but you know, people are not subscribing. So if you subscribe to my channel, it will be helpful for [music] me to bring you new experiment on all the new models coming, and also some tech news. So [music] let's do it.

0:58 Loading the model in LM Studio (8-bit, 16K context, 40 layers on GPU)

So yeah, you can see I have already opened the LM Studio, let us load the model, which is Gemma 4 12B. Okay, this is 8-bit quantized model. You can get four 4-bit quantized model in around 7 to 8 GB, but this is 12 GB model, okay? Now, just because of this context window, it increased the size. So let's go to 16K. Okay, so that it can hold a little bit context, and we have offloaded whole 48 layer on the GPU.

And uh let's load the model first. Let's see, you know, how it was. So we can you can see we have a whole vision. It's a vision model, it's a thinking model, and I have, you know, added this code interpreter and rag UI. So the model is loaded, and let us see the activity monitor. Yes, you can see uh the model is totally loaded totally, and it is using around 25 GB of the VRAM. Now, let's give our best prompt

1:55 First prompt + real token speed (OBS overhead explained)

It's processing. We are getting 3.05 tokens per second. That is the reason is we are using OBS out here. Uh so, it normally gives, you know, eight tokens or seven to eight tokens per second. Uh yeah, see if I can see again I was getting 10 tokens or something like that. Just because it's OBS, we are getting this little token. Now, as the vision we'll give some vision later. Okay, let's do some Okay, let's do some

2:28 Coding test: a Temple Run–style game in HTML + Three.js

Coding. All right, let's ask it to make game. Can we make a game in Gemini 4? Uh I never thought of this. Let's Let's do the prompt, okay? So, make a game. All right. Let's make a game. It will be web based. Web based uh standard HTML in 3.js. Something like Temple Run. Let's see what it does. Okay, while it uh it do its job, uh I have also oMLX installed uh in this laptops and I have also Ollama installed in this laptop. So, on oMLX I have also installed this Gemini 4 which is oMLX model which is made for Apple metal so that it runs faster as well. So, once we do this then we will test the same model here on VS Code. So, we will show you how we can run this model on VS Code and if it's feasible to run this model on VS Code or not. But, uh there's a very big claim from Google. Uh you can see here.

Yeah. So, it says like it is very near to its uh new other Gemini 4 model which are like 31B. So, this is my MacBook Pro M5.

3:43 The hardware + Google's claims

You can see it's like 32 GB of RAM. Guys, again, please do subscribe my channel so that we can do some uh good testing in future. You can see the memory usage is still around 24.8. It's good for tool calling this case. So, we will test everything one by one. So, you can see it's done and it's already it already gave us the code. Uh the whole code on HTML.

So, let us open VS code uh we make a new

4:08 Running the game in VS Code

Folder in the desktop. We call it uh Gemma 4 12B. So, it's just for test. Uh let me open Uh let me make a file index I made it this HTML and this is what I was testing with continue.dev. Uh Gemma 4 12B. Uh we will do it. We'll we'll test it. We'll test everything. But for now, let us test this code for now. Paste. And save.

Inside this folder. Okay, this is the HTML file. Okay, this is the game. Uh okay. It's a basic game it mean but it's quite cool like how you know nowadays the you know uh this AI are doing. Okay, let's stop it.

5:00 Continue.dev + LM Studio setup

Okay, now you can see we have continue continue.dev in VS code and we have this file here. I already configured Gemma 4 12B here on VS code with uh LM Studio. Uh let us see how it was. Okay, optimize this make the blocks as human figure and make

5:35 Benchmarks + unified architecture explained

Better. They're comparing it with Gemma 4 26 billion parameter model and you can see this Gemma 4 12B parameter model is exceeding in uh some core, test but also it is very near to 26B, like 10% difference on life core benchmark you can see here. So, it is an unified architecture by the way. So, you know what unified architecture is. So, normally what happens when you send any image or any audio to a model, it needs a decoder.

All right? But in Gemma 4T B, it do not need the decoder. It directly send it send the file to the model and model processes directly. So, which is faster and which also keeps the size of the model smaller. Okay? So, you can get it from here uh, I'm in face or Kaggle. Uh, it's easier to you know download it on LM Uh, you can see it's already Uh, it's reading the file also.

Uh, we have memory usage of 27GB, which is pretty okay till now. So, we don't have any issue. Currently, because the model size is slow you know smaller and it's having 16 K of context. Okay, it's doing its job. So, let me stop the uh, OBX for a while and let's uh, until it's complete. Okay?

7:04 Continue.dev agent fails to write code → chat workaround

Uh, so yes, it's going to be an hour and failing actually. So, it is doing its work giving talking to us on continue tab in VS code, but it's failing to you know write the code. We can stop it and uh, we can try uh, to put the whole thing uh, in this chat window only. Uh, and let's see if it can the job better. So, that we can copy it from there and then we will put it in this VS code page.

Uh, in this dot HTML page. All right? Let's see. And while it is doing its job, I have all MLX out here. I think it's done. And Yeah, it's it gave a new code. It did some, you know, reasoning. Uh it's a thinking model, so it takes time to do some reasoning. Let me, you know, copy the code and let me replace it, save it, and let us run it.

8:07 Game v2 — honestly impressed

Okay, look at this. Wow, it's it's pretty nice and amazing. It It's actually nice. It's It's It's just 12 billion model and is doing extreme good job. I am impressed. I am really impressed with Gemma 4 12B.

8:32 Vision test: HEIC → JPEG, full page description

This is, by the way, remember this is uh 8-bit quantized model. This is not a 4-bit quantized model, okay? So, it's uh pretty good model, uh you know. Let us load this model let us make a new chart and attach an image. So, we're attaching this image, and this is like this is a GitHub image, okay? This is HEIC image, not a JPEG not a JPEG image, all right?

So, it is HEIC. So, let let us try to open it. Oh, no, it does not support. what we are going to do, we are going to export in JPEG, all right? yeah, let let us test if what, you know, Google is claiming that it understand image. So, let's see if it really understand it or not. So, what can you see? Okay, so guys, you can see it's done, and it actually gave us the whole description of the page, which is correct. And it's nice. Let me Let me try give it a different screenshot, okay?

9:43 Vision test 2: reading the channel name off a screenshot

Okay, let Let us ask, "What is the name of the channel?" Okay, so you can see the thought and it actually did some good reasoning and it gave the channel name I am yes, I am impressed with this model. It's a very small model and the you know, vision is good. So, let us do

10:10 Writing + reasoning test: YouTube niche & title ideas

One more test, all right? Let's see how it writes. So, I'm giving it a little bit complex structure to and tell me what to do. So, let's load up the model. And this time, I'm going to tell it that I do YouTube I tested Gemini 4 and made a video. Tell me niche for the next the titles. I think it will understand. Let us Let Let's see what it does.

It was thinking for 2 minutes 20 seconds and it did pretty good. So, you can you can see on thinking only it gave three four options. You know, I like this option, you know, this option D, development of coding path. And I also like the take head-to-head comparison focus, which is like Gemini 4 versus Lama 3 open source war. And it also, you know, thought like why it will work. And then it provided me the options. Now, let's continue. Okay, this is see it it's already giving me the script, the Oh, it is it is pretty good.

It's pretty good. It's it's good in writing, it's good in This is a great model. It's only 12 billion parameter and it's already doing some, you know, good work. Uh from my end, it's a it's an interesting model. It's a it's a very good model. So, let us test this

11:54 Trying the MLX version (not supported… yet)

Model on oMLX. I already told you that we have oMLX. Uh let's the server is starting, you can let's start with the model, okay? Model manager. So, you can see I have already, you know, downloaded this model before. Oh, we have to load the model, okay? Let us load them. Real LM load failed. I've joined if I not supported. The model 426B supported. Uh this is weird. So, it's a very new model, right? 2 days back it launched, so they might be, you know, uh making this model for MLX version, so it takes a little bit of time. There can be glitches. Let me stop the server. Uh let me quit oMLX for now. So, this is the

12:47 Benchmark recap (vs E4B & Gemma 3)

Uh 204 12-bit 12-bit IT. They are comparing it with E4B and 31B. So, it is in the middle in a sweet spot where, you know, it have the good characteristic of 31B and it is faster as E4B. Uh so, the charts are here. You can always visit Hugging Face and see them or you can also, you know, pause uh the screen and you can go through the chart out here. Tomorrow, I'm going to make a

13:16 Next video: Qwen 3.6 on MLX + outro

New video on when uh 26B MLX, okay? And then Apple MLX version runs pretty well. So, we are going to do it and we are going to do some good coding test because that's a dense model. It's a 107 billion parameter model, and I think it will be a great test. So, if you like this video, please subscribe down below. Your subscription will help me a lot testing these models in different, you know, machines, and uh Uh if if I'm missing something, please, you know, comment down below. I will try to definitely try to rectify them. I will try to do some different test also. If you want to see testing this model in a different way, do let me and um till then, subscribe. Bye.

Related tests