LocalTPS

Can Mac Studio M4 Max (128GB Unified) Run LFM2.5 24B A2B?

Quick Verdict:Yes — LFM2.5 24B A2B (Q8_0) fits inside Mac Studio M4 Max (128GB Unified)'s 96 GB VRAM at 64K context (26.3 GB used), delivering ~139.4 tok/s and 10.2s TTFT.

Hardware

96 / 128 GB (75%)
GB
GB

Model & Context

MoE · 24B (2B active)
HF config.json
10/40 KV · Hybrid Stateunsloth/LFM2.5-24B-A2B-GGUF
Coding Agent Context Presets
65,536 tokens · KV: FP16
Context Window64K / 128K
KV Cache Quant
MTP Speculative Decoding
Usable (Slight Lag)

Prefill latency is 10.2s at this prompt size. Consider a smaller context preset or Cloud API.

Generation Speed
139.4 tok/s
Full Apple VRAM residency
Time to First Token (TTFT)
10.2 sec
32,000 prompt tokens
VRAM Status
Fits in VRAM
26.3 / 96 GB
Unified memory pool
VRAM Allocation BreakdownTotal Required: 26.32 GB / 96 GB Unified Limit
Model Weights (GGUF):23.74 GB
KV Cache:1.29 GB
Runtime Overhead:1.29 GB

Technical FAQ

How much VRAM does LFM2.5 24B A2B need at 64K context?

With Q8_0 GGUF weights (23.74 GB), FP16 KV Cache (1.29 GB), and runtime overhead (1.29 GB), total VRAM required at 65,536 tokens is 26.32 GB.

Is Mac Studio M4 Max (128GB Unified) fast enough for Cline or OpenCode with LFM2.5 24B A2B?

Rated "Usable (Slight Lag)" at 64K context: 139.4 tok/s decode and 10.2s TTFT for 32,000 prompt tokens. Prefill latency is 10.2s at this prompt size. Consider a smaller context preset or Cloud API.

How much VRAM does Q4_0 KV Cache save on LFM2.5 24B A2B?

Switching KV Cache from FP16 to Q4_0 at 64K context cuts KV memory from 1.29 GB down to 0.39 GB, lowering total memory to 25.42 GB (178.9 tok/s).

Is it cheaper to run LFM2.5 24B A2B locally or via Cloud API / RunPod?

For full-time coding agent usage (5M input + 1M output tokens/day), OpenRouter costs ~$20.90/mo, while renting NVIDIA RTX 5090 32GB on Vast.ai costs ~$114.40/mo. Upgrading to NVIDIA A100 GPU accelerator (PCIe card) (40GB) ($1,400 MSRP) pays back in ~97.9 months.