anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
A compact 4.1B general-purpose language model with a native 1M-token context, over 200 languages and a hybrid attention design, tuned for coding and agent use. For developers who want a small open model.
Spark-X2.5-4B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download XHToken/Spark-X2.5-4B
Spark-X2.5-4B is a compact general-purpose language model from XHToken, with about 4.1B parameters, post-trained from Spark-X2.5-4B-Base. It covers coding, tool use, translation, writing, reasoning and chat in more than 200 languages, and it supports a native context window of up to 1M tokens. A 1.7B sibling exists in the same family.
It suits developers who want a small open model behind a coding agent or a chat tool. It also suits teams who need long documents or many languages from a small model that is lighter to host.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Run it behind an agent tool such as Codex | Ask it to write and explain a function |
| Global business | Localization teams | Translate and draft text across many languages | Turn a product note into several languages |
| Research | ML engineers | Test long-context behavior | Feed it a long document and ask questions |
Anyone who needs the largest possible model can skip it, since this one is built to be small.
| Use case | Who | What they get back |
|---|---|---|
| Coding help | Developers | Code and explanations from a small local model |
| Translation | Localization teams | Text in another language |
| Long documents | Analysts | Answers over a context of up to 1M tokens |
pip install -U huggingface_hub hf download XHToken/Spark-X2.5-4B
The card's run steps are cut off here, so check it for the recommended settings. Load the model in Transformers, or point a compatible runner at the files, then send it a prompt. Other people's quantized versions exist, which suit tools that need smaller files.
| Tool | What it does |
|---|---|
| Transformers | Loads the post-trained weights in Hugging Face format |
| vLLM and SGLang | Inference frameworks the card lists as compatible |
| llama.cpp and MLX | Compatible frameworks for running on local machines |
| Ollama and LM Studio | Platforms for quick deployment |
| LLaMA-Factory | A fine-tuning framework for customizing the model |
You load Spark-X2.5-4B in Transformers and ask it to write a small function and explain it. The card's visible text shows no sample output, so judge the answer on your own task.
A 4B model is small, so it is a good first model to try on a modest machine. Start with the BF16 weights or a quantized copy, then test it on your own prompts.
For every three sliding-window layers it uses one full-attention layer. The card says this keeps cache size and compute low while still allowing contexts up to 1M tokens. It was trained on Huawei Ascend clusters, with large-scale reinforcement learning and post-training steps such as MOPD.
A compact 4.1B general-purpose language model with a native 1M-token context, over 200 languages and a hybrid attention design, tuned for coding and agent use. For developers who want a small open model.
Made by XHToken on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Spark-X2.5-4B is a compact general-purpose language model from XHToken, with about 4.1B parameters, post-trained from Spark-X2.5-4B-Base. It covers coding, tool use, translation, writing, reasoning and chat in more than 200 languages, and it supports a native context window of up to 1M tokens. A 1.7B sibling exists in the same family.
Who it suits: It suits developers who want a small open model behind a coding agent or a chat tool. It also suits teams who need long documents or many languages from a small model that is lighter to host.
Industry | Who uses it | How they use it | Example
Software | Developers | Run it behind an agent tool such as Codex | Ask it to write and explain a function
Global business | Localization teams | Translate and draft text across many languages | Turn a product note into several languages
Research | ML engineers | Test long-context behavior | Feed it a long document and ask questions
Anyone who needs the largest possible model can skip it, since this one is built to be small.
Where to use it:
Use case | Who | What they get back
Coding help | Developers | Code and explanations from a small local model
Translation | Localization teams | Text in another language
Long documents | Analysts | Answers over a context of up to 1M tokens
How to set it up:
pip install -U huggingface_hub
hf download XHToken/Spark-X2.5-4B
How to use it: The card's run steps are cut off here, so check it for the recommended settings. Load the model in Transformers, or point a compatible runner at the files, then send it a prompt. Other people's quantized versions exist, which suit tools that need smaller files.
Tool | What it does
Transformers | Loads the post-trained weights in Hugging Face format
vLLM and SGLang | Inference frameworks the card lists as compatible
llama.cpp and MLX | Compatible frameworks for running on local machines
Ollama and LM Studio | Platforms for quick deployment
LLaMA-Factory | A fine-tuning framework for customizing the model
Example: You load Spark-X2.5-4B in Transformers and ask it to write a small function and explain it. The card's visible text shows no sample output, so judge the answer on your own task.
For newcomers and experts: A 4B model is small, so it is a good first model to try on a modest machine. Start with the BF16 weights or a quantized copy, then test it on your own prompts.
For every three sliding-window layers it uses one full-attention layer. The card says this keeps cache size and compute low while still allowing contexts up to 1M tokens. It was trained on Huawei Ascend clusters, with large-scale reinforcement learning and post-training steps such as MOPD.
A prompt, code or tool context goes in
Hybrid attention layers read it
The 4.1B model reasons and writes
Text, code or agent steps come out
Title: Weights size in gigabytes
In BF16: 8.2 GB
At 4-bit, estimated: 2.1 GB
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download XHToken/Spark-X2.5-4B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Spark-X2.5-4B This page | 8,697 | 1,442 | 4.1B | apache-2.0 | |
| Spark-X2.6-4B-AgentFastShares sparkx2_5 · spark2_5 · agent | 552 | 4 | 4.1B | apache-2.0 | |
| Spark-X2.6-4BShares sparkx2_5 · spark2_5 · text-generation | 28,117 | 1,041 | 4.1B | apache-2.0 | |
| Spark-X2.6-1.7BShares sparkx2_5 · spark2_5 · text-generation | 5,095 | 84 | 1.7B | apache-2.0 | |
| Spark-X2.6-4B-BaseShares sparkx2_5 · spark2_5 · text-generation | 2,331 | 47 | 4.1B | apache-2.0 | |
| Spark-X2.6-4B-FP8Shares sparkx2_5 · spark2_5 · text-generation | 2,048 | 39 | 4.1B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.