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

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

Hugging Face Models Trending

Spark-X2.6-4B is a compact 4B on-device language model released in GGUF format, featuring improved post-training for coding, agentic, long-context, and multilingual tasks along with a controllable thinking budget. It claims state-of-the-art performance among similarly sized open-source models, matching or surpassing ~9B parameter models.

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.

autotrust/GLM5.3-Flash-E224-DGX-Spark

Hugging Face Models Trending

autotrust 发布的 GLM5.3-Flash-E224-DGX-Spark 模型仓库,基于 zai-org/GLM-5.3-Flash 的图像-文本到文本(image-text-to-text)量化版本,支持 NVFP4/8-bit 量化,可在 DGX Spark (GB10/Blackwell) 上通过 vLLM 运行。