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 small draft model that speeds up Spark-X2.6-1.7B through speculative decoding, guessing up to seven tokens per step. For people who run that model locally on a llama.cpp build that supports it.
Spark-X2.6-1.7B-DSpark-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.
cd llama.cpp cmake -S . -B build-cuda -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON cmake --build build-cuda --target llama-server -j8
This is a small draft model in BF16 GGUF format, made to speed up Spark-X2.6-1.7B through speculative decoding. The small model guesses up to seven tokens at once, and the main model checks the guesses together. That means fewer one-by-one steps for the main model. The main model can be in BF16 or in a quantized GGUF.
People who already run Spark-X2.6-1.7B locally and want faster replies, and researchers who study speculative decoding.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers with a local model | Pair the draft with the main model in a server | Serve a faster local chat endpoint |
| Local AI | Hobbyists with an NVIDIA GPU | Raise tokens per second on one card | Run a math or coding prompt at higher speed |
| Research | Inference researchers | Study how many drafted tokens get accepted | Compare acceptance in thinking and non-thinking modes |
You can skip it if you do not run Spark-X2.6-1.7B, since the draft only helps that one target model.
| Use case | Who | What they get back |
|---|---|---|
| Faster local chat | App developers | The same style of reply, produced with fewer main-model steps |
| Benchmarking | Researchers | Acceptance length and tokens per second with and without the draft |
| On-device agents | Builders of small agents | Quicker generation from a 1.7B model |
You need the fork of llama.cpp, a build with CUDA, the main model file and this draft file. The card says support in the main llama.cpp project is still in progress. The sample steps assume a Linux machine with an NVIDIA card.
cd llama.cpp cmake -S . -B build-cuda -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON cmake --build build-cuda --target llama-server -j8
To fetch this repository's files yourself, Hugging Face gives these steps:
pip install -U huggingface_hub hf download XHToken/Spark-X2.6-1.7B-DSpark-GGUF
Start llama-server with the main model and this draft, then send chat requests to its OpenAI-compatible route on port 8080. The card names the files Spark-target.gguf and Spark-draft.gguf in its command.
set -o pipefail ./build-cuda/bin/llama-server \ -m models/Spark-target.gguf \ -md models/Spark-draft.gguf \ --alias spark-dspark \ --spec-type draft-dspark \ --spec-draft-sampling greedy \ --spec-draft-n-max 7 \ --spec-draft-p-min 0 \ -ngl 999 -ngld 999 \ -ctk f16 -ctv f16 \ -ctkd f16 -ctvd f16 \ -fa on \ -c 8192 -np 1 \ -b 2048 -ub 512 -t 8 \ --jinja \ --host 127.0.0.1 --port 8080 \ 2>&1 | tee dspark-server.log
| Option | What it does |
|---|---|
| -m | Loads the main Spark-X2.6-1.7B model |
| -md | Loads this draft model |
| --spec-type draft-dspark | Turns on DSpark drafting |
| --spec-draft-n-max 7 | Lets the draft propose up to seven tokens per pass |
| --alias spark-dspark | Sets the model name that requests use |
With the server running, you send a chat request with the model name spark-dspark and one user message, "你好". You set temperature 1.0, top_p 0.95 and max_tokens 512, with streaming off. The server returns a normal chat completion. The card shows no sample reply.
If you are new, remember that this file is a helper and cannot chat on its own. Run it only next to the main Spark model, and start with the one server command above.
For experts, the draft has 5 sliding-window layers with a 512-token window and a hidden size of 2048. It reads hidden states from target layers 2, 8, 14, 19 and 25 and drafts 7 tokens per forward pass. The acceptance length counts one extra target token, so 8 is the top value. The speed-up shrinks when the main model is quantized.
A small draft model that speeds up Spark-X2.6-1.7B through speculative decoding, guessing up to seven tokens per step. For people who run that model locally on a llama.cpp build that supports it.
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: This is a small draft model in BF16 GGUF format, made to speed up Spark-X2.6-1.7B through speculative decoding. The small model guesses up to seven tokens at once, and the main model checks the guesses together. That means fewer one-by-one steps for the main model. The main model can be in BF16 or in a quantized GGUF.
Who it suits: People who already run Spark-X2.6-1.7B locally and want faster replies, and researchers who study speculative decoding.
Industry | Who uses it | How they use it | Example
Software | Developers with a local model | Pair the draft with the main model in a server | Serve a faster local chat endpoint
Local AI | Hobbyists with an NVIDIA GPU | Raise tokens per second on one card | Run a math or coding prompt at higher speed
Research | Inference researchers | Study how many drafted tokens get accepted | Compare acceptance in thinking and non-thinking modes
You can skip it if you do not run Spark-X2.6-1.7B, since the draft only helps that one target model.
Where to use it:
Use case | Who | What they get back
Faster local chat | App developers | The same style of reply, produced with fewer main-model steps
Benchmarking | Researchers | Acceptance length and tokens per second with and without the draft
On-device agents | Builders of small agents | Quicker generation from a 1.7B model
How to set it up: You need the fork of llama.cpp, a build with CUDA, the main model file and this draft file. The card says support in the main llama.cpp project is still in progress. The sample steps assume a Linux machine with an NVIDIA card.
cd llama.cpp
cmake -S . -B build-cuda -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
cmake --build build-cuda --target llama-server -j8
To fetch this repository's files yourself, Hugging Face gives these steps:
pip install -U huggingface_hub
hf download XHToken/Spark-X2.6-1.7B-DSpark-GGUF
How to use it: Start llama-server with the main model and this draft, then send chat requests to its OpenAI-compatible route on port 8080. The card names the files Spark-target.gguf and Spark-draft.gguf in its command.
set -o pipefail
./build-cuda/bin/llama-server \
-m models/Spark-target.gguf \
-md models/Spark-draft.gguf \
--alias spark-dspark \
--spec-type draft-dspark \
--spec-draft-sampling greedy \
--spec-draft-n-max 7 \
--spec-draft-p-min 0 \
-ngl 999 -ngld 999 \
-ctk f16 -ctv f16 \
-ctkd f16 -ctvd f16 \
-fa on \
-c 8192 -np 1 \
-b 2048 -ub 512 -t 8 \
--jinja \
--host 127.0.0.1 --port 8080 \
2>&1 | tee dspark-server.log
Option | What it does
-m | Loads the main Spark-X2.6-1.7B model
-md | Loads this draft model
--spec-type draft-dspark | Turns on DSpark drafting
--spec-draft-n-max 7 | Lets the draft propose up to seven tokens per pass
--alias spark-dspark | Sets the model name that requests use
Example: With the server running, you send a chat request with the model name spark-dspark and one user message, "你好". You set temperature 1.0, top_p 0.95 and max_tokens 512, with streaming off. The server returns a normal chat completion. The card shows no sample reply.
For newcomers and experts: If you are new, remember that this file is a helper and cannot chat on its own. Run it only next to the main Spark model, and start with the one server command above.
For experts, the draft has 5 sliding-window layers with a 512-token window and a hidden size of 2048. It reads hidden states from target layers 2, 8, 14, 19 and 25 and drafts 7 tokens per forward pass. The acceptance length counts one extra target token, so 8 is the top value. The speed-up shrinks when the main model is quantized.
Prompt reaches the server
Draft model guesses up to 7 tokens
Main model checks them together
Accepted tokens are returned
Good to know:
Title: Average tokens per second on an RTX 4090, from the card's own tests
BF16 alone: 220 tok/s
BF16 with DSpark: 463 tok/s
Q4_K_M alone: 424 tok/s
Q4_K_M with DSpark: 650 tok/s
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download XHToken/Spark-X2.6-1.7B-DSpark-GGUF
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-1.7B-DSpark-GGUF This page | 969 | 10 | 345M | apache-2.0 | |
| Spark-X2.6-4B-DSpark-GGUFShares sparkx2_6 · dspark · draft-model | 4,008 | 29 | 624M | apache-2.0 | |
| MiniCPM-OCR 1.0 DSparkShares dspark · draft-model · speculative-decoding | 12,549 | 14 | 297M | apache-2.0 | |
| Qwen3.8-27B-DFlash2-GGUF by z-labShares draft-model · speculative-decoding · gguf | 506,737 | 162 | 1.9B | apache-2.0 | |
| Qwen3.8-27B-DSpine-b16-GGUFShares draft-model · speculative-decoding · gguf | 15,022 | 41 | 2B | apache-2.0 | |
| Qwen3.8-Flash-Next-DFlash2-GGUFShares draft-model · speculative-decoding · gguf | 3,960 | 4 | 603M | 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.