How to use from
MLX LM
Generate or start a chat session
# Install MLX LM
uv tool install mlx-lm
# Interactive chat REPL
mlx_lm.chat --model "abenzerps/Spark-X2.5-4B-MLX-4bit"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "abenzerps/Spark-X2.5-4B-MLX-4bit"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "abenzerps/Spark-X2.5-4B-MLX-4bit",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

Spark-X2.5-4B MLX 4-bit

MLX 4-bit quantization of XHToken/Spark-X2.5-4B, a 4B general-purpose language model for reasoning, coding, tool use, and agentic workflows. Native context: 1,048,576 tokens (1M).

Benchmarks

Upstream Spark-X2.5-4B benchmark comparison

Benchmark results reported by XHToken for Spark-X2.5-4B in thinking mode.

Files

Format Weights Size
MLX 4-bit model.safetensors 2.31 GB

Includes the upstream chat_template.jinja. Checksums: SHA256SUMS.txt.

Source

Downloads last month
1,321
Safetensors
Model size
4B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for abenzerps/Spark-X2.5-4B-MLX-4bit

Quantized
(23)
this model

Collection including abenzerps/Spark-X2.5-4B-MLX-4bit