GraySoft
Projects Models Compare Cloud benchmarks FAQ Download guIDE →
Model Intelligence Sheet

XHToken/Spark-X2.5-4B-GGUF overview

Spark X2.5 4B GGUF NOTE This repository provides a BF16 GGUF conversion of Spark X2.5 4B. Spark X2.5 is a compact, general purpose language model for conversat…

ggufllama.cppollamalm-studiosparkx2_5text-generationenzhbase_model:XHToken/Spark-X2.5-4Bbase_model:quantized:XHToken/Spark-X2.5-4Blicense:apache-2.0endpoints_compatibleregion:usconversational

Runs locally from ~2.42 GB disk (4 GB VRAM class GPUs with llama.cpp / guIDE).

Downloads
36,320
Likes
88
Pipeline
text-generation
Author

Repository Files & Downloads

3 GGUF files detected
Direct downloads for local inference
FileTypeQuantizationSizeLink
Spark-X2.5-4B-Q4_K_M.ggufGGUFQ4_K_M2.42 GBDownload
Spark-X2.5-4B-Q8_0.ggufGGUFQ8_04.07 GBDownload
Spark-X2.5-4B.ggufGGUFGGUF7.66 GBDownload

Model Details

Model IDXHToken/Spark-X2.5-4B-GGUF
AuthorXHToken
Pipelinetext-generation
Licenseapache-2.0
Base modelXHToken/Spark-X2.5-4B
Last modified2026-09-07T09:42:51.000Z

Model README

---

license: apache-2.0

language:

- en

- zh

library_name: gguf

pipeline_tag: text-generation

base_model: XHToken/Spark-X2.5-4B

tags:

- gguf

- llama.cpp

- ollama

- lm-studio

- sparkx2_5

---

Spark-X2.5-4B-GGUF

> [!NOTE]

> This repository provides a BF16 GGUF conversion of Spark-X2.5-4B.

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

The GGUF file can be used for local inference with Ollama and LM Studio. Spark-X2.5 support is provided by XHToken/llama.cpp, so the Quick Starts below use this compatible implementation.

Ollama Quick Start

Build

git clone https://github.com/XHToken/llama.cpp.git llama.cpp-spark
git clone https://github.com/ollama/ollama.git ollama-spark
cd ollama-spark
export OLLAMA_LLAMA_CPP_SOURCE="$(cd ../llama.cpp-spark && pwd)"
cmake -S . -B build
cmake --build build --parallel 8

Import the GGUF

Replace the model path below with the absolute path to the downloaded GGUF file:

printf 'FROM /absolute/path/to/Spark-X2.5-4B.gguf\n' > ./Modelfile.spark

Create and Run

Start the Ollama server in the first terminal:

./ollama serve

Open a second terminal in the same ollama-spark directory:

./ollama create Spark-X2.5-4B -f ./Modelfile.spark
./ollama run Spark-X2.5-4B --think=false

--think=false disables thinking mode for faster, direct responses.

LM Studio Quick Start

Build the Compatible llama.cpp Runtime

git clone https://github.com/XHToken/llama.cpp.git llama.cpp-spark
cd llama.cpp-spark
cmake -S . -B build
cmake --build build --parallel 8

Configure LM Studio

  1. Close LM Studio.
  2. Back up the selected LM Studio runtime directory:

```text

<LM_STUDIO_HOME>/extensions/backends/<selected-runtime>/

```

  1. Copy the llama.cpp-spark build output into the selected runtime directory, replacing the existing runtime files.
  2. Place Spark-X2.5-4B.gguf in:

```text

<LM_STUDIO_HOME>/models/<org>/<name>/

```

Example runtime directory on Apple Silicon:

./build/bin/* -> ~/.lmstudio/extensions/backends/llama.cpp-mac-arm64-apple-metal-advsimd-<version>/

Run

Open LM Studio, select the model under My Models, click Load, and start a new chat.

You can also use the lms CLI:

lms ls
lms load <model>
lms chat <model>

License

Released under the Apache License 2.0.

Run XHToken/Spark-X2.5-4B-GGUF with guIDE

Download guIDE — the AI-native code editor with local LLM inference and 69 built-in tools.

Download guIDE → · Browse 524k+ models · Compare models

Source: Hugging Face · Compare models