2026-11-26 15:51 UTC

DSpark reaches 2.25× in a single-GPU local benchmark

state: expiredheat: mediumuncertainty: mediumrelevance: mediumspeculative-decoding local-inference consumer-gpuJuraj JumicDeepSeek

What is this?

An independent, open benchmark project reports testing DeepSeek’s DSpark speculative decoding with llama.cpp on one AMD Radeon RX 7900 GRE, using Qwen3-8B Q8_0. It reports peak generation speeds of 115 tokens/s on Vulkan (1.86× its non-speculative baseline) and 133 tokens/s on ROCm (2.25×), with the best draft length differing by backend. Results also vary by task: the project reports larger gains for coding than Q&A. These are single-GPU, batch-size-one results from a small prompt set, not evidence that other GPUs or workloads will see the same gains; the project invites users to contribute more measurements.

Why it matters

The benchmark offers a useful, hands-on indication that DSpark can substantially speed up local generation on at least one consumer GPU—and that the best settings depend on the GPU backend and task. This could help local-LLM users decide whether to test speculative decoding, but the headline 2.25× result comes from one card, one model, and a small prompt set; it should not be generalized to other hardware or workloads.

Current assessment

An independent benchmark repository reports batch-size-one tests of DeepSeek DSpark in llama.cpp, using Qwen3-8B Q8_0 on one 16 GB AMD Radeon RX 7900 GRE. It reports 62 tokens/s without speculation versus 115 tokens/s on Vulkan (1.86×, best at 3 draft tokens) and 133 tokens/s on ROCm (2.25×, best at 7). DSpark was faster than the tested DFlash and small-draft-model alternatives on this setup. Reported gains varied by task—largest for coding, smallest for Q&A—and prompt processing was about 8–9% slower with the drafter loaded. The author also reports that speculative runs sometimes produce different text from ordinary greedy decoding, while attributing this to batch verification and near-tied token choices rather than a DSpark-specific quality change; exact reproducibility may therefore matter to some users. Evidence is an open, reproducible project’s results, not an independent replication: one GPU/model, 32 prompts per setting, small category samples, greedy decoding, and limited ROCm settings. Treat differences under about 3% as noise per the project. Practical implication: DSpark is worth testing for faster local generation, but benchmark the target GPU, backend, and workload rather than assuming the 2.25× figure transfers. More contributed GPU results would establish how broadly the gains hold.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-25 17:07⭐ origin directly observedShow HN: Benchmarking DSpark speculative decoding on a consumer GPU
Termich on hacker news
—
10-25 17:07amplified on hacker news 👑hn.story.50233709
Termich
peak 2 · 0 comments · 98% of case engagement
10-25 17:26our radar first saw it · +0.3hdiscovery anchor: hn.story.50233709—

Evidence (1) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn ⭐Show HN: Benchmarking DSpark speculative decoding on a consumer GPU
Retrieved article excerpt

Open article · Retrieved 2026-10-25T17:27:49.555944+00:00

[dspark-local-bench](https://github.com/juraj-jumic/dspark-local-bench/blob/main/assets/banner.svg)

---

[License: MIT](https://github.com/juraj-jumic/dspark-local-bench/blob/main/LICENSE)
[llama.cpp b11865](https://github.com/ggml-org/llama.cpp/releases/tag/b11865)
[Backends](https://github.com/juraj-jumic/dspark-local-bench#5-contribute-your-gpu)
[DSpark paper](https://arxiv.org/abs/2607.05147)
  
**Does DSpark speculative decoding make *your* local LLM faster?**  
Reproducible single-user benchmarks for llama.cpp on consumer GPUs. Run them on yours and add a row.

## Table of Contents

1. [Introduction](https://github.com/juraj-jumic/dspark-local-bench#1-introduction)
2. [Results](https://github.com/juraj-jumic/dspark-local-bench#2-results)
3. [Quick Start](https://github.com/juraj-jumic/dspark-local-bench#3-quick-start)
4. [What Gets Measured](https://github.com/juraj-jumic/dspark-local-bench#4-what-gets-measured)
5. [Contribute Your GPU](https://github.com/juraj-jumic/dspark-local-bench#5-contribute-your-gpu)
6. [Ecosystem Status](https://github.com/juraj-jumic/dspark-local-bench#6-ecosystem-status)
7. [License](https://github.com/juraj-jumic/dspark-local-bench#7-license)

## 1. Introduction

**Speculative decoding** makes text generation faster without changing the output. A small *draft* model
guesses the next few tokens, and the big model checks all of them in one pass. Every guess it accepts is a
token you didn't have to wait for.

[**DSpark**](https://huggingface.co/papers/2607.05147) is DeepSeek's take on it: the drafter proposes a
whole block of tokens at once, and a trained *confidence head* predicts which of them will survive.
llama.cpp has supported it since July 2026 (`--spec-type draft-dspark`), and Ollama runs it through `DRAFT`
in a Modelfile.

The published speedups come from servers and high-end NVIDIA cards. This project asks the questions a
**single local user** cares about:

- **How much faster is it really** on a consumer GPU, compared with every other speculative method in llama.cpp?
- **Which settings work best:** how many tokens to draft, and whether the confidence cutoff helps or hurts?
- **What does it cost:** how much slower is prompt processing, which you feel as the wait before the first token?

## 2. Results

**One card, two backends:** AMD Radeon RX 7900 GRE 16 GB, Qwen3-8B Q8\_0, 32 prompts per setting.

|  | Vulkan | ROCm |
| --- | --- | --- |
| No speculation | 62 tok/s | 59 tok/s |
| **DSpark, best setting** | 115 tok/s · 1.86× · drafts 3 tokens | **133 tok/s · 2.25× · drafts 7 tokens** |
| DFlash | 95 tok/s · 1.54× | 110 tok/s · 1.86× |
| Small draft model (Qwen3-0.6B) | 84 tok/s · 1.36× | 76 tok/s · 1.29× |

- **DSpark is the fastest method on both backends.** ROCm with DSpark is the fastest setup overall, at
  133 tok/s, 2.25× plain decoding. n-gram lookup does almost nothing on these prompts (1.02×).
- **The best draft length depends on the backend.** Vulkan is fastest with 3-token drafts and drops to 1.63×
  with 7. ROCm is the opposite: fastest with 7 and only 1.85× with 3. The likely reason is that ROCm checks
  a block of drafted tokens more cheaply: it processes prompts 24% faster, while plain decoding is slightly
  slower. **Any fixed setting gives up 13–18% on one backend**, which is the case for drafts that adapt their length.
- **The confidence cutoff helps only a little.** On Vulkan, `--spec-draft-p-min 0.3` adds about 3%, and
  cutoffs of 0.5 and above make it slower. At 0.9 it drops to 1.28×.
- **Keep the drafter at Q8\_0.** The BF16 drafter was slower (1.55× vs 1.72× at 4 tokens) and no more accurate.
- **Prompt processing barely suffers:** about 8–9% slower with the drafter loaded, on both backends.
- **The gain depends on the task:** coding gains the most (2.3× on Vulkan, 3.2× on ROCm), Q&A the least (1.5–1.6×).
- **Same quality, but not identical text.** We answered 16 prompts with and without speculation
  ([`check_lossless.py`](https://github.com/juraj-jumic/dspark-local-bench/blob/main/scripts/check_lossless.py)). Plain decoding reproduces itself exactly (16/16), but
  with DSpark only 6/16 answers (Vulkan) and 5/16 (ROCm) are identical. The rest switch to an equally fluent
  word at some point ("TV series" → "TV show") and continue from there. **This isn't DSpark-specific:** a
  classic draft model diverges just as often (5/16), often at the very same words. The cause is that llama.cpp
  checks drafted tokens in batches, which rounds slightly differently than decoding one token at a time and
  flips near-tied words. This matters only if you need bit-exact reproducible output.

[Decode speedup per method on ROCm](https://github.com/juraj-jumic/dspark-local-bench/blob/main/assets/speedup-rocm.svg)
  
  
[Decode speedup per method on Vulkan](https://github.com/juraj-jumic/dspark-local-bench/blob/main/assets/speedup-vulkan.svg)

The fastest commands on this machine:

```
# ROCm: needs the ROCm libraries (setup_windows.ps1 -Backend rocm installs them)
llama-server -m Qwen3-8B-Q8_0.gguf -md dspark-Qwen3-8B-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 7 -ngl all -ngld all -fa on --device ROCm1
# Vulkan
llama-server -m Qwen3-8B-Q8_0.gguf -md dspark-Qwen3-8B-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 3 --spec-draft-p-min 0.3 -ngl all -ngld all -fa on --device Vulkan0
```

Note

One GPU, one model and greedy decoding so far, with 8 prompts per category. Treat differences under about 3%
as noise. The 21-setting quick screen, which includes the cutoff and BF16 results, ran on Vulkan only. ROCm was
measured at draft lengths 3, 5 and 7. Other GPUs may prefer other settings, which is exactly what
[contributed results](https://github.com/juraj-jumic/dspark-local-bench#5-contribute-your-gpu) will show.

Full tables, with per-category speedups and acceptance rates: [Vulkan](https://github.com/juraj-jumic/dspark-local-bench/blob/main/results/rx7900gre-win11/qwen3-8b__vulkan.md),
[ROCm](https://github.com/juraj-jumic/dspark-local-bench/blob/main/results/rx7900gre-win11/qwen3-8b__rocm.md) and the [Vulkan quick screen](https://github.com/juraj-jumic/dspark-local-bench/blob/main/results/rx7900gre-win11/qwen3-8b-screen__vulkan.md).

## 3. Quick Start

You need Python 3.10+, git and about 15 GB of disk. The setup script downloads a prebuilt llama.cpp,
verifies its checksum, and installs pinned Python packages into a project-local `.venv`, so there's nothing
to compile and nothing installed system-wide. The main config needs a GPU with **12 GB or more**; for 8 GB
cards, use `configs/qwen3-8b-q4.json` instead.

**1. Set up** for your system and GPU:

| System | GPU | Command |
| --- | --- | --- |
| Windows (PowerShell 7) | any (AMD, Intel, NVIDIA) | `.\scripts\setup_windows.ps1 -Backend vulkan` |
| Windows (PowerShell 7) | NVIDIA | `.\scripts\setup_windows.ps1 -Backend cuda` |
| Windows (PowerShell 7) | AMD Radeon (tested: RX 7900 GRE) | `.\scripts\setup_windows.ps1 -Backend rocm` (adds about 3 GB of AMD libraries) |
| Linux | any | `./scripts/setup_unix.sh vulkan` |
| Linux | NVIDIA / AMD | `./scripts/setup_unix.sh cuda` or `rocm` (ROCm must be installed on the system) |
| macOS (Apple Silicon) | built-in | `./scripts/setup_unix.sh metal` |

```
git clone https://github.com/juraj-jumic/dspark-local-bench
cd dspark-local-bench
# run your setup command from the table, then activate the environment:
.venv\Scripts\Activate.ps1          # Windows
. .venv/bin/activate                # Linux / macOS
python scripts/fetch_models.py configs/qwen3-8b.json
```

Tip

**Windows says "running scripts is disabled on this system"?** That's Windows' default for PowerShell
scripts. Allow them for your user account once, then run the setup again:
`Set-ExecutionPolicy -Scope CurrentUser RemoteSigned`

**Linux requirements**

- The prebuilt binaries are built on **Ubuntu 24.04**, so they need a system at least that new: Ubuntu 24.04+,
  Debian 13+, Fedora 40+ or similar. On older systems (Ubuntu 22.04, Debian 12) they fail to start with a
  `GLIBC` error; [build llama.cpp yourself](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md)
  and pass `--server path/to/llama-server`.
- The binaries need OpenMP and, for Vulkan, the Vulkan loader and your GPU's driver:
  `sudo apt install libgomp1 libvulkan1 mesa-vulkan-drivers` on Ubuntu (NVIDIA: the proprietary driver
  includes the Vulkan part). Without `libgomp1`, `llama-server` fails with `libgomp.so.1: cannot open shared object file`.
- Python virtual environments: `sudo apt install python3-venv` on Ubuntu/Debian (the setup checks this first).
- **Don't benchmark inside WSL.** Its GPU access goes through a translation layer and would understate your
  card. On Windows, use `setup_windows.ps1`.

**2. Pick your GPU.** The setup prints the devices llama.cpp sees, for example:

```
Vulkan0: AMD Radeon RX 7900 GRE (16368 MiB)
Vulkan1: AMD Radeon(TM) Graphics          <- integrated GPU, don't use
```

Important

If an integrated GPU is listed next to your graphics card, pass the card with `--device`, or llama.cpp may
split the model across both. **The numbering can change between backends:** on the machine above, the
same card is `Vulkan0` but `ROCm1`. On a Mac, or with a single GPU, leave `--server-args` out.

**3. Run** a two-minute smoke test, then the full matrix (about 2 hours; finished settings are skipped if you
restart). Close anything else that uses the GPU first (Ollama or LM Studio with a model loaded, games, video),
and plug laptops in:

```
python scripts/run_matrix.py --config configs/qwen3-8b.json --backend vulkan --machine my-gpu --server-args "--device Vulkan0" --only baseline,dspark-n7-p0 --limit 1
python scripts/run_matrix.py --config configs/qwen3-8b.json --backend vulkan --machine my-gpu --server-args "--device Vulkan0"
python scripts/summarize.py --write
python scripts/plot.py results/my-gpu/qwen3-8b__vulkan.json -o my-chart.svg
```

Use the same `--backend` name you set up (`vulkan`, `cuda`, `rocm` or `metal`): it tells the script which
`bin/` folder to use.

**Short on time?** Screen first, then measure the winners

The full matrix generates about 13,000 tokens for each of its 33 settings, so it takes about 2 hours on a
60 tok/s GPU. A quick screen with 2 prompts per category and 256-token answers is enough to rule out the
clear losers in about 10 minutes:

```
python scripts/run_matrix.py --config configs/qwen3-8b.json --backend vulkan --machine my-gpu --server-args "--device Vulkan0" --name qwen3-8b-screen --limit 2 --osl 256 --only "baseline,ngram-mod,draft-simple-*,dflash-*,dspark-n*-p0,dspark-bf16-*"
```

Then run the best few at full size with `--only baseline,<run ids>` (no `--name`, `--limit` or `--osl`).

## 4. What Gets Measured

All methods run on the same model (Qwen3-8B, Q8\_0), the same prompts and the same GPU, one request at a time:

| Method | What drafts the tokens | Run ids |
| --- | --- | --- |
| No speculation | nothing (the reference) | `baseline` |
| n-gram | repeats patterns already in the text | `ngram-mod` |
| Small draft model | Qwen3-0.6B | `draft-simple-n3`, `-n5` |
| DFlash | a block-diffusion drafter | `dflash-n4`, `-n7` |
| **DSpark** | DFlash plus a Markov head and a confidence head | `dspark-n{2,3,4,5,7}-p{0,0.3,0.5,0.7,0.9}` |

In the DSpark ids, `n` is how many tokens are drafted per step and `p` is the confidence cutoff (`0` = off).
The prompts come from [SPEED-Bench](https://huggingface.co/datasets/nvidia/SPEED-Bench), llama.cpp's own
speculative-decoding benchmark: coding, math, writing and Q&A, greedy decoding, with Qwen3's thinking mode
off (the drafters were trained without it).

Every setting is one JSON entry in [configs/](https://github.com/juraj-jumic/dspark-local-bench/blob/main/configs), so adding a model or a sweep needs no code.

## 5. Contribute Your GPU

The goal is a table that answers *"does DSpark help on my GPU?"* for as many cards as possible.

1. Run a config (see [Quick Start](https://github.com/jura
Termich20

Interpretation history

Decision trace