iFLYTEKSeptember 1, 2026

Spark-X2.5-4B

Spark-X2.5-4B is an on-device general model open-sourced under Apache 2.0 on September 1, 2026 by XHToken, an iFLYTEK subsidiary. It has about 4.1B parameters and uses a hybrid of sliding-window and full attention to support a native 1M-token context, covers more than 200 languages, and is tuned for agents, coding and tool use.

Text inputText outputOpen weights

At a glance

Context window
1M tokens
Max output
—
Text input / output · per 1M tokens
— / —
Knowledge cutoff
—

Benchmark snapshot

Best result in 6 of 7 categories

  • AcademicGPQA

    67.4

    Thinking (No Tools) · #5 of 15

  • CodingSWE-Bench Pro - Public

    44.4

    Thinking (With Tools) · #54 of 66

  • Computer UseMCP-Atlas

    54.6

    Thinking (With Tools) · #51 of 55

  • Language & CreationIFEval

    93.0

    Thinking (No Tools) · #1 of 8

  • Long ContextAA-LCR

    56.3

    Thinking (No Tools) · #22 of 22

  • Professionalτ²-Bench

    75.1

    Thinking (With Tools) · #22 of 40

View benchmark details (21)

Benchmark details

21 results · Best published score per benchmark, grouped by category

Benchmark · settingScoreRank
Academic
AIME 2026

Thinking (No Tools) · Mathematics

90.740 / 46
Gaokao 2026

Thinking (No Tools) · Mathematics

133Unranked
GPQA

Thinking (No Tools) · Scientific Reasoning

67.45 / 15
HLE

Thinking (No Tools) · Knowledge Exams

12.3121 / 151
HMMT Feb 2026

Thinking (No Tools) · Mathematics

81.211 / 12
IMO-AnswerBench

Thinking (No Tools) · Mathematics

74.217 / 17
SciCode

Thinking (No Tools) · Scientific Computing

34.787 / 98
Coding
SWE-bench Multilingual

Thinking (With Tools) · Repository Engineering

53.347 / 48
SWE-Bench Pro - Public

Thinking (With Tools) · Repository Engineering

44.454 / 66
SWE-bench Verified

Thinking (With Tools) · Repository Engineering

41.698 / 108
Computer Use
BFCL-V4

Thinking (With Tools) · Tool Orchestration

65.12 / 2
MCP-Atlas

Thinking (With Tools) · Tool Orchestration

54.651 / 55
MCPMark

Thinking (With Tools) · Tool Orchestration

14.21 / 1
Language & Creation
IF Bench

Thinking (No Tools) · Instruction Following

75.020 / 38
IFEval

Thinking (No Tools) · Instruction Following

93.01 / 8
Long Context
AA-LCR

Thinking (No Tools) · Long Reasoning

56.322 / 22
Professional
VitaBench 2.0

Thinking (With Tools) · Service Workflows

25.21 / 1
Workspace-Bench

Thinking (With Tools) · Office & Business

31.21 / 1
τ²-Bench

Thinking (With Tools) · Service Workflows

75.122 / 40
τ³-Bench

Thinking (With Tools) · Service Workflows

30.41 / 1
Research & Search
BrowseComp

Thinking (With Tools + Internet) · Fact Finding

40.954 / 61
11 more results in Computer Use, Language & Creation, Long Context and 2 more

Rank is this model's position among every model with a published result on that leaderboard; the bar shows how far up the field that is. Orange marks first place on leaderboards with at least 5 models. Unranked leaderboards publish a composite or direction-less score.

Back to benchmark snapshot ↑

Specifications

Provider
iFLYTEK
Model type
Reasoning model
Released
September 1, 2026
Total parameters
4.1B
Architecture
Dense
Context window
1M tokens
Input
Text
Output
Text
Licence
Apache 2.0
Commercial use
Commercial use allowed

Capabilities

ReasoningMultilingualTool useFunction callingCodingLong context

Model analysis

Spark-X2.5-4B is an on-device general model open-sourced on September 1, 2026 by XHToken, a wholly owned iFLYTEK subsidiary (also branded SparkLLM), alongside Spark-X2.5-1.7B. It is positioned as an on-device agent model covering chat, writing, translation, reasoning, coding and tool use, and was trained on Huawei Ascend clusters.

Read the full analysis

Architecture

It uses hybrid attention, three sliding-window layers (window 512) for every full-attention layer, to cut long-context compute and KV cache. The published config has 36 layers, hidden size 2560, 16 attention heads and 4 KV heads. The BF16 weights hold 4,112,079,360 parameters (about 7.7 GB). Native context is 1,048,576 tokens, and XHToken claims support for more than 200 languages.

Training

Pre-training used about 20T tokens; a separate long-context stage of several hundred billion tokens extended sequences to 1M. Post-training combined SFT, large-scale RL across several capability domains, and a distillation step XHToken calls MOPD that merges domain teachers into one model.

Official results

All in thinking mode, against Qwen3.5-9B/4B/2B and Gemma 4 12B/E4B/E2B: BFCL-V4 65.1, tau2-bench 75.1, tau3-bench 30.4, MCP-Atlas 54.6, BrowseComp 40.9, SWE-Bench Pro 44.4, SWE-Bench Verified 41.6, AIME 2026 90.7, HMMT Feb 2026 81.2, IFEval 93.0, AA-LCR 56.3, HLE 12.3 and GPQA 67.4. It still trails the larger Qwen3.5-9B or Gemma 4 12B on SWE-Bench Verified, GPQA, HLE, AA-LCR and IFEval. These are vendor-reported.

Deployment and license

Weights are on Hugging Face, GitHub, ModelScope and Ollama, with vLLM, SGLang, llama.cpp and MLX examples. Thinking is on by default and can be disabled with enable_thinking: false. The API on iFLYTEK’s MaaS platform is free for a limited time, with no long-term price announced. License: Apache 2.0.

Last reviewed 2026-10-18

LLMLearner on Spark-X2.5-4B

Our editorial read, one angle at a time, with the evidence behind each one.

Privacy and deployment

Spark-X2.5-4B adds about 1 GiB for long context and stronger vendor scores, but its claims are not independently tested

Our take: Spark-X2.5-4B is worth its extra memory if you need context beyond 128K, languages other than English and Chinese, or stronger math and instruction following. For a default small local model, MiniCPM5-2B has the stronger evidence.

What the extra parameters cost. Spark's official GGUF files are 2.42 GiB at Q4_K_M and 4.07 GiB at Q8_0, against MiniCPM5-2B's 1.45 and 2.50 GiB. The architecture offsets part of that difference. Only nine of Spark's 36 layers use full attention; the others use 512-token sliding windows. As a result, it needs about 36 KiB of KV cache per token, compared with MiniCPM's 42 KiB. Combined with Q4 weights, the totals are about 3.6 GiB versus 2.8 GiB at 32K, and 7.0 GiB versus 6.7 GiB at 128K.

The 1M context is not an on-device feature. At 1M tokens, the cache alone needs about 36 GiB at 16-bit precision. That requires a workstation-class GPU or an aggressively quantized cache, not a phone. Spark's self-reported AA-LCR score of 56.3 measures documents of up to 100K tokens; no independent test has yet shown how it performs near 1M.

Vendor results versus MiniCPM5-2B. Both companies report results in thinking mode on their own harnesses:

Spark-X2.5-4BMiniCPM5-2B
AIME 202690.786.5
HMMT Feb 202681.263.8
IFEval93.086.7
IFBench75.066.3
HLE12.38.9
BFCL-V465.166.6
SWE-bench Verified41.646.4

Spark leads on math and instruction following. MiniCPM is level on function calling and ahead on SWE-bench Verified. Spark's SWE-Bench Pro score of 44.4 is unusual: it is higher than Spark's own SWE-bench Verified result, although Pro is normally the harder test. MiniCPM reports 14.4 on Pro. Treat that number with caution until it is reproduced.

Evidence gap. As of October 7, 2026, Artificial Analysis has not tested Spark-X2.5-4B. MiniCPM5-2B has been tested, with an Intelligence Index of 12.5 and a low 21.9% hallucination rate. Spark's comparisons with Qwen3.5 and Gemma 4 come from its own model card.

Deployment. Spark uses a custom architecture with its own modeling code. Official vLLM, SGLang, llama.cpp, MLX and Ollama paths exist, but generic Llama tooling will not load it. The weights are licensed under Apache 2.0. The vendor claims support for more than 200 languages, but publishes no per-language results. A hosted API on iFlytek's MaaS platform is described as free for a limited time, with no long-term price announced.

KV-cache figures are LLMLearner calculations from each model's config.json at 16-bit precision, excluding runtime buffers; quantized caches reduce them. Data read October 7, 2026.

MixedAI-assistedUpdated Oct 7, 2026
4 sources
  • Spark-X2.5-4B GGUF files

    Q4_K_M 2.42 GiB, Q8_0 4.07 GiB, BF16 7.66 GiB.

    Documentation

  • Spark-X2.5-4B model card

    4.11B dense model with custom Spark2_5 architecture: 36 layers, one full-attention layer per three sliding-window layers (window 512), 4 KV heads of 256 dims, 1M context, Apache 2.0, 200+ languages claimed. Vendor results include AIME 2026 90.7, IFEval 93.0, SWE-Bench Pro 44.4, SWE-bench Verified 41.6.

    Model card2026-09-01

  • MiniCPM5-2B GGUF files

    Q4_K_M 1.45 GiB, Q8_0 2.50 GiB, F16 4.69 GiB.

    Documentation

  • MiniCPM5-2B on Artificial Analysis

    Intelligence Index 12.5 (Qwen3.5 4B 13.1, Qwen3.5 9B 11.2, Gemma 4 E4B 8.9, Gemma 4 12B 14.2); AA-LCR 59.3%; AA-Omniscience hallucination rate 21.9% (Qwen3.5 4B 86.6%).

    Independent evaluation

Spark-X2.5-4B vs competitors

Comparable results only · record is Spark-X2.5-4B's wins–losses

Spark-X2.5-4B benchmark scores against competitors
BenchmarkSpark-X2.5-4BThis modelvs DeepSeek-V4-FlashRecord 0–11vs MiniCPM5-2BRecord 7–2vs DeepSeek-V4-ProRecord 0–10vs Qwen3.5-397B-A17BRecord 0–10
HLE12.345.18.948.248.3
SWE-bench Verified41.679.046.480.676.4
SciCode34.745.326.350.844.8
SWE-Bench Pro - Public44.452.614.455.450.9
AIME 202690.795.886.596.791.3
BrowseComp40.973.2—83.478.6
SWE-bench Multilingual53.373.3—76.269.3
IF Bench75.079.266.3—76.5
IMO-AnswerBench74.288.4—89.880.9
HMMT Feb 202681.293.963.893.9—

Community discussion

Share the API, setup, and tradeoffs you actually tested. Rate the model once; comment as often as you like.

Sign in with Google to rate this model and leave a comment.

No community comments yet.