CoolFace
Modelpublic

spicyneuron/Kimi-K2.5-MLX-2.5bit

sourceHugging Faceupdated 6mo agoView on Hugging Face
1likes426downloads
Model Card

Kimi K2.5 optimized to run even more comfortably on a Mac Studio M3 512G.

My 2.8 bit quants fit into 380G memory. This 2.5 bit one hovers around 350G, while matching the original 2.8 bit quant in quality.

The main motivation to compress even further was to support a full "Claude Code in a box" system, which requires not just an Opus replacement (Kimi K2.5) but also Haiku and Sonnet replacements (Qwen 3.5) for background tasks and subagents.

Usage

sh
# Start server at http://localhost:8080/v1/chat/completions
uvx --from mlx-lm --with tiktoken \
  mlx_lm.server \
    --host 127.0.0.1 --port 8080 \
    --trust-remote-code \
    --model spicyneuron/Kimi-K2.5-MLX-2.5bit

# Kimi K2.5 requires tiktoken + remote code for the tokenizer

Methodology

Quantized with a mlx-lm fork, drawing inspiration from Unsloth/AesSedai/ubergarm style mixed-precision GGUFs. MLX quantization options differ than llama.cpp, but the principles are the same:

  • —Sensitive layers like MoE routing, attention, and output embeddings get higher precision (BF16, 8, 4)
  • —More tolerant layers like MoE experts get lower precision (2, 3)

This one is much smaller than Unsloth's UD-Q2_K_XL in size, and loads and runs noticeably faster thanks to MLX.

Performance

Prompt SizeGGUFMLX 3 bitMLX 2.8 bit v1MLX 2.8 bit v2**MLX 2.5 bit**
1000148.82216.976224.878224.094226.368
5000130.90230.227235.595231.966237.426
10000113.32219.792222.464218.455223.846
2000089.72186.549187.915186.169188.502
Gen SizeGGUFMLX 3 bitMLX 2.8 bit v1MLX 2.8 bit v2**MLX 2.5 bit**
50023.3825.78127.44326.58627.571
100022.3725.21026.49124.28526.853
200021.8923.94424.57322.60324.689
500020.5220.75821.03020.49921.192

Perplexity (MLX quants)

ModelPerplexityRelativeRelative %
MLX 3 bit3.798 ± 0.021——
MLX 2.8 bit v13.768 ± 0.021-0.030-0.79%
MLX 2.8 bit v23.702 ± 0.020-0.096-2.53%
MLX 2.5 bit3.777 ± 0.020-0.021-0.55%
# llama.cpp 8130
llama-bench -fa 1 --batch-size 2048 --ubatch-size 2048 --repetitions 5

# mlx_lm v0.30.7
mlx_lm.benchmark --num-trials 5
mlx_lm.perplexity --sequence-length 1000 --seed 222