Local AI Advisor

Spark-X2.5-4B on local hardware

Estimated comfort for repository coding with Aider on a MacBook Pro M4 Pro 48GB.

Spark-X2.5-4BOpen source

XHToken · apache-2.0 · 38,289 downloads

Hugging Face
Reasoning / thinking mode
Parameters
4.1B exact
Context window
1M tokens
Attention
Sliding-window + global layers
Layers · KV heads · head dim
36 · 4 · 256
KV cache
36 KB/token · 1.2 GB at 32K
Tool calling
good (from chat template)
Thinking
good (from chat template)
Vision
basic (inferred — no supporting signal)
Commercial use
allowedRetain the required license and attribution notices
Import confidence
medium · capabilities estimated

Weights by quantization

Q3_K_M

2.0 GB

gguf file size

Q4_K_M

2.4 GB

gguf file size

Q5_K_M

2.8 GB

gguf file size

Q6_K

3.1 GB

gguf file size

Q8_0

4.1 GB

gguf file size

  • • vision: basic, inferred from missing signals (low confidence).
  • • Capability ratings are estimated from model size and name — this model hasn't been assessed by hand.
  • • GGUF sizes come from community conversions matched by model name; equivalence and runtime support are not verified. MLX conversion availability is unverified.

Spark-X2.5-4B — 8-bit

Borderline for your workload

Borderline

Speed

35–45 tok/s

Excellent

Memory left

30 GB

of 48 GB

First word in

≈20 s

Comfortable

All the details
Your setup
MacBook Pro M4 Pro 48 GB
Workload
Repository coding with Aider
Runtime → tool
LM Studio → Aider
Memory used
6.4 GB
Context
32K · up to 128K practical
Tool support
Official
Use-case fit
Poorly suited

Why?

  • Model fits with approximately 30 GB of memory headroom.
  • LM Studio supports hardware acceleration on this machine (Metal (Apple GPU)).
  • Aider can connect to LM Studio (officially supported).
  • Generation (35–45 tok/s) should be appropriate for interactive coding.
  • Ingesting a prompt of 14K tokens takes ≈20 s; prompt processing keeps up with interactive coding.
  • 32K working context is reasonable.
  • Weak coding capability for interactive coding.

Why “Borderline” rather than “Acceptable”?

  • Workload suitability: Weak coding capability for interactive coding.

How sure are we?

Medium confidence

Estimated from bandwidth and compute, calibrated against 2 verified benchmarks of other models on this same chip (measured with a different engine, so calibration is partial).

  • Calibrated with verified benchmarks of other models on this chip.
  • Hybrid/sliding attention performance varies more between runtimes.
Medium confidence
Check with your hardware and workload