XHToken/Spark-X2.5-4B-GGUF
Summary
This repository provides a BF16 GGUF conversion of the Spark-X2.5-4B language model, enabling local inference with Ollama and LM Studio.
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
- Close LM Studio.
- Back up the selected LM Studio runtime directory:
<LM_STUDIO_HOME>/extensions/backends/<selected-runtime>/ - Copy the
llama\.cpp\-sparkbuild output into the selected runtime directory, replacing the existing runtime files. - Place
Spark\-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
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
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.
@AdinaYakup: Happy to see another on device model Spark-X2.6-4B from @SparkLLM - 4B + Apache 2.0 - Up to 1M context - 3 thinking mod…
SparkLLM 釋出 Spark-X2.6-4B 端側模型,具備 4B 參數、Apache 2.0 授權、最高 1M context 與 3 種思考模式,並支援 GGUF 本地部署。
autotrust/GLM5.3-Flash-E224-DGX-Spark
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 运行。
Quantized AI9Stars' G9v3-39A5B to GGUF and created a llama.cpp fork to support it
This article describes the unofficial quantization of the AI9Stars G9v3-39A5B MoE model to GGUF format and the creation of a llama.cpp fork to enable local inference with BF16 and Q4_K_M variants.