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

Hugging Face Models Trending Models

Summary

This repository provides a BF16 GGUF conversion of the Spark-X2.5-4B language model, enabling local inference with Ollama and LM Studio.

Task: text-generation Tags: gguf, llama.cpp, ollama, lm-studio, sparkx2_5, text-generation, en, zh, base_model:XHToken/Spark-X2.5-4B, base_model:quantized:XHToken/Spark-X2.5-4B, license:apache-2.0, endpoints_compatible, region:us, conversational
Original Article
View Cached Full Text

Cached at: 09/10/26, 08:11 PM

XHToken/Spark-X2.5-4B-GGUF · Hugging Face

Source: https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF

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 theSpark-X2.5-4B.

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#local-deploymentLocal Deployment

The GGUF file can be used for local inference withOllamaandLM Studio. Spark-X2.5 support is provided byXHToken/llama.cpp, so the Quick Starts below use this compatible implementation.

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#ollama-quick-startOllama Quick Start

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#buildBuild

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

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#import-the-ggufImport 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

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#create-and-runCreate and Run

Start the Ollama server in the first terminal:

./ollama serve

Open a second terminal in the sameollama\-sparkdirectory:

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

\-\-think=falsedisables thinking mode for faster, direct responses.

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#lm-studio-quick-startLM Studio Quick Start

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#build-the-compatible-llamacpp-runtimeBuild 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

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#configure-lm-studioConfigure LM Studio

  1. Close LM Studio.
  2. Back up the selected LM Studio runtime directory: <LM_STUDIO_HOME>/extensions/backends/<selected-runtime>/
  3. Copy thellama\.cpp\-sparkbuild output into the selected runtime directory, replacing the existing runtime files.
  4. PlaceSpark\-X2\.5\-4B\.ggufin: <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>/

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#runRun

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

You can also use thelmsCLI:

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

https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF#licenseLicense

Released under theApache License 2.0.

Similar Articles

New Model: Spark-X2.5-4B, Spark-X2.5-1.7B

Reddit r/LocalLLaMA

Introducing Spark-X2.5-4B and Spark-X2.5-1.7B, compact general-purpose language models with native 1M-token context, strong coding and agent capabilities, and broad hardware compatibility.

Jackrong/Qwopus3.6-27B-Coder-MTP-GGUF

Hugging Face Models Trending

A GGUF quantized version of the Qwopus3.6-27B-Coder-MTP model is released on Hugging Face, optimized for local inference and compatible with Transformers, vLLM, SGLang, and Unsloth Studio.

AngelSlim/Hy3-GGUF

Hugging Face Models Trending

AngelSlim/Hy3-GGUF is a toolkit for quantizing and deploying Hy3 large language models on llama.cpp, featuring MTP self-speculative decoding and a thinking/tool-call parser for efficient inference.

huihui-ai/Huihui-GLM-5.2-abliterated-GGUF

Hugging Face Models Trending

A quantized GGUF version of the abliterated GLM-5.2 model is released on Hugging Face, enabling local inference with various tools like Transformers, llama.cpp, and vLLM.