Your Ollama is probably running at half the speed it could be on your Mac.
About three weeks ago, Ollama started routing certain models through Apple's MLX framework instead of the default engine. Same model, same machine, roughly 2x faster. But it's not automatic. You need to pull the right variant.
MLX path: ~78 tokens/sec Default path: ~36 tokens/sec Same model. Same prompt. Same M3 Mac with 128GB.
━━━━━━━━━━━━━━━━━━━━━━━━
WHAT YOU NEED • Ollama 0.19 or newer • Apple Silicon Mac (M1/M2/M3/M4) • Look for tags with nvfp4, mxfp8, or mlx-bf16
HOW TO FIND MLX MODELS The Ollama models search page doesn't index MLX variants well yet (I've pinged their team about this). For now, check the Ollama MLX blog post or search "Ollama MLX [model name]" on the web.
━━━━━━━━━━━━━━━━━━━━━━━━
TIMESTAMPS 0:00 Ollama just got faster on Mac 0:39 Why MLX matters (vs llama.cpp) 1:02 How to find MLX-supported models 2:04 Pulling and running an MLX model 2:54 Verbose mode: 79 tokens/sec on M3 3:24 Same model without MLX (the slow path) 4:14 The speed gap, side by side 4:37 Benchmark repo to try yourself 4:50 Wrap up
So if you're running local AI models on a Mac using OLAMA, there's something you should know about.
About three weeks ago, OLAMA got a lot faster on Apple Silicon.
Apple has this thing called MLX, it's their own framework built for Mac chips,
and OLAMA can now use it for certain models.
The catch is, it's not automatic.
If you grab the right version of a model, you get the faster MLX path.
If you grab the default version, you stay on what OLAMA was using before.
It's noticeably faster on my M3.
I'll show you exactly how you can set this up on your machine in like 90 seconds.
Quick context.
For most people running OLAMA on a Mac, you've been on LAMA.cpp under the hood.
That's the engine most local AI tools use.
Works on Linux, Windows, Mac, everywhere.
It's solid.
But Apple has their own framework called MLX that's tuned for Apple Silicon specifically.
And OLAMA just started routing certain models variants through it.
Here's how you can find the right model to use on Apple Macs.
The easiest way is go look at the OLAMA MLX blog post which is on my screen right now.
They list the models that have MLX variants.
I'll drop the link in the description.
Quick note though.
If you try to search for QUINMLX or QUINNVFP4 directly on the OLAMA models page,
you won't find the right ones.
You'll get a bunch of community uploads instead.
I've already pinged the OLAMA team about this and hopefully they make it easier
to discover the MLX variants moving forward.
For now, the blog post is the source of truth.
If you don't want to read the blog post,
just web search for OLAMA MLX plus the model you want to run in the future.
Like OLAMA MLX QUINN 3.5 or QUINN 3.6.
You'll find the specific tag pretty quick.
For example, if I search for QUINN 3.6 MLX, I do see the 3.6 MLX version here.
But for some reason, this is not indexed on the OLAMA model search yet.
For this specific video, we'll be using the QUINN 3.5 MLX supported model.
And once you have the tag, you just pull it and run it like normal.
You may need to update OLAMA to version 0.19.
And OLAMA will figure out which engine to use based on the tag itself.
For the curious, anything with NVFP4, MXFP8 or MLXBF16 in the tag runs on MLX.
Everything else run on the old LAMA.cpp path.
Let me actually pull one and run it.
So I'll just say OLAMA run.
Okay, so this is running on my Mac.
And as you can see, it's super fast.
It's running on the MLX backend on my Mac M3 with 128 gigs of RAM.
If you use the verbose flag, if you say something,
you'll also get these additional metrics like duration.
So the verbose gives you the actual decode rate at the bottom, about 79 tokens per second.
Alright, so that's the actual tip.
If you're using OLAMA on a Mac to run local models, find these MLX supported models
and use them to get 2x the speed.
Now let me show you the same model without MLX, which I have right here.
The QUINN 3.5 35B A3B.
So what I'm going to do is say OLAMA run this model with verbose.
And if I say hi, you know, I can see that the text is coming out slower than the MLX.
And feel free to go back and watch.
The MLX was a lot faster, but I'll also show you the numbers that
come out at the end to prove that this is way slower than MLX.
So as you can see right here, the eval rate earlier on MLX was about 78 tokens per second,
and this is less than half, 35.96 tokens per second.
Same model, same machine, about half the speed.
So that's the gap, easy to see.
So if you're running local AI models on a Mac with OLAMA,
go grab the right tag for whatever model you use, and you'll feel the speed up right away.
Now, just a quick note, not every model supports the MLX versions.
I've only seen the MLX versions on the Quint 3.5 and Quint 3.6.
Hopefully that will change, and moving forward, all the models will get an MLX variant.
If you want to run the benchmark yourself, there's a companion GitHub repo for this video.
Link in the description.
Has the exact model tag, the prompt I used, and a small script to capture the numbers.
Clone it, run it on your Mac, and drop the numbers in the comments.
If these videos are useful to you, subscribe.
Check out my other local AI and LLM videos on the channel.
If you want one-on-one help, you can find me at cloudi.io slash meet.
If you have anything else that you want me to cover, please let me know in the comments.
I'm diving deep into local AI and LLMs, and I would love to make more videos for you.
Thank you for watching.
I'll see you in the next one.