Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
Compact 4.1B-parameter text model in FP8 form for on-device use, with three thinking levels (none, low, high) and English and Chinese support. Aimed at coding and agent work on small hardware.
Spark-X2.6-4B-FP8 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 transformers==4.57.1 pip install -U huggingface_hub hf download XHToken/Spark-X2.6-4B-FP8
Spark-X2.6-4B-FP8 is an FP8 copy of Spark-X2.6-4B, a compact general-purpose language model from XHToken meant to run on a device. It has 4.1B parameters and about 4.1 GB of weights. The card says it improves on Spark-X2.5-4B in coding, agent work, long context and reasoning through better post-training.
Developers who want a small model for coding helpers, tool-using agents or chat on limited hardware, in English or Chinese. The card also compares it against other small on-device models such as Qwen3.5-4B and Gemma-E4B.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Run a coding or tool-using helper on their own machine | Ask it to plan a small code change in several steps |
| On-device apps | App builders | Ship a compact model with an app and tune how much it reasons | Set a low thinking level for quick replies |
| Multilingual products | Teams serving English and Chinese users | Answer questions in either language | Ask a factual question in Chinese and read the reply |
| Research | Model evaluators | Compare a 4B model against larger ones on agent and code tasks | Check how the thinking levels change score and length |
Skip it if you need the largest models, since the card's comparisons are with models of similar size and some about 9B.
| Use case | Who | What they get back |
|---|---|---|
| Coding help | Developers | Code suggestions and multi-step plans |
| Agent tasks | Agent builders | Tool-use decisions from a small local model |
| Quick chat | App builders | Short replies when thinking is set low or off |
You need Python and pip. The card asks for one specific transformers version.
pip install transformers==4.57.1 pip install -U huggingface_hub hf download XHToken/Spark-X2.6-4B-FP8
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "XHToken/Spark-X2.6-4B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype="auto",
device_map="auto",
)The card's quickstart names the base repository, so swap in this repository's own name to load the FP8 copy. Then build a chat message and pass it through the chat template, which takes an enable_thinking setting.
| Tool | What it does |
|---|---|
| AutoTokenizer | Loads the tokenizer for the model |
| AutoModelForCausalLM | Loads the model and places it on available devices |
| apply_chat_template | Turns a chat message into model input, with the thinking setting |
| thinking levels | Three settings, none, low and high, trading reasoning for speed and cost |
You send the card's own sample question, "What is the capital of Anhui Province?", with thinking turned on. The model reasons first, then returns its answer as text. Turning thinking down gives a shorter reply.
If you are new, this is a small chat model you can run yourself, and the three thinking levels let you choose between quick and careful answers. Start with the quickstart code and one question.
For people in the field, the card says the architecture matches Spark-X2.5-4B and the gains come from post-training. In its own test, going from high to low reasoning cost 1.7 average score points and cut output length by 22.0 percent for the 4B model. The 1.7B model lost 4.0 points and 37.3 percent of length.
Compact 4.1B-parameter text model in FP8 form for on-device use, with three thinking levels (none, low, high) and English and Chinese support. Aimed at coding and agent work on small hardware.
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-FP8 is an FP8 copy of Spark-X2.6-4B, a compact general-purpose language model from XHToken meant to run on a device. It has 4.1B parameters and about 4.1 GB of weights. The card says it improves on Spark-X2.5-4B in coding, agent work, long context and reasoning through better post-training.
Who it suits: Developers who want a small model for coding helpers, tool-using agents or chat on limited hardware, in English or Chinese. The card also compares it against other small on-device models such as Qwen3.5-4B and Gemma-E4B.
Title: Who uses it, and how
Industry | Who uses it | How they use it | Example
Software | Developers | Run a coding or tool-using helper on their own machine | Ask it to plan a small code change in several steps
On-device apps | App builders | Ship a compact model with an app and tune how much it reasons | Set a low thinking level for quick replies
Multilingual products | Teams serving English and Chinese users | Answer questions in either language | Ask a factual question in Chinese and read the reply
Research | Model evaluators | Compare a 4B model against larger ones on agent and code tasks | Check how the thinking levels change score and length
Skip it if you need the largest models, since the card's comparisons are with models of similar size and some about 9B.
Where to use it:
Use case | Who | What they get back
Coding help | Developers | Code suggestions and multi-step plans
Agent tasks | Agent builders | Tool-use decisions from a small local model
Quick chat | App builders | Short replies when thinking is set low or off
How to set it up: You need Python and pip. The card asks for one specific transformers version.
pip install transformers==4.57.1
pip install -U huggingface_hub
hf download XHToken/Spark-X2.6-4B-FP8
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "XHToken/Spark-X2.6-4B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype="auto",
device_map="auto",
)
How to use it: The card's quickstart names the base repository, so swap in this repository's own name to load the FP8 copy. Then build a chat message and pass it through the chat template, which takes an enable_thinking setting.
Tool | What it does
AutoTokenizer | Loads the tokenizer for the model
AutoModelForCausalLM | Loads the model and places it on available devices
apply_chat_template | Turns a chat message into model input, with the thinking setting
thinking levels | Three settings, none, low and high, trading reasoning for speed and cost
Example: You send the card's own sample question, "What is the capital of Anhui Province?", with thinking turned on. The model reasons first, then returns its answer as text. Turning thinking down gives a shorter reply.
For newcomers and experts: If you are new, this is a small chat model you can run yourself, and the three thinking levels let you choose between quick and careful answers. Start with the quickstart code and one question.
For people in the field, the card says the architecture matches Spark-X2.5-4B and the gains come from post-training. In its own test, going from high to low reasoning cost 1.7 average score points and cut output length by 22.0 percent for the 4B model. The 1.7B model lost 4.0 points and 37.3 percent of length.
Send a chat message
Choose a thinking level
Model reasons, or skips it
Read the text answer
Good to know:
Title: Average output length drop going from high to low reasoning
Spark-X2.6-1.7B: 37.3%
Spark-X2.6-4B: 22%
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download XHToken/Spark-X2.6-4B-FP8
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 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-FP8 This page | 2,048 | 39 | 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.5-4BShares sparkx2_5 · spark2_5 · text-generation | 8,697 | 1,442 | 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-1.7B-BaseShares sparkx2_5 · spark2_5 · text-generation | 1,272 | 15 | 1.7B | apache-2.0 |
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
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.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…