How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/XHToken/Spark-X2.5-4B-GGUF:Q4_K_M
Quick Links

Spark-X2.5-4B-GGUF

Spark-X2.5 is a compact, general-purpose language model for conversation, writing, translation, reasoning, coding, tool use, and agentic workflows. It uses a hybrid attention architecture, supports a native context length of up to 1M tokens, and covers more than 200 languages. For its architecture, training methods, benchmark results, fine-tuning, and citation, see the Spark-X2.5-4B.

Local Deployment

llama.cpp

Native spark2_5 support requires llama.cpp b10828 or later.

Run the model in the CLI:

llama cli -m /path/to/Spark-X2.5-4B-GGUF

Launch the OpenAI-compatible API server:

llama serve -m /path/to/Spark-X2.5-4B-GGUF

Ollama

Download Ollama

Native spark2_5 support requires Ollama v0.34.1 or later.

ollama run SparkLLM/Spark-X2.5-4B

LM Studio

Download LM Studio

Native spark2_5 support requires runtime version 2.34.0 or later.

Unsloth

Download Unsloth Studio

The latest Unsloth Studio supports native Spark-X2.5 GGUF inference.

License

Released under the Apache License 2.0.

Downloads last month
360,269
GGUF
Model size
4B params
Architecture
spark2_5
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

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

Model tree for XHToken/Spark-X2.5-4B-GGUF

Quantized
(55)
this model
Finetunes
1 model

Space using XHToken/Spark-X2.5-4B-GGUF 1

Collection including XHToken/Spark-X2.5-4B-GGUF