Spark X2.5 4B
Spark X2.5 4B is a text-generation model from the repository XHToken/Spark-X2.5-4B, licensed under apache-2.0 and compatible with the Hugging Face Transformers format. The model card describes it as a compact, general-purpose language model that uses a hybrid attention architecture (one full-attention layer and three sliding-window attention layers) and natively supports context windows up to 1M tokens. It is presented as supporting conversation, writing, translation, reasoning, coding, tool use, and agentic workflows, with broad language coverage and compatibility with several inference frameworks and platforms. The model was trained on Huawei Ascend clusters using large-scale reinforcement learning and post-training techniques. No specific performance numbers or hardware requirements are stated in the provided source.
At a glance
- Parameters
- 4.11B
- Architecture
- spark2_5
- Context length
- 1,048,576
- License
- apache-2.0
- Disk space
- 7.7 GB
- Software
- Ollama, SGLang, vLLM
Will it run on your machine?
Save your machine to see a personalized rating and its reasoning.
Add my hardwareBest for
- Conversation
- Writing
- Translation
- Reasoning
- Coding, tool use, and agentic workflows
Tradeoffs
- The source does not specify numerical hardware requirements or supported hardware configurations.
- The source does not provide benchmark results or performance metrics.
- The source does not state compatibility with specific versions of inference frameworks.
- The source does not describe known failure modes or safety limitations.
- The source does not specify minimum memory, storage, or compute requirements for deployment.
Ways to run it
Ollama · Windows, macOS, Linux
Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.
ollama run SparkLLM/Spark-X2.5-4BSGLang · Linux
Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.
python -m sglang.launch_server --model-path /root/Spark-X2.5-4B --served-model-name spark2.5 --tool-call-parser spark25 --reasoning-parser qwen3 --tp-size 1 --mem-fraction-static 0.8 --context-length 1048576 --chat-template /root/Spark-X2.5-4B/chat_template.jinja --host 0.0.0.0 --port 30000vLLM · Linux
Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.
vllm serve "/models/Spark-X2.5-4B" --port "30000" --trust-remote-code --served-model-name spark25 --tensor-parallel-size 1 --gpu-memory-utilization 0.7 --enable-prefix-caching --chat-template /models/Spark-X2.5-4B/chat_template.jinjaExplore its uses
Keep exploring
Bonsai 2 · 27B
A compressed 27B-class reasoning model with publisher-provided GGUF packs and a dedicated llama.cpp fork for CUDA, Metal, and CPU.
DeepSeek V4.1 Flash
An open-weight model for reasoning, coding, agents, and image understanding. DeepSeek V4.1 Flash combines a 552B backbone with sparse activation and up to one million tokens of context. Choose the original checkpoint or a community uncensored variant below.
Qwen3.8
Explore 4 versions of Qwen3.8. Compare model sizes, packages, hardware requirements, and available setups.