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 4B language model in GGUF form for on-device use, tuned for coding, agents and long context, with three thinking levels from none to high. Works in English and Chinese.
Spark-X2.6-4B-GGUF 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.6-4B-GGUF
Spark-X2.6-4B-GGUF holds GGUF files of Spark-X2.6-4B, a compact general-purpose language model from XHToken for running on your own device. Hugging Face lists it for English and Chinese.
The model keeps the architecture of Spark-X2.5-4B. The authors say the gains come from better post-training, mainly in coding, agent work, long context, multilingual use and reasoning.
Developers who want a small local model that handles tool use, planning and code, and people who build apps that must run on a device with limited resources.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers of on-device agents | Run a small model that plans and calls tools | A local assistant that works through a coding task |
| Product teams | Builders of apps with limited resources | Tune thinking to balance quality and speed | Use low effort for quick replies |
| Research | People comparing small models | Test a 4B model against larger ones | Check it against a 9B model |
Skip it if you need the largest models, since this one is built for small devices.
| Use case | Who | What they get back |
|---|---|---|
| Agentic workflows | Agent builders | Multi-step plans and tool calls from a small model |
| Coding help | Developers | Code and explanations on local hardware |
| Long-context tasks | Researchers | Answers over longer inputs |
pip install -U huggingface_hub hf download XHToken/Spark-X2.6-4B-GGUF
pip install transformers==4.57.1
Chat with the model through your runner and pick one of three thinking levels, none, low or high. The card Python example loads the original model, builds a chat prompt with thinking switched on and generates a reply.
| Thinking level | What it trades |
|---|---|
| none | No thinking, for the fastest and cheapest replies |
| low | Shorter reasoning, with a small score drop and much shorter output |
| high | Full reasoning for the best quality |
You ask the model a short factual question, with thinking set to low for a quick reply. The card says low effort cuts average output length by 22.0 percent for the 4B model, with a 1.7 point drop in score.
If you are new to local models, download the files, open them in a runner and start with a plain question at the low thinking level. Move to high only when answers need more care.
If you know the field, the architecture is unchanged from the earlier Spark-X2.5-4B and the improvements are credited to post-training. The authors say it runs as efficiently as Qwen3.5-4B and Gemma-E4B, or more so.
A compact 4B language model in GGUF form for on-device use, tuned for coding, agents and long context, with three thinking levels from none to high. Works in English and Chinese.
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.6-4B-GGUF holds GGUF files of Spark-X2.6-4B, a compact general-purpose language model from XHToken for running on your own device. Hugging Face lists it for English and Chinese.
The model keeps the architecture of Spark-X2.5-4B. The authors say the gains come from better post-training, mainly in coding, agent work, long context, multilingual use and reasoning.
Who it suits: Developers who want a small local model that handles tool use, planning and code, and people who build apps that must run on a device with limited resources.
Industry | Who uses it | How they use it | Example
Software | Developers of on-device agents | Run a small model that plans and calls tools | A local assistant that works through a coding task
Product teams | Builders of apps with limited resources | Tune thinking to balance quality and speed | Use low effort for quick replies
Research | People comparing small models | Test a 4B model against larger ones | Check it against a 9B model
Skip it if you need the largest models, since this one is built for small devices.
Where to use it:
Use case | Who | What they get back
Agentic workflows | Agent builders | Multi-step plans and tool calls from a small model
Coding help | Developers | Code and explanations on local hardware
Long-context tasks | Researchers | Answers over longer inputs
How to set it up:
pip install -U huggingface_hub
hf download XHToken/Spark-X2.6-4B-GGUF
pip install transformers==4.57.1
How to use it: Chat with the model through your runner and pick one of three thinking levels, none, low or high. The card Python example loads the original model, builds a chat prompt with thinking switched on and generates a reply.
Thinking level | What it trades
none | No thinking, for the fastest and cheapest replies
low | Shorter reasoning, with a small score drop and much shorter output
high | Full reasoning for the best quality
Example: You ask the model a short factual question, with thinking set to low for a quick reply. The card says low effort cuts average output length by 22.0 percent for the 4B model, with a 1.7 point drop in score.
For newcomers and experts: If you are new to local models, download the files, open them in a runner and start with a plain question at the low thinking level. Move to high only when answers need more care.
If you know the field, the architecture is unchanged from the earlier Spark-X2.5-4B and the improvements are credited to post-training. The authors say it runs as efficiently as Qwen3.5-4B and Gemma-E4B, or more so.
Download the GGUF file
Open it in a local runner
Choose a thinking level
Read the reply
Good to know:
Title: Average output length drop from high to low effort
Spark-X2.6-1.7B: 37.3 percent
Spark-X2.6-4B: 22.0 percent
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download XHToken/Spark-X2.6-4B-GGUF
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.6-4B-GGUF This page | 687,668 | 310 | 4.4B | apache-2.0 | |
| Spark-X2.6-1.7B-GGUFShares sparkx2_5 · gguf · text-generation | 26,744 | 50 | 2B | apache-2.0 | |
| Spark-X2.6-4B GGUFShares sparkx2_5 · gguf · text-generation | 27,090 | 20 | 4.1B | apache-2.0 | |
| Spark-X2.6-4BShares sparkx2_5 · text-generation · conversational | 28,117 | 1,041 | 4.1B | apache-2.0 | |
| Spark-X2.5-4BShares sparkx2_5 · text-generation · conversational | 8,697 | 1,442 | 4.1B | apache-2.0 | |
| Spark-X2.6-1.7BShares sparkx2_5 · text-generation · conversational | 5,095 | 84 | 1.7B | 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.