0:00 The chaos recap (what you're in for)
This is what I'm recording at the end of the video. This test is going to be extremely chaotic. in Cline. I can see oMLX is giving 128 K token. I started with testing Gemma 4. 12 B 4 bit. Versus 8 bit. Then, we added Qwen to the rescue. We tried cline, we tried, we continued .dev We tried OML X, we tried LM Studio. And my laptop got shut down because of the huge RAM usage.
Gemma 4 12B is current hot topic right now. So it is out for last 4 or 5 days and people are going crazy with it. So I already did a taste on my channel. Uh, you can see here or here. Uh, you can see those test on Gemma 4, but today we are going to do some uh, Vibe coding test, with Gemma 4 12 B.
0:50 What we're testing: Gemma 4 12B Q4 vs Q8
So I have 2 models, Q 8 and Q4. So we'll be tasting both of the models, like how, you know, quantization work and uh, it's a 4 bit is better or 8 bit is better. So yesterday what I found out on 4 bit, I was getting around 10 to 12 tokens per second. So before starting this video, I want to take 30 seconds from you. This channel is dying.
Just because you guys are watching the videos, you are watching the tests, you are watching. I'm getting good amount of watch hour, alright? I'm getting good amount of watch hour, right? I'm getting that people are not subscribing. So if you do not subscribe, this channel will literally die in some time because, you know, this is what's happening to lots of other channels. They are tasting they are new, but without subscription.
Yes, uh, So please support and subscribe by channel so that I can bring more tasting for you guys. I also have a Windows machine with RTX 4080. So if you want, I can do some, yeah, tasting on those that on that. On that computer also? So please do subscribe. So here we go.
1:48 Setup: OMLX + Continue.dev, building a chat app MVP (Q4)
So we have v s Studio already opened. So you can see I'm also running oMLX, okay? This is having Gemma 4, 12B, IT optiQ 4Bit. oMLX is a very good software for Mac. And you can download all the MLX model, yeah? And I already configured this oMLX with continue. You can see. So today we are going to make our chat app. So we will be trying if this model is capable of making a minimum viable product, an MVP.
All right?
2:22 Q4 builds models, database, auth & chat UI
So let's give it a give it a 1st prompt. So I've given my 1st prompt. I don't think the model is loaded, model is loading. Uh, and uh, let's start the activity monitor. Yes. So we have this 4 bit model, uh, out here, which is only 8.9GB and I hope it do not exceed 30GB of RAM uses. So it's thinking now, let's see what happens. So you can see it already gave me the result.
It's hardly took a few minutes. The whole structure is ready. Now it's asking what to do next. So let us ask to do users. User Model. Let us start with creating user models first. So this is actually quite fast, right? So every few minutes it's just creating things. Yes. Create message model or setup database configuration. Okay, create message model. Let's see how much time it takes. I'm not going to stop the video for now.
It's just 4 bit model. Remember, it's 4 bit quantize model from Gemma 4 12 B. And we have minimum usage of 26.76 GB just because we have Chrome open, and I think you, I know you cannot see that OBS is also opened. So OBS alone takes around 2 to 3 GB of RAM. And also I'm recording at the same time. So you can see a little bit of surge here.
And it's creating the model. Let's see. And we have this settings, this photo settings. Let's see, that talking generation, or GPU. It's fair enough. I can also open the web dashboard. So, here we go. So, all right. Now, message model is created. Now, no, uh, let's keep, one is doing one chat only. Now, create, database. Database, now create. Now create Auth, we now create auth screen. Okay, let's create the auth screen first.
Okay? Okay, it's done. Now it's asking what to do next. So I would suggest create chat UI. Okay, so far. It's going good. It's okay. Let's see what happens next. But I am, I have started to doubt, because in view, we can see it's auth dot HDML file, and there's nothing in public route, SRC, test, details. Okay, I, uh, I'm not sure that what kind of, uh, what kind of framework it will be using, but let's see how it create the chat UI and what kind of page it gives, then I think we can tell it to change the, you know, coding framework or something like that.
Okay, so it's done with the chat UI. It took a little bit of time to do. Now, next we can do the back end setup, okay? Let's do the back end setup. And then we can do, you know, database integration, and then we can do user management. Okay, I have sent it a prompt. It's loading the model. Now let's wait and watch. Okay, there's one thing I want to show you guys.
It gave a command. P-install plus. So it was installing. You know, globally, but it failed. Then, automatically, it generated new command. But is installing Python on virtual environment? So it is that understandable? Okay, so database structure is created. You can see, uh, It's saying that It's already created everything. So now what we will do will be doing front-end integration, and then you are UX improvement of that.
So this is important right now because front end and APIs are important. So it's saying it's done. Let us run it then, okay? Run the, uh, backend. It had some hiccups, but it's automatically fixed itself. So, Let's run the back end and see if it will run or not. So finally, the app is running after a little bit of effort from my side, and let me try to run the app.
Okay? 1234, A, B, C, A, T. Line up. Sign out that I'm 4 week. I Let's say hi Hmm. Login. Login item, perfect. Okay, so. Yeah. So basically it can code. So, it is my verdict again, so basically it can code. It's looking somehow like WhatsApp, you know, design a little bit. Uh, Yeah, uh, this is the login page. This is the check page. But, you know, it can code, it can help you if you are a new user or, you know, doing small task.
It can actually do things, but it's not that capable, you know, that it will, uh, run big structure app and and keep in mind keeping the memory that, uh, what are the context and how it should do. But whatever it is, it's pretty fine. It's not that bad, okay? Um, yeah. So, uh, next up, let us try with ol lama or LM Studio, and uh, I've tried in continue or Continue.dev right now.
9:05 Switching to LM Studio + Cline (Q8)
So we'll be testing the same thing on LM Studio with 8 bit quantize model on cline Let's see if cline can do a better job with an 8 bit quantize model or not. All right? Okay, so now we have created a new folder called free underscore chat, and here we will be working with cline. So I have already connected Gemma 4 4, 12B from LM Studio. He's the model.
You can see, just a second. Okay. Here is a model you can see. It is already connected. Now let us keep the prompt and let us start with the bigger prompt, okay? Like, uh, make, uh, chat app with, uh, uh, Dashboard. And that, Screen, and database, too. Okay, let's see what I do. So we started thinking and Let us open the developer. Logs. So you can see it's already loaded, and it's processing the prompt, and there is the member users.
So I will be stopping this OBS one now so that it goes faster. See how, how, let's see how it handled the work.
10:46 Cline gets stuck in a loop + RAM pressure
Okay, so it's been hours. So we started around 4 o'clock is like 8:30 right now and you can see what's happening. is going on loop, okay? It's just going on loop. So, yeah, it is it is working. It's taking time. It is on loop, taking a lot of time, thinking, and it's just going on, going on, going on. In cline, what you can best, you can see, is that, you know, this context window, total context used, you know, total remaining context, total users.
And yes, cline continues just like that. Where, where, I was thinking to change the model. Like, if I don't know if it will work or not. The context is already fitted to Gemma four. Now if we change, sometimes if we change the AI model, it do not work, okay? So let me try with Owen 3 coder 30 B. Let's see, if it can, you know, complete the world or not.
Let me eject it.
11:36 Calling in Qwen3 Coder 30B
So I've ejected the previous model, and let me resume the task with Qwen 3, Coder 30 B, and let's see if it can finish the work or not. I'm stopped recording right now because you can see, it's the memory usage is already 27, 28 GB, and let me stop it for now, and we also have a swap memory of 2.7 GB. It is huge. So, whatever the outcome is, I'm going to show you in some time.
Okay, so I have to unload the model, uh, and I am starting with a new session and I will just give it a small prompt finish the app. It looks small, okay? This might look a small prompt, but it is not. So basically finish the app is a very big prompt because the AI will now go through the whole app structure, everything. It will see and search what has what is finished, what is not finished, and then it will continue from there.
So let us, you know, send the prompt. Let's see what happens. So you can see the model is loading. I think the model is loaded completely. And we are having some error. With the token another model, this larger context, let the work. Okay, so the problem is with that context level. So I have to change the context length, then first. Uh, Qwen 3 coder Okay, see. The context length is smaller than what is there.
So let us give, uh, around 17,000 context length. Now, let us resume the task. I think it will work now. This context length is 16.9 K and there it was around 8 K. So let us see the developer console out here. Okay, so it started working. Uh streaming response. And you can see the memory went up to 28 GB and it will go up to 30 GB or something like that.
So better I will stop the recording right now and once it's complete. I'm going to share like.
13:39 Hitting the 32GB RAM wall
Okay, now we are seeing one big issue, that the model is that the model is crossing, you know, 30 GB, 32 GB of RAM, and, uh, the model is getting ejected, and again, it was getting Fetched by cline, but the problem is that it is hitting all the files one by one, you know, again and again, again and again on the loop. So I think this is not a feasible option.
What I will do, I will close cline right now. Totally, wholly, and I will try with Continue.dev okay? So, uh, and continue.dev, I have, uh, this few models, I have 30 B also, one quarter 30 B, can you see? Okay. So let us try with qwen coder 30 B again, let me eject it from Lm studio. Let me. Okay. Oh, this was from the previous chat, okay?
So let us start a new session. finish this app. So here we can also understand if continue.dev is better than cline or not. Right. So we will be having, you know, rather than doing only Gemma 4, 8 bit versus Gemma 4 bit. We started doing, you know, comparing it with Qwen Coder 30 B, and also cline and continue. Dev on VS code. Let's see what happens.
15:06 The MacBook restarts itself (out of memory)
So something weird happened. My computer got restarted because I ran out of memory and extreme swap uses. So, Yeah. So it's a total failure of this, you know, coding task. So, local model can code, but, uh, probably maybe... But today we are going to finish this app, like we started it, we'll finish it. So how will you finish it? We will start. we will try it. We will try with oMLX.
All right? Let's see what happens because oMLX cleared out the cache. I did not, you know, go through the whole ram and system. Yeah. Let's see. Let us close the next studio first. Okay, with the studio. Yeah. Now let us start.
16:02 Back with OMLX + Qwen
Oh, my next. Oh my god. oMLX. I told you before, see, oMLX is a good app. It runs nicely and you do not, you know, shut down your computer suddenly. But yes, our PC got shut down because of this high user, this is something I'm new to being this happening. Although we have here, GPT-OSS 20 B, and we have Qwen 3.6 27 B. So as we are going with qwen models, like let us load qwen models only, okay?
So again. Okay, so finally we are here. Okay, there was a problem with the, okay, there was a problem with the Config file and yeah, I made a big mistake. Uh, rather than, you know, commenting out this whole section, I commented out only this section and this line I left. So it was not detecting. Now it is detecting. So now as it is detecting, let us try to tell it.
Okay? Fix this. Let's see what happens. Okay. I am going to stop recording right now, again, but it's still oMLX. I don't think it will crash our MacBook Pro M5 32 GB. Let's see. Okay, this session is getting very chaotic, okay? Like, we are doing our chaotic taste, is extremely chaotic test with the AI models. Let us see.
17:30 OMLX + Cline: 128K context via SSD cache
Okay guys, you need to check this. I have configured, you know, oMLX with cline Right? Can say cline. Now the best thing. in cline. I can see oMLX is giving 128 K token. How? Like, it's, this is, this is, this is, this is the best thing I've ever seen, like, this is, I wonder how. So basically what it is doing. oMLX have this capping first, okay? So this is the, you know, best software you can use for, uh, rather than, oh, llama or LM studio right now.
And, uh, this is, this is really awesome. See, you'd have a capping of, you know, soft and hard. RAM usage, and can you see this ssd? So it's actually keeping some memory in SSD, which is not swap memory, by the way, okay? So it's keeping some cache on SSD, which is around 92 GB. So that it can handle 128 k tokens. Easily. And you can see the cline is working well right now, it is going through all the files, all the files properly.
I, let's see what happens. It is 27 B model. It is a little bit slower, you can see. But yes, it is doing some great thing. So we are currently having, you know, cache rate from processing token of 189.4 tokens per second, right? Uh, it is qwen 3.6 27B, 4 bit. This is already a good model. And you can see the RAM is still on cap. So it is going to 29 GB, 30 GB, then is, again, going back to 26 GB, uh, yeah, 27 GB.
Let it continue then.
19:24 Finishing the app + results
So, here these guys, uh, it's 10 o'clock now, and I have spent my entire afternoon evening, and it's 10 o'clock at night, and uh, it's finally done. Uh, as you know, we started with this cline and oMLX and we got a cache We got a context cache of 4.3 GB, which is around 222 cache tokens. Uh, this is total pre-field tokens. Okay. Let me clear it out.
Okay? Uh, here, here, the app, uh, where's the app? Okay. There is a chat up, you can see, it's, it's good. It's okay. I made a smoke test. Hi. See? It's coming, it's working.
20:17 Verdict & lessons for local coding
What I found out that if you are working with a small model or local LLM, try to give, you know, small context, I was being crazy and, you know, giving out so many contexts, you know, big, big context. But, you know, this this was, and this also proves that somehow, qwen is better at quoting than Gemma 4, 12 B models. But still, Qwen is like 27b model, whatever we tried, qwen coder, a 30B model, we tried, and, uh, gemma 4 is also good.
Gemma 4, uh, Q 8, or Gemma 4, Q, 4, Q, 4. They both are good models and you can use it for tool calling, small coding tasks or autofail. But yes, if you want to do long coding tasks with Gemma 4, I would suggest, think twice, use a better model, a bigger model, you can go for qwen, you can go for, uh, go in 3.6, 27B, with Q phone model, a 4B quantize model also.
I use Q4, like 4 bit context model and. I can see the result. But yes, you can quote locally with local AI, local LLM. You just have to choose right tool, and right model. See, I could have tried aider, or I could have tried OpenCode. But I wanted to give it, uh, Agrees. You know, I want to make the test hard. I want to, I wanted to stress these models, how much it can go.
Also, I wanted to know how much this MacBook M5 can handle.
22:04 Wrap up
So here it is, guys. This is the video. And I hope you like it. If you are still, if you like this video, please do subscribe. Again, I'm going to tell you that do not let this channel die. All right? Uh, till then, bye. Have fun.


