Comparison Counted
Which engine runs LFM2.5 350M best on M5 Max · 64 GiB?
- Device
- M5 Max · 64 GiB (Apple silicon Macs)
- OS
- macOS 27
- Model
- LFM2.5 350M, 350M parameters
- Weights
- 4-bit
- Workload
- Archive 2048 input / 128 output: 2,048 tokens in, 128 out
- Decoding
- Greedy, batch 1, context 4,096
- Power
- Plugged in
Ranking
Balanced: Decode speed, time to first token and peak memory, weighted equally.
| # | Engine | Balanced score out of 100 |
|---|---|---|
| 1 | Ollama†, an approximate comparison, see details | 81 /100 Balanced score |
| 2 | llama.cpp†, an approximate comparison, see details | 79 /100 Balanced score |
| 3 | Magnitude†, an approximate comparison, see details | 75 /100 Balanced score |
| 4 | MLX LM†, an approximate comparison, see details | 59 /100 Balanced score |
| 5 | Rapid-MLX†, an approximate comparison, see details | 59 /100 Balanced score |
| Not ranked in this view | ||
| Not ranked | uzu | Failed Failed in 1 comparison. No trial was valid. |
| Not ranked | ExecuTorch | Not counted Its output check failed: 6/8 of the checks the model passes at BF16; needs 7 and the mandatory ones (needle-start, needle-end). Left out, failed by every BF16 configuration: arithmetic, sort, word, continuation-128. |
| Not ranked | LiteRT-LM | Not counted Its output check failed: 6/8 of the checks the model passes at BF16; needs 7 and the mandatory ones (needle-start, needle-end). Left out, failed by every BF16 configuration: arithmetic, sort, word, continuation-128. |
details
Balanced Decode speed, time to first token and peak memory, weighted equally.
Score: 100 is the best result in every comparison an engine entered; 80 is 80% of the best, on average. Only complete experiments with a passed output check count. How rankings work
† Ollama: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype.
† llama.cpp: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype.
† Magnitude: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. Its phases were timed by the harness clock around the engine API, so they include transport that engine counters leave out.
† MLX LM: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. Its weights are 4-bit in another scheme: mlx-affine-4bit-g64, where most use Q4_K_M.
† Rapid-MLX: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. Its weights are 4-bit in another scheme: mlx-affine-4bit-g64, where most use Q4_K_M.
Every experiment
Medians over valid trials, with the lowest and highest beneath. Eligible experiments are complete and passed their output check. The ranking above selects each engine's configuration for this objective when its required metrics are measured.
| Experiment | Ranking eligibility | Decode tok/s, higher is better | First token ms, lower is better | Memory GiB, lower is better | Prefill tok/s, higher is better | Valid trials |
|---|---|---|---|---|---|---|
| Ollama 0.40.13 · Metal · Q4_K_M | Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. | 700.6 range693.0–726.6 | 64.1 range54.1–64.4 | 0.47 range0.47–0.47 | 33,581 range33,462–39,979 | 6of 6 planned |
| llama.cpp b12110 · Metal · Q4_K_M | Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. | 650.0 range639.9–689.2 | 65.2 range54.5–70.8 | 0.47 range0.47–0.47 | 31,928 range29,289–38,466 | 6of 6 planned |
| Magnitude 0.2.17 · Metal · Q4_K_M | Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. Its phases were timed by the harness clock around the engine API, so they include transport that engine counters leave out. | 884.9 range879.3–906.6 | 46.5 range46.3–49.1 | 1.05 range1.05–1.06 | 44,058 range41,750–44,266 | 6of 6 planned |
| MLX LM 0.32.2 · Metal · mlx-affine-4bit-g64 | Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. Its weights are 4-bit in another scheme: mlx-affine-4bit-g64, where most use Q4_K_M. | 897.8 range894.8–901.2 | 56.2 range46.9–56.8 | 1.78 range0.79–2.16 | 36,803 range36,471–44,255 | 6of 6 planned |
| Rapid-MLX 1.0.2 · Metal · mlx-affine-4bit-g64 | Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype. Its weights are 4-bit in another scheme: mlx-affine-4bit-g64, where most use Q4_K_M. | 946.8 range941.4–949.5 | 57.6 range55.2–57.9 | 1.83 range1.58–2.17 | 35,995 range35,755–37,489 | 6of 6 planned |
| ExecuTorch 1.6.0 · Metal · mlx-4w-g64 | Complete Its output check failed: 6/8 of the checks the model passes at BF16; needs 7 and the mandatory ones (needle-start, needle-end). Left out, failed by every BF16 configuration: arithmetic, sort, word, continuation-128. | 738.4 range725.7–747.1 | 107 range107–107 | Not measured | 19,140 range19,140–19,321 | 6of 6 planned |
| ExecuTorch 1.6.0 · CPU · 8da4w | Complete Its output check failed: 5/8 of the checks the model passes at BF16; needs 7 and the mandatory ones (needle-start, needle-end). Left out, failed by every BF16 configuration: arithmetic, sort, word, continuation-128. | 246.8 range237.4–248.5 | 720 range719–725 | Not measured | 2,844 range2,829–2,848 | 6of 6 planned |
| LiteRT-LM 0.19.1 · CPU · litert-int4 | Complete Its output check failed: 6/8 of the checks the model passes at BF16; needs 7 and the mandatory ones (needle-start, needle-end). Left out, failed by every BF16 configuration: arithmetic, sort, word, continuation-128. | 184.6 range181.0–185.3 | 1,499 range1,498–1,507 | 1.09 range1.09–1.10 | 1,382 range1,374–1,383 | 6of 6 planned |
| uzu 0.6.17 · Metal · mirai-m | Failed No trial was valid. | Not measured | Not measured | Not measured | Not measured | 0of 6 planned |
Every trial, metric by metric
The line runs from an experiment's lowest to its highest valid trial, the dot is the median and each tick is one trial. Every scale starts at zero.
Caveats
- Publisher cards identify the base model but do not always pin the exact export source checkpoint revision.
- Engines may differ in quantization scheme, effective KV cache precision, kernels, and activations.
About this comparison
Worked out from its experiments: every experiment here shares the device, the OS major version, the power state, the base model, the quantization class and the workload. Measured under methodology v0.6. Comparison id glenn-m5-max-64gb--macos-27--lfm2.5-350m--4-bit--archive-2048-128.