0:00 Huge news: Apple officially backs local LLM vibe coding
This is a huge news. Apple have officially announced on their website and their official Apple developer YouTube channel that they are supporting VIP coding on local LLM on their Mac. They also showed us how MLX work and also did some VIP coding on Xcode directly from local LLM model. So we are going to test them out today. It started working on the Apple uh it was using Java code. Uh okay save.
Let me click on draw. Okay, let's >> before jumping on the video, I want to thank you guys for supporting me and also please subscribe because if you do not subscribe and like if you like this video then this channel is going to
0:39 Xcode's built-in chat / agent window
Literally die. So you can see I have already opened Xcode and I created a project called iPad test. Okay, so I I created iPad test but you know I will be testing on uh here on the canvas. So you can see that you know Apple already gave a chat window here on the left side. So you can see the project and on click on here on this start thing you can open the chat window. So now we'll see how you can integrate the local model right you can click here on the new chat and you can see the agents are here you know there chat chat setting are here. So click on any agent from there and you can see this whole agent uh preference dialog will open settings will open. Now
1:14 Adding LM Studio as a local chat provider
You can add a chat provider from here. So what I will do I will add a chat provider you know locally hosted. So I have already opened l studio. You can see where is l. Okay, you can see l studio is there. So it's reachable. I have turned on server. Uh so I will take the link of the l studio and API key optional API key already is there 1 2 3 4. So let me add it. Okay. So this is the local agent which I have already added. Now you can see like as I as we added the LM studio, you can see we
1:45 The local models available (Gemma 4 & Qwen 3.6 QAT / MoE)
Automatically got all these AI models out here. Okay. We have JMA 4 12 bit quant Q80. Okay. We have Java 4 26B, A4B, Q80. Now we will I will tell you later like what is a Q80 model. I have other models also like Qwen 3.6 27B. We have Qwen 3.6 35B. Uh so let's try to load the model from here. Okay. So let's test 3.6 35B A3B. Why we are testing
2:09 The real test: 32GB M5 Pro vs Apple's 128GB M5 Max
This model? Because on the Apple video they were testing those models on on the max out M5 MacBook Max. Okay. Now Apple on that YouTube video they have showed us whole working protocol like how it works, what is MLX, how this AI loop works on the MLX and the main important fact that they were testing on maxed out M5 MacBook Pro Max which is 128GB. What I found out on their video but here we have M5 32GB and let's see if M5 32GB M5 Pro MacBook Pro 32GB can actually run the local model via Xcode. So let's see how it works.
2:46 First prompt: build a To-Do app with Qwen 3.6 35B (MLX)
So we already have loaded coin 3.635 BA3BA and let's give it a prompt. Okay, let's make an app. Okay, uh create an app for todo list. It's a simple app, right? So let's see if it works how it works and also if the model Okay, see the model is loading right now. We can also start the activity monitor and remember uh we are also using OBX studio right now here. So it be a little bit you know late to give the answers. It can lag a bit but fine let's see how it works. All right we have 32 GB RAM unified memory on this MacBook M5 Pro and it's still loading.
Okay the model has already been loaded. The prompt is processing right now and it is an MLX model. All right this is an
3:29 MLX model breakdown (4-bit, MoE, vision, tool calling, reasoning)
MLX model. You can see so and 4bit quantized and so it's a mixture of expert model. It have vision capability tool calling and reasoning also. Right. So it's it's already uh started calling. And here it is. You can see the RAM usage right now is almost 30 GB because I'm using OBX Studio. And you can see you know this is a very cool design. You can see you know how it's generating on the left side is you know it's uh bottom left. You can see it's it's glowing.
It's nice. Apple always does a good job with their UI. But let's see how this coding works. Very importantly if you are liking what I'm doing right now see I do honest test and honest review. I do not show something which you know people do not people cannot try by themselves. Okay, at least I'm somewhere in the middle I believe. So if you're liking this kind of content, please do subscribe and like the video. Let's see what's happening. Okay, it's already started generating tokens and you can see how many tokens is generating. Let me see. It's it's giving quite fast. All so this is how the tool call happened.
Okay, here on activity monitor you can see we already got swap memory use of and uh total memory use is around 30 GB right now. Uh I don't want it to crash because it's running right now. I literally do not want it to crash. I think it's quite fun. Let me stop the video you know OBX for a little while so that it get done smoothly fast because OBX itself takes around uh 2 3 GB of uh this memory unified memory. So let me stop it so that we can push something here. So guys you can see as I have stopped the OB now the token generation is going too fast right this is too fast now let's see how much time it takes you know to generate the whole context of our context what we have given here so
5:12 MLX update + the KV cache / unified memory / SSD deep dive
According to Apple if you are using Ollama or LM studio you are already using MLX and yesterday we got a new update on MLX on Apple devices and after the update something you know great happened so you can see here the memory the unified memory is not getting crashed like not getting overused boost. So I have 32 GB of unified memory and this model alone is of 20 GB. So with context and everything it can go up to 28 GB or 27 GB. All right. And also I am running uh this Xcode and OBX Studio uh and LM studio UI also is there. So it's around 30 GB you can see right now but it is not exceeding that it is not crashing it. And the I I'm very much trying to understand where the context is getting stored by context I mean the KB cache.
So KB cache itself takes like huge memory unified memory and seriously I want to know where the KB cache is getting stored if it is getting stored on the SSD itself because I think it is getting stored on the SSD as we are getting a swipe memory of 2.616 GB but this is a very less swap memory. All right not how the KV cache KV cache should get stored. So I think the KB cache is getting stored somewhere in the SSD. It is just working like oMLX but uh trust me L studio is far better. I was using oMLX before but right now after the update of the new MLX uh it is quite faster quite good and let's see how it happens. And we have already generated 10,000 tokens here you know. So I'm 100% sure that KV cache is on the SSD not on the unified memory. So guys, this is a very good thing. You can run this kind of model without getting your system crashed on your Apple right now. And if it works good, I believe we are reaching somewhere where you can do local LLM V coding on your Mac on your local machine without your data leaving your local environment. It started good but it
7:03 First attempt fails (LM Studio fetch error)
Failed. Let me show you. So we have this LM studio. You can see it's ready. And uh here so here you can see the request could not be completed. So I checked here and I saw uh it's failing to fetch command from LM studio but we already saw the L studio was running perfectly and it was generating tokens but I don't know what went wrong. So I will be doing a little bit of research right now and let's see how it was and if it does not work then we'll be try to test JAMA 4 because on the Apple video because on the Apple official video they were testing JMA 4. All right. So we'll be doing JAMA 4 also. Let's see like maybe Java 4 can work with Xcode. If you have noticed that they were doing JMA 4 with Xcode and Coen 3.6 with OpenCode, right? So let us try that also. Okay,
7:49 Asking Claude for help + pre-warming the model
Let me change it a little bit. So I asked for some help from Claude. Uh so Claude is saying that we should load smaller model uh because uh it taking so much context so and so blah blah blah which is not right because we are using MLX. Claude can be right but I don't think it is right this time. Okay. And uh they are saying like to pre the model. Okay. Then try on export. So yes, let's going to let us pre the model and try on export. Also it said to you know run this to see the server respond. Yes, we are getting the response and that's why all the models are showing here right. So okay let's let's load the model. Yeah I think the model is already there you know loaded. So let's go to chat. Let's do a chat you know new chat.
What? What? Okay, let's eject the model
8:36 Ejecting, reloading, and bumping the context window to 128K
So model is ejected. Uh let's load the model again. This was the model coin 3.6 35B A3B. Let's load it. Okay. So, oh it can be know the context window can be also a reason but we are giving 20,000 context. I know. Uh increase the context to 128K. Okay. Uh can we go see what is the Okay. Let's let us load the model. Okay. Let us try to load the model. Let's see what Uh and let's stop the H lighting. It's okay. It's loading. Let's see. Activity It's 20 GB, 22GB, 25 GB, 27 GB, 28 GB.
No, we are not. We are going to crash. Please don't crash. Please do not crash. Okay, the model is loaded which is 26GB and we are getting SW 7 GB. Okay, let's say hi. Hi. We said hi. Hi two times. Okay, let's see what happens. Okay, remember this is also running on the background because uh OBS. Okay, it's giving the input uh it's giving the output sorry. So it's thinking it's a thinking model.
Uh let's see how much time does it take to give the output. Okay. So, it is giving us 21.7 seconds. And let us try this again. Okay. This time you have increased the uh token context window. Uh let's see how it works. All right. And I'm going to stop the OBS right now because it can get crashed. If it get crashed, I'm going to make a video of it also and show you. Uh let's play do not get crashed. All right. I'm stopping it right now. Okay. So, I'm excited. It
10:19 It works! The To-Do app is generated and tested
Took few minutes. Not a few minute, a minute or two max. you know I after I close the ux and it generated a contest so yes I think you have to warm up the token or you have to you know increase the context window uh and you can see the swap memory is at 27 GB right now doesn't matter it created the app this is nice it it already created a to-do app and you can see it is looking so nice and uh let me try it okay it says that it's already created list to to display all task. Add task by tapping plus plus button by tapping the plus button to open a sheet. Toggle completion and delete. Okay, let's let's try. Okay, so enter a new task. Uh test save. Let's enter a new task. Shopping and save. Okay, now let me see how Oh, nice. You can see if you click here it is it actually did it. Oh nice. So guys localm now can code on your Mac. I'm going to try some more cool feature in this tudo app. Okay especially that on
11:37 Prompting a drawing feature (PencilKit)
On the YouTube video they showed like they were making some iPad app you know drawing app on iPad. So let me try make an app in this todo app only where you can draw something also right on the to list. Let's let's see if it works or not. All right, let's let me try it. so uh uh add one more feature on tap plus button new to-do or draw on tap on draw.
Uh new drawing page opens. adds as drawing app. Okay guys, this is a big prompt and if it can do this I will be convinced that you can do local coding and guys you are making an app an iOS app for iPhone in local AI. Let's try it guys. Okay, let's try it. Let me hit enter. [snorts] I hit the enter and it's time. It started and it's time to stop recording. If you're also having fun with this video, liking it, please do like and subscribe, guys.
12:56 Hitting the context / memory error again
Again, we hit the same problem, okay, with this context. Uh, it's saying, you know, conversation output internal error. Uh, blah blah blah blah blah blah blah blah. Let us try to see, you know, why this is happening. Uh, it is there. It's ready. Let us text high again. uh the model is ready. Model is there And it's taking weirdly too much time to load this time. I have you can see I have you know 120k context window out here. Uh let me stop it. Let me eject it. Okay. Let me load the model again.
Uh go to server. Yeah. Eject. Uh let's load the model again. 3.5. Okay. Load. It's loading. Again, I have sent the request. It says it's processing. Shall I say hi here? Hi. It's it's processing here too. Uh oh. Oh, this was bad. You know, can you see it's like it we already hit the red memory. It will be slower I believe this time because we are using you know two prompt at the same time one from export and one from here and uh also um uh the memory is around 30 GB right now okay it gave it gave 10.9 token it's fine and it's around 1 minute it took 1 minute to you know give the answer because of there are so much system pressure so I think this is fine uh normally it give 40 tokens or something like that per second uh let me stop the OB studio and let's wait you know for the whole thing.
14:43 Switching to Gemma 4 QAT (the model Apple used)
Okay. So last model failed qu and I have already loaded JMA 4 26p A4B QA. So what
14:52 What is a QAT model, explained
Is a QA model? Uh so I was talking about QA model right. So Q model are quantization aware training version. Okay. Uh so what it does? So it aims to keep the quality close to B60 model. All right. So we already said hi to this on the LM studio and it generated tokens very fast like 23.04 token per second. It's a 16 GB model and uh I have added it on the Xcode because remember on the YouTube video of Apple they were using JMA 4. Okay started I think it
15:25 Gemma 4 running the agentic loop inside Xcode
Started working. See it started working on the Apple. It was using JMA 4 uh on X code but they were using M5 MacBook Pro Max with 120GB or maybe 64 GB RAM and this is only 32GB unified memory. All right. But if it was I think it works. See last time also it worked. Okay. But with some context reasoning or whatever it is, whatever may be the reason, it did not able to generate uh twice. But on JMA 4, it is already started working.
And uh I think now we can rely on local AI by coding. It's taking a little bit of time. You know, you can see three results are there. Uh it's already doing some tool calling and so and so. Uh let me go to the server once. Yeah, it's still getting token. It already called two tools. Okay. Uh so that's there are two generations out there and uh let me close this. You know intelligence is already added. So it's quite fast. If I stop this OBX studio, it will be more faster IP because you know there is OB CPU and RAM uses going on. Let me close it and let me see know how uh this work. It's searching the project because it's it's currently understanding the project view what's there was not in the project and then it will give the full context on the AI and then the AI will start generating you know the code. All right I'm stopping the OBS right now. So it has already started generating. It took
16:51 Apple's orchestration + MLX loop calling doing the heavy lifting
Time around 10 minutes of time but it started generating. I have generated already you know the code right now it's starting the canvas view. Okay. So it's code actually calling the tool via AI models. Okay. And this is a good sign. This is a very good thing. Now you can see the you know how beautiful it looks when it uh the Apple intelligence code it. Okay. And it is not only uh the local AI model. It is also the Apple's orchestration. How it handles the model? How it gives the context to the model and how it you know works the tools of export. Okay. And also as they mentioned that MLX right now does agentic loop calling right. So it is doing loop calling. So it already understood what's the whole idea uh like iPad drawing app. So it is using pencil kit which is also from Apple. So it is updating to item updating to store creating canvas view and also updating content view.
Let's see how it works. Okay we'll test
17:53 The PencilKit drawing app gets built
It obviously. Let it get finished. So it is done and here is the app. You can see on my screen. Uh let me add new task. Uh draw save. But I'm not understanding where is the drawing thing. nice. Let me write something. Hi sketch. Okay. Okay. Let me open the iPad view. Uh 11. Okay. Here you go. This is the iPad simulator. Click on here. Click on draw. Okay. Okay. It can sketch now.
Okay. No, you cannot sketch. It's showing sketch. Okay. I'm unable to sketch. So, let me see if it can do bug fix also. All right. So, this is a bug.
18:38 Bug fixing attempts (6 tries)
Okay. Let me see if can do bug fix also. So, it's still Java forward. So, when drawing opens, I can't draw on on tab. fix it. I have given it a new context and let's see if it can draw or not. Okay, if it can do actual bug fixing or not. So, it did fix the bug but we got some error. Okay, we got some error out here. Missing argon. Okay, generate.
So, I give it the error modules. We can also generate from here. So, we generated the whole thing and let me see if we can do something out here. Let me apply it. Okay, let's not fix thing. Let me apply it. Okay. So, trying six times. All right. Uh it was failing. It was failing. It was a small thing uh small code error. Then I tried inbuilt charge GPT. So yes,
19:37 Falling back to Xcode's built-in free ChatGPT
Apple have inbuilt chat GPT uh coding model uh inside this exponent which is free and you can use it for many things. You can also use Apple native Apple intelligence for this kind of task. And it built and you can see it's starting now on the iPad. iPad is turning on. So
19:57 Final iPad app demo
Here we go. This is the app. Uh so it built uh to app. I opened it on the iPad simulator. You can see I can create a todo here like draw. Okay. Save. Let me click on draw. Okay. Let's see. Okay. Okay. I still cannot draw because it's ignoring the command and actions. But I think it can be done by Apple Pencil or something because this have pencil kit on it. Uh so yeah, so I need pencil Apple pencil to draw it. But yeah, it works. So guys,
20:30 Verdict: can you rely on local LLM vibe coding on Mac?
You can code natively without code leaving your MacBook on uh Xcode. You can make Apple iPhone or iPad apps by board with coding and it's quite awesome. Uh so we have tested JA 4 and coin 3.635b both coin works pretty well honestly and also Jima 4 works nicely in this export Apple intelligence. So that's for today guys and uh that's for today guys. If you like this video you know please do subscribe like share and comment down below if you want to know or understand anything how to set up uh Xcode with your local L model uh if it will work on your 16 GB MacBook M1 or not or uh if you are using any Windows computer with uh RTX Nvidia uh graphics card. So just let me know and comment down below. And
21:22 Outro
That's for today. I'm Vicid and bye-bye.


