Über dieses Video
Your expensive Mac is running local AI at a snails pace for no good reason. In this video, I demonstrate how a free tool called DeepSpine can make 8-bit models run faster than 4-bit ones using speculative decoding. Key Takeaways: - DeepSpine uses a 2bn drafter model to predict text for the main LLM. - 8-bit Qwen 3.8 27bn reached 44.5 tokens a second, beating 4-bit speeds. - Real world speed gains range from 1.76 to 2.6 depending on the task. - Memory overhead is a modest 1.3gb. - Currently optimised for MLX on Apple Silicon.
Why You Should Stop Using 4-bit Models on Your Mac
The era of choosing between AI speed and AI quality is officially over. For months, Mac users have settled for 4-bit quantised models because the 8-bit versions were simply too slow for daily use. That compromise is no longer necessary.
The Performance Breakthrough
Recent testing on an M5 Max with 128gb of RAM has revealed a game-changing tool called DeepSpine. This open source project uses speculative decoding to allow an 8-bit Qwen 3.8 27bn model to run faster than a standard 4-bit model.
In my benchmarks, a plain 4-bit model managed 29 tokens a second. With DeepSpine enabled, the higher quality 8-bit version hit 44.5 tokens a second. That is a 50% speed increase while jumping up in quality.
How Speculative Decoding Works
The secret lies in a small 2bn parameter drafter model. This small model guesses the next 16 words in a block. The massive 27bn parameter model then checks those guesses in a single pass.
Because reading data from memory is the primary bottleneck on Apple Silicon, checking 5 words takes roughly the same time as writing 1. If the drafter is right, you get those words for free. If it is wrong, the big model simply corrects the 1st mistake and tries again.
Real World Results vs Benchmarks
While theoretical benchmarks show up to a 3 speed increase, real world usage with thinking enabled and higher temperatures tells a more nuanced story:
- Coding Tasks: Highly predictable, resulting in roughly 2 speed boosts.
- General Chat: With a temperature of 0.6, the speed increase sits around 1.87.
- Memory Cost: You only need about 1.3gb of extra VRAM for the drafter.
The Catch
Currently, this technology is available as a command line tool and Python package. It has not yet been integrated into popular wrappers like Ollama or LM Studio. However, for those willing to use MLX, the gains are too significant to ignore.
If you have the memory to spare, there is no longer a reason to settle for 4-bit models. The future of local AI on Mac is fast, high precision, and incredibly efficient.
Transkript▾
Both of these windows are running the same model, Qwen 3.8 27bn at 8-bit on the same Mac with the same prompt and the same settings. The 1 on the right finished in just under 26 minutes. The 1 on the left took nearly 38. I have sped this up so you do not have to sit through it. And the 1 on the right actually wrote more, about 43k tokens against 34k, and it still finished 12 minutes sooner. The only difference is a small extra model, about 2bn parameters that Tencent released free earlier this month. So here is the part I think a lot of people will disagree with. If you run 4-bit models on your Mac because they are quicker, well you can now run the 8-bit version faster than the 4-bit runs on its own. You get better quality and the extra speed together. I will show you the numbers and I will show you where the gain gets smaller. Big local models are the good ones, and on a Mac the big ones are slow. On my M5 Max, Qwen 3.8 27bn at 8-bit writes about 15 to 17 tokens a second. That is fine for a chat. It is not fine when the model thinks 1st. On my pricing page test, it wrote 34k tokens before it was done. That is 38 minutes of waiting. In this video, I will explain what this add-on does, show you my numbers at 4-bit and 8-bit, and show you what is not ready yet. It is free and open source. I tested it on 128gb machine. With the add-on, the 4-bit model used about 16gb and the 8-bit model used about 30gb so you can work out where your Mac lands. 1 warning before we start, the speed up is not the same for every test. On the published benchmarks, it is close to 3 times. On my most realistic test, it was 1.76 times. Still worth having, but not what the headline says. And at the moment, you can not use any of this in LM Studio or Ollama. I will come back to both of those near the end. Here is the 1st number and the 1 that I cared about the most. Plain 4-bit, 29 tokens a second. 8-bit DeepSpine, 44.5 tokens a second. That is about 50% faster on the bigger and better model. So on this machine the claim holds. Let me show you how I got there. I started with the same test the community author ran so we can compare. Temperature at 0, which means the model always picks its single most likely next word. Thinking switched off. The same pricing page prompt every single time and 2k tokens of output. Each model runs once on its own and once with DeepSpine. At 4-bit the plain model wrote 29 tokens a second. With DeepSpine, 63. That is 2.2 times faster. The published number was 1.87 times, so I actually did a little bit better. At 8-bit the plain model wrote 17 tokens a second. With DeepSpine, 44.5. That is 2.5 times faster. The published number was 2.77 times, so mine came slightly under but still pretty good. The pattern is the interesting bit. The slower model gets the bigger boost. 2.2 times at 4-bit. 2.6 times at 8-bit. The community author also tested full precision and got over 4 times. I have not run that 1 yet. I will explain why the pattern happens in a minute because it tells you a lot about how this works. It is not free on memory though. The draft adds about 1.3gb on top of the main model at both sizes. So a 4-bit with DeepSpine used about 16gb and 8-bit with DeepSpine used about 30gb. I also wanted to check the same answers claim, so I compared the output with and without DeepSpine. And honestly, it is not quite the same. Both versions start the same. Then at some point they hit a spot where 2 words are almost exactly tied and they pick differently. At 4-bit 1 said ledger and money and the other said ledger and invoice. At 8-bit it was which kind of hyphen to use in self-contained. After that they go their own way. The project says this can happen at full precision. On my machine, it happened at 4-bit and at 8-bit too. The big model still picks every word, so the quality is the same, but do not expect the same text. If you run local models on a Mac and want me to keep testing this sort of thing on real hardware, subscribing is how you will see the next 1. So what is this thing? It is a type of speculative decoding. That sounds complicated, but the idea is simple. A normal language model writes 1 token at a time. A token is roughly 1 word or part of a word. For every single token, the Mac has to read all 27bn of the model's numbers out of memory. On Apple Silicon, reading from memory is the slow part. The GPU spends a lot of its time waiting for data rather than doing sums. Here is the useful part. Checking several tokens at once costs about the same as writing 1 because the model still reads its numbers out of memory once either way. So if someone hands the big model a guess at the next few words, it can check them all in roughly the time it would take to write 1. That is what the small model is for. It is called the drafter, and its job is to guess ahead. The big model checks the guesses in 1 go and keeps every word it agrees with. The 1st word it disagrees with, it throws away the rest of the guess and puts it in its own word instead. Then the drafter guesses again from there. It is a bit like predictive text on your phone. If the suggestion is a word you were going to type anyway, you tap it and save a bit of time. If it is wrong, you type your own word. Either way, the message says what you meant. That is why the quality does not change. The big model still decides every single word. The drafter only saves time when it guesses right. That also explains the pattern from chapter 1. The 8-bit model is slower than the 4-bit 1, so every correct guess saves more time. So what is new about D-Spine? Most older drafters guess 1 word at a time, which means the guessing takes a while too. D-Spine guesses the whole block of 16 words at once. The hard part is making those words fit together because word 7 depends on word 6. D-Spine passes information about each words predecessor along with its layers. So the guesses still follow on from each word. The paper has the detail and I will link it below. Drafter is about 2bn parameters and only 5 layers deep, which is why it is quick to run. On Tencent's own tests on Nvidia hardware, the big model accepts around 5 to 7 of the drafters words each round. On my Mac it was about 4.5. Part of that is the setup. With 4-bit and 8-bit models, the Mac version checks 5 words at a time. So 4.5 out of 5 is the drafter getting most of them right. Tencent added Apple Silicon support to D-Spine through MLX, but there was a catch with this particular model and I think it is worth understanding. Qwen 3.8 27bn is what is called a hybrid model. Some of its layers are normal attention layers. 48 of them are in a different type called gated Delta net. Normal attention layers keep a list of everything they have seen so far. That list is called the KV cache. If the big model rejects some of the drafters guesses, you cut the rejected words off the end of the list and you are back to where you should be. Gated Delta net layers do not keep a list. They keep a running summary that gets updated with every new word. Once a wrong guess is mixed into that summary, you can not cut it back out. You have to take a copy of the summary before checking the guesses and then put it back exactly as it was for any words that got rejected. That is what the community project adds. It is called D-spine hybrid MLX. Version 0.1.0 came out on 9 November from a developer who goes by net projects and it is not connected to Tencent or the Qwen team. It adds that rollback for the 48 gated Delta net layers and it is built on top of Tencent's own MLX code. They also posted M5 Max numbers. That is the chip in my machine, which is a big part of why I wanted to check it myself. So to set up, you will need Python and enough disk space. The 4-bit model is about 15gb and the 8-bit model is about 28gb and the drafter is about 4gb on top. The project installs with 1 pip command and the link is in the description. It comes as a command line tool and a Python package. There is no server. To run these tests side by side, I wrapped them in a small server of my own so my benchmark tool could talk to it just like any other local model. The 1st run downloads the model and the drafter. After that, it loads in a few seconds. So the warning from the start, everything so far was at temperature 0 with thinking switched off because that is how the community benchmarks were run. Nobody uses the model like that. Qwen recommends a temperature is 0.6 and the model thinks before it answers. So I ran the full test the way you would actually use it. Same pricing page prompt, Qwen's recommended settings, thinking on, and I let both models run until they were done. At 4-bit, the plain model average 23 tokens a second with DeepSpine 40. That is 1.76 times faster. It finished 24 minutes instead of 30. At 8-bit, the plain model average 15 tokens a second with DeepSpine 28. That is 1.87 times faster. It finished in 26 minutes instead of 38. So the gain drops from over 2 times to just under 2 times. Still worth having, but not what the benchmarks promise. That is because a higher temperature with the model makes less predictable choices, so the drafter guesses right less often. You can see the same effect inside a single answer. While the 8-bit model was thinking in plain English, DeepSpine made it 1.8 times faster. Once it started writing the actual code, it was 2 times faster. Code is predictable. Once you have opened a bracket, a closing 1 is coming. Variable names repeat. Lots of lines look like other lines, so the drafter guesses right more often. And even at the real settings, 8-bit with DeepSpine still beat plain 4-bit, 28 tokens a second against 23. Quick question for you. Are you running local models on Apple Silicon or on an Nvidia card? Let me know down in the comments. Tencent built most of this on Nvidia and enough of you are on that side, I will somehow try and test it as well. So, what is not ready? Now the practical problem. Right now, this is a 0.1 command line tool. It is not in LLM studio and it is not in Ollama. My little server works for chat, but coding agents need tool calls, and it can not do those yet, so I can not point it at a coding agent for this video. So today, it is something to test and keep an eye on. I would expect that to change, but I would not be building your daily setup around it just yet. So to sum up, DeepSpine is a small, free draft model that guesses ahead so the big model can check several words at once. On my M5 Max, it made Qwen 3.8 27bn between 1.8 and 2.6 times faster, and the big model still checks every word. 8-bit with DeepSpine beat plain 4-bit in every test I ran, 44.5 tokens a second against 29 at temperature 0, and 28 against 23 at Qwen's own settings. So if you have been picking 4-bit models for speed on a Mac with enough memory, you do not have to anymore. And after all that, I realised I have not actually shown you the result, and there is kind of a reason for that. It is because they both look exactly the same pretty much, and that is the whole point is that we're trying to get these speed gains without actually affecting the core model. Now again, designers out there will see a lot of faults or spacing issues and things like that, but remember this is a 1 shot, and in my eyes it looks pretty good. I would just have to do a little bit more work on the design and maybe the code, but this is all Qwen 3.8 27bn out the box. If you want to see the coding agent setup I use with these local models, it is on screen now. Like, subscribe if you want to see more about local AI and Macs in general. Until the next time, keep on vibing.