Explore this comparison’s ranking

Comparison Counted

Which engine runs LFM2.5 1.2B Instruct best on M5 Max · 64 GiB?

Device
M5 Max · 64 GiB (Apple silicon Macs)
OS
macOS 27
Model
LFM2.5 1.2B Instruct, 1.2B parameters
Weights
4-bit
Workload
Archive 256 input / 128 output: 256 tokens in, 128 out
Decoding
Greedy, batch 1, context 4,096
Power
Plugged in

Memory: Peak memory while generating: the less, the better.

Which engine runs LFM2.5 1.2B Instruct best on M5 Max · 64 GiB? Ranked by Memory.
#EngineMemory and Decode
1uzu, an approximate comparison, see details Mirai Memory: 0.90 GiB 540.7 tok/s decode
2Ollama, an approximate comparison, see details Ollama Memory: 0.93 GiB 454.6 tok/s decode
3llama.cpp, an approximate comparison, see details ggml-org Memory: 0.93 GiB 438.1 tok/s decode
4Magnitude, an approximate comparison, see details Magnitude Memory: 1.56 GiB 444.5 tok/s decode
Not ranked in this view
Not rankedExecuTorch PyTorch (Meta) Not measured No peak memory measured.
Not rankedLiteRT-LM Google AI Edge Not counted Its output check failed: 10/12 of the checks the model passes at BF16; needs 11 and the mandatory ones (needle-start, needle-end, continuation-128). Left out, failed by every BF16 configuration: none.
Not rankedMLX LM Apple (ml-explore) Not counted Its output check failed: 10/12 of the checks the model passes at BF16; needs 11 and the mandatory ones (needle-start, needle-end, continuation-128). Left out, failed by every BF16 configuration: none.
Not rankedRapid-MLX Rapid-MLX contributors Not counted Its output check failed: 10/12 of the checks the model passes at BF16; needs 11 and the mandatory ones (needle-start, needle-end, continuation-128). Left out, failed by every BF16 configuration: none.
details

Memory Peak memory while generating: the less, the better.

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

† uzu: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype, uzu default. Its weights are 4-bit in another scheme: mirai-m, where most use Q4_K_M.

† Ollama: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype, uzu default.

† llama.cpp: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype, uzu default.

† Magnitude: approximate comparison. The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype, uzu default. Its phases were timed by the harness clock around the engine API, so they include transport that engine counters leave out.

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.

Every experiment in this comparison
ExperimentRanking eligibilityDecode tok/s, higher is betterFirst token ms, lower is betterMemory GiB, lower is betterPrefill tok/s, higher is betterValid trials
uzu 0.6.17 · Metal · mirai-m Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype, uzu default. Its weights are 4-bit in another scheme: mirai-m, where most use Q4_K_M.540.7 range539.8–541.475.2 range74.9–76.90.90 range0.90–0.9613,205 range13,070–13,7006of 6 planned
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, uzu default.454.6 range452.3–458.830.6 range23.9–33.60.93 range0.93–0.958,803 range7,994–11,4236of 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, uzu default.438.1 range430.6–443.734.2 range33.5–34.90.93 range0.93–0.957,671 range7,514–7,8996of 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, uzu default. Its phases were timed by the harness clock around the engine API, so they include transport that engine counters leave out.444.5 range437.1–446.026.6 range26.2–26.81.56 range1.55–1.569,627 range9,540–9,7716of 6 planned
ExecuTorch 1.6.0 · Metal · mlx-4w-g64 Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype, uzu default. Its weights are 4-bit in another scheme: mlx-4w-g64, where most use Q4_K_M.472.1 range470.4–475.752.3 range51.6–52.5Not measured4,923 range4,830–5,0206of 6 planned
ExecuTorch 1.6.0 · CPU · 8da4w Eligible, approximately: The experiments use different effective KV cache precision: bf16, fp32, litert-lm default, f16, magnitude default, model-dtype, uzu default. Its weights are 4-bit in another scheme: 8da4w, where most use Q4_K_M.158.8 range156.6–161.8262 range261–272Not measured977.1 range941.2–980.86of 6 planned
LiteRT-LM 0.19.1 · CPU · litert-int4 Complete Its output check failed: 10/12 of the checks the model passes at BF16; needs 11 and the mandatory ones (needle-start, needle-end, continuation-128). Left out, failed by every BF16 configuration: none.103.5 range102.7–103.8716 range715–7241.23 range1.23–1.23370.5 range366.9–371.36of 6 planned
LiteRT-LM 0.19.1 · GPU · litert-int4-gpu Complete Its output check failed: 8/12 of the checks the model passes at BF16; needs 11 and the mandatory ones (needle-start, needle-end, continuation-128). Left out, failed by every BF16 configuration: none.330.8 range327.6–340.2114 range104–1171.82 range1.82–1.833,438 range3,380–3,4976of 6 planned
MLX LM 0.32.2 · Metal · mlx-affine-4bit-g64 Complete Its output check failed: 10/12 of the checks the model passes at BF16; needs 11 and the mandatory ones (needle-start, needle-end, continuation-128). Left out, failed by every BF16 configuration: none.582.9 range574.9–589.728.9 range28.6–29.30.89 range0.87–0.909,024 range8,897–9,0926of 6 planned
Rapid-MLX 1.0.2 · Metal · mlx-affine-4bit-g64 Complete Its output check failed: 10/12 of the checks the model passes at BF16; needs 11 and the mandatory ones (needle-start, needle-end, continuation-128). Left out, failed by every BF16 configuration: none.575.8 range523.4–582.934.8 range34.2–36.61.12 range1.11–1.147,493 range7,106–7,6226of 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.

Decode speed tok/s, higher is better
Time to first token ms, lower is better
Peak memory GiB, lower is better
Prefill speed tok/s, higher is better

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-1.2b-instruct--4-bit--archive-256-128.