MLX vs GGUF on a Mac: six myths, and which file to download
MLX is Apple's machine-learning framework with its own safetensors-based models; GGUF is llama.cpp's single-file format, running on the Mac GPU through Metal. Published tests show MLX usually writes answers faster, but reading the prompt can flip the result, '4-bit' means 4.5 bits in one and about 4.9 in the other, and GGUF has about 7.6 times more models on Hugging Face.
On this page
- Myth 1: MLX is a file format, like GGUF
- Why a Mac can load big models at all
- Myth 2: a 64 GB Mac gives the GPU all 64 GB
- Myth 3: tokens per second is one number
- Myth 4: MLX is always faster
- Myth 5: 4-bit is 4-bit
- Myth 6: there are no MLX models
- You rarely pick the format by hand
- Verdict: which file should you download?
- So where did the other 54 tokens a second go?
In one published test on a Mac with an M1 Max, the speed counter said 57 tokens a second for MLX. With an 8,500-token prompt, the answer actually arrived at about 3 tokens a second of total wait (famstack.dev, March 2026). The counter wasn’t wrong. It was timing only the writing, and 94% of the wait was the model reading the prompt.
That one test explains most of the confusion around “MLX vs GGUF”. The two names aren’t the same kind of thing, the speed you see isn’t the whole speed, and “4-bit” doesn’t mean the same number of bits. Here are six common myths, what the docs and published measurements say instead, and a verdict on which file to download.
No benchmarks were run for this post. Every number comes from project docs, Hugging Face, vendor spec pages, or other people’s published measurements, linked next to each one and marked “as reported” where they are third-party tests.
Myth 1: MLX is a file format, like GGUF
MLX is “an array framework for machine learning on Apple silicon, brought to you by Apple machine learning research”. It’s an engine, like PyTorch or llama.cpp, not a file. Its language-model package, mlx-lm, loads models from a folder: weights in safetensors files plus a config.json. In mlx-community/Qwen3-8B-4bit that folder has 11 files, and the config says "quantization": {"group_size": 64, "bits": 4}.
GGUF is a single file made for llama.cpp (see our GGUF explainer): weights, tokenizer and metadata in one place. On a Mac, llama.cpp runs it on the GPU through Metal; its build docs say “On MacOS, Metal is enabled by default.”
So the real comparison is engine against engine, each with its own way of packing the numbers.
Why a Mac can load big models at all
Apple silicon has a unified memory architecture: “The CPU and GPU have direct access to the same memory pool” (MLX docs). Weights aren’t copied onto a separate graphics card. That’s why the memory size on a Mac’s spec sheet matters so much: a Mac Studio can be configured with up to 512 GB of unified memory (M5 Ultra, 1.2 TB/s), while a GeForce RTX 5090 has 32 GB on the card.
Myth 2: a 64 GB Mac gives the GPU all 64 GB
Metal reports a recommendedMaxWorkingSetSize, which Apple describes as “an approximation of how much memory, in bytes, this GPU device can allocate without affecting its runtime performance” (Apple docs). Apple doesn’t publish a fixed percentage. llama.cpp prints the value when it starts, and users paste it in bug reports:
| Mac (from the report) | Value printed by llama.cpp | In GiB | Share of RAM |
|---|---|---|---|
| Mac mini M4 Pro, 64 GB (#20011) | 55,662.79 MB | 51.8 | 81% |
| M4 Pro, 48 GB (#20141) | 40,200.90 MB | 37.4 | 78% |
(llama.cpp’s “MB” here is 10⁶ bytes; the conversion to GiB is ours.)
MLX documents how to raise the limit on macOS 15 and later. The mlx-lm README says a model that fits in RAM “can often be sped up by increasing the system wired memory limit” with sudo sysctl iogpu.wired_limit_mb=N, where N “should be larger than the size of the model in megabytes but smaller than the memory size of the machine”.
Myth 3: tokens per second is one number
There are two speeds. Reading the prompt (prefill, or prompt processing) handles many tokens at once. Writing the answer produces one token at a time, and each new token has to read the weights from memory again, so it tracks memory bandwidth.
llama.cpp’s own Apple Silicon table (LLaMA 7B, 4-bit Q4_0, a 2023 build) shows the gap on one M2 Ultra: 1,238 tokens a second reading, 94 writing, about 13 times apart. The same table shows bandwidth at work: an M1 with 68 GB/s writes about 14 tokens a second with the same file. Most chat apps show you the writing speed.
Myth 4: MLX is always faster
For writing, published tests mostly favour MLX:
- On an M4 Max (128 GB), Ante Kapetanovic measured Qwen3.5-35B-A3B at about 130 tokens a second with MLX and 71 with llama.cpp (mean of 10 runs, short prompt; the GGUF was Unsloth’s Q4_K_XL, so the 4-bit recipes differ) (as reported).
- Ollama’s own test of its MLX engine went from 58 to 112 tokens a second, and prefill from 1,154 to 1,810, but the number format changed from Q4_K_M to NVFP4 at the same time.
- A 2025 paper comparing runtimes on an M2 Ultra reports “MLX (∼230 tok/s) > MLC-LLM (∼190 tok/s) > llama.cpp (∼150 tok/s short-context only)” (Rajesh et al., arXiv:2511.05502, as reported).
Reading is where it flips. In the famstack.dev test from the start (Mac Studio M1 Max 64 GB, LM Studio 0.4.5 serving both engines, Qwen3.5-35B-A3B, MLX 4-bit vs GGUF Q4_K_M), MLX wrote at 57 and GGUF at 29. Yet GGUF finished first on all five short documents in a classification task (an electricity bill: 4.9 s vs 7.7 s), and with long prompts most of the time went to prefill:
Myth 5: 4-bit is 4-bit
MLX’s default quantization (“affine”) stores one scale and one bias for every 64 weights, both in the model’s 16-bit type (mx.quantize docs). That’s 4 + 32/64 = 4.5 bits per weight. GGUF’s Q4_K_M mixes 4-bit k-quants with 6-bit for half of two tensor types (llama.cpp PR #1684), which comes to about 4.9 bits per weight for the same model:
Is the bigger file better? We couldn’t find a published, same-model, same-metric comparison of MLX 4-bit against Q4_K_M with a stated method. What exists is llama.cpp’s own table for its formats on Llama-3-8B (quantize.cpp): plain Q4_1 (a scale and a minimum per block, the same idea as MLX’s affine) adds 0.45 to perplexity, Q4_K_M adds 0.18. Treat that as a hint, not as a verdict on MLX.
The twist: MLX borrowed the idea. mlx-lm’s mixed-bit recipes (--quant-predicate mixed_3_6 and friends) are described in its source as “similar choices to, for example, llama.cpp’s Q4_K_M”. MLX also supports MXFP4, MXFP8 and NVFP4 modes, and learned quantization (DWQ, AWQ, GPTQ, dynamic), where “DWQ takes longer but typically yields better results”. So “MLX 4-bit” on a model page can mean several different things; read the repo’s README.
Myth 6: there are no MLX models
On Hugging Face (19 November 2026), 223,142 models are tagged GGUF and 29,241 are tagged MLX, about 7.6 times fewer. The mlx-community organisation alone has 5,854. And if the model you want isn’t there, mlx_lm.convert --model <repo> -q makes a 4-bit MLX copy from the original Hugging Face weights.
You rarely pick the format by hand
LM Studio runs llama.cpp for GGUF files on Mac, Windows and Linux, and “on Apple Silicon Macs, LM Studio also supports running LLMs using Apple’s MLX”. Ollama moved Apple Silicon to MLX in March 2026 (preview, Macs with more than 32 GB) and added GGUF through llama.cpp in June. The full comparison of the two apps is in Ollama vs LM Studio: same engine, different car.
Verdict: which file should you download?
| Pick MLX if… | Pick GGUF if… |
|---|---|
| you’re on Apple Silicon | you paste long documents or big code files |
| you mostly chat with short prompts | you want more quant choices (Q5_K_M, Q6_K, Q8_0…) |
| the model is already on mlx-community | you want one file that also runs on Windows, Linux or an NVIDIA card |
| you want to fine-tune or convert in Python | you’re on an Intel Mac |
Either way, check both speeds on your own Mac: how long before the first word, and how fast the words come. llama.cpp’s llama-bench reports them separately (pp and tg), and mlx-lm ships its own mlx_lm.benchmark.
So where did the other 54 tokens a second go?
Mostly into prefill, the wait before the first word. The famstack.dev author later traced part of MLX’s slow prefill to a prompt-caching bug for that particular model in LM Studio, and to bf16 weights, which they write M1 and M2 chips don’t support natively; converting with mlx_lm.convert --dtype float16 gave them a 1.5–1.7× faster prefill. In their follow-up, “after the fp16 fix, MLX and GGUF trade wins depending on the scenario, with differences in single digits”, and “the runtime matters more than the engine”.
The format matters less than how well your app reads the prompt. Next on the channel: prompt caching, and why your second question can start answering much faster than the first.