Model reference · open weights
Spark-X2.5 is an open-weight language model from XHToken. Spark-X2.5-4B-FP8 (FP8) weighs 4.5 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the XHToken/Spark-X2.5-4B model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | XHToken |
|---|---|
| Released | 2026-08-24 |
| Parameters | 4.1B |
| VRAM | 4.5 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB FP8 without its speed-up here | 7 | 3 | 158K | 11.6 GB |
| RTX 4060 Ti 16 GB | 12 | 5 | 258K | 15.4 GB |
| RTX 3090 24 GB FP8 without its speed-up here | 22 | 10 | 470K | 23.4 GB |
| RTX 4090 24 GB | 22 | 10 | 468K | 23.4 GB |
| RTX 5090 32 GB | 31 | 15 | 672K | 31.0 GB |
| L40S 48 GB | 47 | 22 | 1014K | 44.0 GB |
| A100 80 GB FP8 without its speed-up here | 90 | 42 | all 1024K | 78.2 GB |
| H100 80 GB | 57 | 22 | all 1024K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 70 | 27 | all 1024K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 81 | 31 | all 1024K | 107 GB |
| H200 141 GB | 106 | 41 | all 1024K | 138 GB |
| B200 180 GB | 137 | 34 | all 1024K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel · FP8 without its speed-up here | 21 | 10 | 447K | 11.6 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 6.0 GB | 6.9 GB |
| 5 | 9.2 GB | 13.7 GB |
| 8 | 11.6 GB | 18.9 GB |
| 16 | 18.1 GB | 32.6 GB |
| 32 | 31.1 GB | 60.1 GB |
| 64 | 57.1 GB | 115 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| Spark-X2.5-4B ↗ | 4.1B | BF16 | 8.2 GB | RTX 3060 12 GB |
| Spark-X2.5-1.7B ↗ | 1.7B | BF16 | 3.4 GB | RTX 3060 12 GB |
| Spark-X2.5-4B-FP8 (above) ↗ | 4.1B | FP8 | 4.5 GB | RTX 3060 12 GB |
From the model card
[!Note] This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format.
We are introducing Spark-X2.5-4B and Spark-X2.5-1.7B, two compact, general-purpose language models designed to make capable AI more practical, efficient, and accessible. The models deliver strong performance across a broad range of everyday tasks—including conversation, writing, translation, reasoning, coding, tool use, and agentic workflows—achieving leading results among open-source models of comparable size. Spark-X2.5 combines an efficiency-oriented architecture with native context windows of up to 1M tokens, and support for more than 200 languages.
Technical Highlights:
For agent tasks, balancing performance, inference speed, and cache usage has long been a key bottleneck limiting model performance. Spark-X2.5 systematically integrates and optimizes mature attention technologies, combining sliding-window attention (SWA) with a hybrid full-attention architecture. This approach leverages the strengths of both mechanisms while avoiding the limitations of relying on a single structure, achieving an effective balance among performance, inference efficiency, and KV-cache size—thereby improving its practicality and effectiveness across real-world deployment scenarios.
Spark-X2.5 is pretrained on approximately 20 trillion tokens from a diverse corpus spanning web pages, books, academic publications, code, and encyclopedic materials. Particular attention is paid to data quality, domain coverage, and the sampling weights assigned to different data categories. Extensive data-mixture studies are conducted to determine an effective balance among mathematics, logic, code, and other high-value domains. This enables the models to acquire broad general knowledge while developing stronger capabilities in complex reasoning and code generation. Long-context capability is developed through a dedicated training stage comprising hundreds of billions of tokens, with sequence lengths extending to 1M tokens.
Post-training begins with supervised fine-tuning on a carefully curated corpus. This stage establishes robust instruction following, structured generation, and task-completion, while providing a stable policy initialization for reinforcement learning. We subsequently apply large-scale reinforcement learning across several capability domains, including language understanding, reasoning, programming, tool-augmented agentic behavior, and instruction following. This process yields a set of domain-specialized teacher policies, whose complementary strengths are consolidated into a single deployable model through MOPD.
We evaluate our models and compare them with leading on-device models of similar size across a broad range of tasks, including agent, code, math, general and knowledge.
The examples below serve a local Spark-X2.5-4B checkpoint. Set MODEL_PATH to its absolute path before starting a container:
export MODEL_PATH=/absolute/path/to/Spark-X2.5-4B
Use the pre-built image that tracks the Spark-X2.5 runtime:
docker pull lmsysorg/sglang:nightly-dev-cu13-20260827-20621aa1
# A3 daily build
export SGLANG_IMAGE=quay.io/ascend/sglang:main-cann9.0.0-a3
# A2 daily build (use this instead on A2 hardware)
export SGLANG_IMAGE=quay.io/ascend/sglang:main-cann9.0.0-910b
docker pull "$SGLANG_IMAGE"
The following commands start an OpenAI-compatible API server configured for a maximum context length of 1,048,576 tokens. This setting req
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.