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 GGUF draft model that speeds up Qwen3.8-27B in llama.cpp through speculative decoding, reaching about 125 tokens per second on code and math on one RTX 3090. For people who run Qwen3.8-27B locally.
Qwen3.8-27B-DSpine-b16-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 aj9o9/Qwen3.8-27B-DSpine-b16-GGUF
This repository holds GGUF conversions of DSpine, a draft model that speeds up Qwen3.8-27B through speculative decoding in llama.cpp. A small drafter proposes tokens and the large model checks them. On one RTX 3090 with a Q4_K_M target, the card reports about 125 tokens per second on code and math.
It suits people who run Qwen3.8-27B on their own NVIDIA GPU and want faster text generation, especially for code.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Speed up a local coding model | Code completion that returns sooner |
| Local AI | Hobbyists with a 24 GB GPU | Get more tokens per second from the same card | Faster chat on an RTX 3090 |
| AI research | Inference researchers | Study speculative decoding drafters | Compare DSpine with DFlash2 on the same target |
| Infrastructure | ML engineers | Tune draft length for a given GPU | Test smaller drafts on cards where small batches are slow |
If you need stock llama.cpp with no custom build, you can skip it, because upstream does not support DSpine yet.
| Use case | Who | What they get back |
|---|---|---|
| Faster code generation | Developers | About 125 tokens per second on code and math, by the card's test |
| Faster chat | Local AI users | About 90 tokens per second on a mixed set of chat tasks |
| Tuning on other GPUs | Researchers | Reports from AMD, Intel and DGX Spark users that the card collects |
You need these first:
pip install -U huggingface_hub hf download aj9o9/Qwen3.8-27B-DSpine-b16-GGUF
cd llama.cpp cmake -B build -DGGML_CUDA=ON cmake --build build --config Release -j
Start llama-server with your target model and the draft model, then chat with it. Set the draft length and the context size yourself rather than using the defaults.
./build/bin/llama-server \ -m Qwen3.8-27B-Q4_K_M.gguf \ -md Qwen3.8-27B-DSpine-b16-Q4_K_M.gguf \ --spec-type draft-dflash \ --spec-draft-n-max 15 \ -ngl 999 --spec-draft-ngl 999 \ -fa on --jinja -c 32768 -np 1 \ --cache-type-k q8_0 --cache-type-v q8_0 \ --spec-draft-type-k q8_0 --spec-draft-type-v q8_0
| Tool | What it does |
|---|---|
| -m | Loads the Qwen3.8-27B target model |
| -md | Loads the DSpine draft model |
| --spec-draft-n-max | Sets how many tokens are drafted, where 15 is best on NVIDIA CUDA and the default is 3 |
| -c | Sets the context size, which you should choose yourself |
| --spec-draft-sampling probabilistic | Optional, and helps slightly when the temperature is above 0 |
You start the server with the command above and ask for a Python function that merges two sorted lists. The target model checks each block of drafted tokens, so the answer arrives faster than without a drafter, while the target still decides what is kept.
Speculative decoding lets a small model guess ahead so the big one can check many tokens at once. A good first step is to try the recommended Q4_K_M file with the settings above.
DSpine extends DFlash with a five-layer drafter. It takes the hidden states of five target layers as input and drafts 16 tokens at once, as one block. It adds causal block attention, a code bridge after each layer and a refinement step that builds a 16 by 16 transition table.
Speed depends on your GPU, and the numbers below come from one RTX 3090.
A GGUF draft model that speeds up Qwen3.8-27B in llama.cpp through speculative decoding, reaching about 125 tokens per second on code and math on one RTX 3090. For people who run Qwen3.8-27B locally.
Made by aj9o9 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 repository holds GGUF conversions of DSpine, a draft model that speeds up Qwen3.8-27B through speculative decoding in llama.cpp. A small drafter proposes tokens and the large model checks them. On one RTX 3090 with a Q4_K_M target, the card reports about 125 tokens per second on code and math.
Who it suits: It suits people who run Qwen3.8-27B on their own NVIDIA GPU and want faster text generation, especially for code.
Industry | Who uses it | How they use it | Example
Software | Developers | Speed up a local coding model | Code completion that returns sooner
Local AI | Hobbyists with a 24 GB GPU | Get more tokens per second from the same card | Faster chat on an RTX 3090
AI research | Inference researchers | Study speculative decoding drafters | Compare DSpine with DFlash2 on the same target
Infrastructure | ML engineers | Tune draft length for a given GPU | Test smaller drafts on cards where small batches are slow
If you need stock llama.cpp with no custom build, you can skip it, because upstream does not support DSpine yet.
Where to use it:
Use case | Who | What they get back
Faster code generation | Developers | About 125 tokens per second on code and math, by the card's test
Faster chat | Local AI users | About 90 tokens per second on a mixed set of chat tasks
Tuning on other GPUs | Researchers | Reports from AMD, Intel and DGX Spark users that the card collects
How to set it up: You need these first:
pip install -U huggingface_hub
hf download aj9o9/Qwen3.8-27B-DSpine-b16-GGUF
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j
How to use it: Start llama-server with your target model and the draft model, then chat with it. Set the draft length and the context size yourself rather than using the defaults.
./build/bin/llama-server \
-m Qwen3.8-27B-Q4_K_M.gguf \
-md Qwen3.8-27B-DSpine-b16-Q4_K_M.gguf \
--spec-type draft-dflash \
--spec-draft-n-max 15 \
-ngl 999 --spec-draft-ngl 999 \
-fa on --jinja -c 32768 -np 1 \
--cache-type-k q8_0 --cache-type-v q8_0 \
--spec-draft-type-k q8_0 --spec-draft-type-v q8_0
Tool | What it does
-m | Loads the Qwen3.8-27B target model
-md | Loads the DSpine draft model
--spec-draft-n-max | Sets how many tokens are drafted, where 15 is best on NVIDIA CUDA and the default is 3
-c | Sets the context size, which you should choose yourself
--spec-draft-sampling probabilistic | Optional, and helps slightly when the temperature is above 0
Example: You start the server with the command above and ask for a Python function that merges two sorted lists. The target model checks each block of drafted tokens, so the answer arrives faster than without a drafter, while the target still decides what is kept.
For newcomers and experts: Speculative decoding lets a small model guess ahead so the big one can check many tokens at once. A good first step is to try the recommended Q4_K_M file with the settings above.
DSpine extends DFlash with a five-layer drafter. It takes the hidden states of five target layers as input and drafts 16 tokens at once, as one block. It adds causal block attention, a code bridge after each layer and a refinement step that builds a 16 by 16 transition table.
The draft model reads the target's hidden states
It drafts a block of 16 tokens
The target model checks the block
Accepted tokens are kept
Good to know: Speed depends on your GPU, and the numbers below come from one RTX 3090.
Title: Decode speed on one RTX 3090 in tokens per second
No speculative decoding: 28 tok/s
DFlash2: 52 tok/s
DSpine on mixed chat: 90 tok/s
DSpine on code and math: 125 tok/s
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download aj9o9/Qwen3.8-27B-DSpine-b16-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 |
|---|---|---|---|---|---|
| Qwen3.8-27B-DSpine-b16-GGUF This page | 15,022 | 41 | 2B | apache-2.0 | |
| DSpine for Qwen3.8-27BShares dspine · draft-model · speculative-decoding | 4,332 | 222 | 2B | apache-2.0 | |
| Bielik-11B-v3.1-DFlash2Shares dflash · draft-model · speculative-decoding | 44 | 3 | 1.2B | apache-2.0 | |
| Bielik-11B-v3.1-DFlashShares dflash · draft-model · speculative-decoding | 36 | 3 | 1.2B | apache-2.0 | |
| Qwen3.8-27B-DFlash2-GGUF by z-labShares draft-model · speculative-decoding · llama.cpp | 506,737 | 162 | 1.9B | apache-2.0 | |
| Qwen3.8-Flash-Next-DFlash2-GGUFShares draft-model · speculative-decoding · llama.cpp | 3,960 | 4 | 603M | apache-2.0 |
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.