[GH-ISSUE #3965] [Benchmark] DFlash2 vs MTP on RTX 4060 Ti 16 GB: 3.3% slower overall #1700

Closed
opened 2026-11-04 01:53:17 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @leebiden6-stack on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3965

Measured on 2026-10-24 by the reporter on a Windows 10 PC. This is a targeted A/B, not a run of the standard strata bench run protocol. Two tests (1k and 16k output), one local source build.

Result

On an RTX 4060 Ti 16 GB (Ada, sm_89), DFlash2 was not faster than the MTP on the same prompt and settings:

Metric MTP DFlash2 Delta
Overall decode (wall clock) 41.61 tok/s 40.22 tok/s −3.3%
First half of the run 40.93 tok/s 37.87 tok/s −7.5%
Second half of the run 42.42 tok/s 42.71 tok/s +0.7%
Median per-round speed 38.13 tok/s 33.91 tok/s −11.1%
Time to first token 2.32 s 2.54 s +0.23 s
Prefill 133.6 tok/s 119.6 tok/s −10.5%
Draft acceptance 69.1% 66.5% −2.6 pp
Tokens per round 2.01 2.10 +4.5%
Rounds 509 488 −21
CPU expert pool 19.4 ms/round 23.0 ms/round +18.5%
Drafting 4.01 ms/round 4.60 ms/round +14.8%
Expert-cache slots 3594 3027 −567

Both runs generated exactly 1024 tokens (the output cap), so this is a speed comparison only; the answers were not compared for quality. DFlash2 ran second, so a warm OS cache would favor it; it still came out slower. Reproduction status: reproduced locally with one pair; not repeated, and the serve limitation below is source-confirmed rather than exercised under --serve.

Follow-up: 16k prompt + 16k output

Same card, same local build (strata 0.1.49.1), same settings. The prompt was 16,384 tokens from the public docs/DETAILS.md with a synthetic needle (ORANGE-7319; no private user prompt). Both arms used --max-new 16384 and both generated exactly 16,384 tokens, so both answers were truncated at the cap by design. Both recalled the needle.

Metric MTP DFlash2 Delta
Overall decode 47.64 tok/s 42.85 tok/s −10.1%
First half 47.86 tok/s 42.52 tok/s −11.2%
Second half 47.40 tok/s 43.15 tok/s −9.0%
Median per-round speed 50.08 tok/s 44.69 tok/s −10.8%
Prefill 1,295.6 tok/s 1,287.3 tok/s −0.6%
Time to first token 13.68 s 13.78 s +0.7%
Draft acceptance 87.8% 81.1% −6.7 pp
Tokens per round 3.22 2.95 −8.4%
Rounds 5,091 5,552 +9.1%
CPU expert pool 32.6 ms/round 35.0 ms/round +7.5%
Drafting 6.10 ms/round 4.98 ms/round −18.4%
Expert-cache slots 3,594 3,027 −567

DFlash2 does not catch up on long outputs: it is 10.1% slower overall, 11.2% in the first half, 9.0% in the second half, and 10.8% lower in the median. MTP keeps a higher acceptance rate (87.8% vs 81.1%) and needs fewer rounds (5,091 vs 5,552). DFlash2 drafts faster per round (4.98 vs 6.10 ms), but that does not compensate for the extra rounds, the higher CPU expert-pool time, and the 567 fewer expert-cache slots. Prefill is equal at this length (~1,290 tok/s); the 10.5% prefill difference in the 1k test was likely run variance.

Why this matters: the suggestion table in strata_control/drafting.py has no ada row (sm_89 falls under other, "not measured"). Both tests say Auto should stay on MTP for this card class; the gap grows with output length (3.3% at 1k, 10.1% at 16k), so longer outputs do not rescue DFlash2. It also matches an earlier A/B on the same PC (2026-10-23): DFlash2 was 2–12% slower than MTP on four 300–400-token prompts (code_py three-run mean −2.4%, window 8 −4.8%). No code change is requested here; this is measurement evidence for the table.

Related threads (none of them is an RTX 4060 Ti performance report): #3882, #3869, #3183, #3322.

Hardware and software

  • GPU: NVIDIA GeForce RTX 4060 Ti, 16,380 MiB VRAM, Ada / sm_89; driver 616.92; PCIe 4.0 x8 maximum; 165 W default power limit. No overclock.
  • CPU: Intel Core i5-12400F, 6 performance cores / 12 threads, no AVX-512; the engine used its AVX2 expert kernels.
  • RAM: 95.8 GiB.
  • Storage: a 240 GB SATA SSD (NTFS) holds the model, native pack, MTP layer and DFlash2 pack; the source checkout and build are on another local drive. The engine reported 51.1 GiB of model files and loaded 46.84 GiB at 0.47 GiB/s.
  • OS: Windows 10 Pro, build 19045.
  • Strata: commit c33fa7ba6d0d5b104983736b50c4e1d61f207b1b; engine strata 0.1.49.1; local Release source build (CMAKE_CUDA_ARCHITECTURES=89, CUDA 13.4.92, MSVC 14.44.35207). No tracked source modifications at the time of the run (only untracked benchmark artifacts). Note: build/BUILD.json is stale and says 0.1.44.1; strata.exe --version reports 0.1.49.1.
  • Background: no other strata.exe running; 16,109 MiB of VRAM free before the first run. No per-run power/clock telemetry was captured.

Model and configuration

  • Model: Qwen3.8-Flash-Next IQ3_S (GSQ-RCO). GGUF shards: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf (54,817,524,224 bytes) and Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf (28,800,138,432 bytes). The exact upstream repository/revision was not recorded by the local setup; the filenames and sizes above are the local files.
  • Native pack: tools/iq_pack.py output at <DATA>/packs/iq3_s; conversions.json names both source shards. PLE table from shard 2; expert profile data/expert-profile.bin (24,576 ranked pairs).
  • MTP: <DATA>/mtp/rt; loaded 835 MiB, 1049 MiB total in the run summary.
  • DFlash2: <DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack, 760,353,792 bytes; source incoai/Qwen3.8-Flash-Next-DFlash2, revision a22a1744e85c17364dcc54a6a420af7135d4c7f6 (the pin in strata_control/drafting.py). Loaded 1026 MiB of VRAM.
  • Tokenizer and chat template: the model's own tokenizer/ folder from the pack, including chat_template.jinja. The prompt was rendered by that template and tokenized with the pack's tokenizer.
  • Settings for both arms: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 262144 --kv int8 --kv-resident 32768 --adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97 --vram-reserve-mib 1900; greedy sampling; the 1k test used --max-new 1024, the 16k follow-up used --max-new 16384; both --stop-eos. --vision was removed for this text-only CLI run. KV streaming kept 32768 of 262144 cells per QSA layer in VRAM and put 3.09 GiB of K/V in pinned RAM (engine log). The model was loaded fresh for each arm; no prompt cache or expert-cache state was carried between runs.
  • Exact command (paths replaced with placeholders):
strata.exe \
  --pack <DATA>/packs/iq3_s \
  --native <MODELS>/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf \
  --ple-gguf <MODELS>/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf \
  --expert-profile <STRATA_ROOT>/data/expert-profile.bin \
  --expert-cache auto --prefill auto --spec 4 \
  --mtp <DATA>/mtp/rt --spec-min-p 0.5 \
  --max-context 262144 --kv int8 --kv-resident 32768 \
  --adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97 \
  --vram-reserve-mib 1900 \
  --tokens-file <PROMPT_IDS> --max-new 1024 --stop-eos

# DFlash2 arm adds:
  --draft dflash2 --draft-model <DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack

Workload

The prompt is a 253-character (171-token after the chat template) Chinese technical question about adding a column at a specific position in a Databricks Unity Catalog table without rebuilding the table. It contains no table names, company names or credentials. The exact wording is not included here to keep the reporter's work context private; it is available to the maintainers on request.

Both arms used the same prompt file, chat template, tokenizer and 1024-token output cap. The model was greedily decoded; thinking was left on. The answer was truncated at the cap in both arms, so only speed is compared.

The 16k follow-up used a different, public prompt: 16,384 tokens from docs/DETAILS.md with a synthetic needle (ORANGE-7319), containing no private user content. Both arms used the same prompt file, chat template, tokenizer and 16,384-token output cap, and both generated exactly 16,384 tokens, so both answers were truncated at the cap by design.

Method

  • Two fresh engine processes, one per arm. MTP ran first, DFlash2 second. The model load is not included in the decode or prefill timings below.
  • Overall decode and prefill come from the engine's own decode and prefill lines.
  • Per-round timing came from STRATA_SPEC_TRACE: one line per timed round with the verify-window size, accepted drafts, suffix flag and round duration. Per-round tokens are accepted drafts + 1.
  • First/second half: rounds split by index (MTP 254/254, DFlash2 243/244). The trace covered 1023 of the 1024 generated tokens in each arm; the final untraced round is excluded from the halves and median, which is why the trace average differs slightly from the engine's decode line.
  • Median is the median of each round's instantaneous speed (tokens in that round / that round's duration), not a per-token timestamp median. The engine reports per-round, not per-token, timings.
  • Warm-up is included: the engine's adaptive expert tier and graph capture run inside the measured run. That is exactly what the first/second-half split is intended to show.
  • 16k follow-up: 16,384-token public prompt with a synthetic needle; --max-new 16384; both arms hit the cap. The per-round trace and first/second-half split use the same method; the trace totals differ from the engine's 16,384 by at most one token, and the final untraced round is excluded.

Evidence (engine lines)

MTP:

speculation              509 rounds of 6, drafts accepted 515 of 745 (0.691), 2.01 tokens per round
decode                   1024 tokens in 24611.8 ms  ->  41.61 tok/s
prefill                  170 tokens in 1272.7 ms  ->  133.58 tok/s  (time to first token 2315.7 ms)
mtp                      4.009 ms/round drafting (508 rounds), MTP prompt 1.2 ms, 1049 MiB of VRAM
expert cache             3594 slots, 6.87 GiB of VRAM

DFlash2:

strata generate: DFlash2 drafter on (<DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack, graphs captured in 4 ms), the MTP layer stays as the fallback
speculation              488 rounds of 6, drafts accepted 536 of 806 (0.665), 2.10 tokens per round
decode                   1024 tokens in 25458.5 ms  ->  40.22 tok/s
prefill                  170 tokens in 1421.2 ms  ->  119.62 tok/s  (time to first token 2543.9 ms)
dflash2                  4.604 ms/round drafting (487 rounds, GPU 0.000), 1026 MiB of VRAM
expert cache             3027 slots, 5.80 GiB of VRAM

16k output

MTP:

speculation              5091 rounds of 6, drafts accepted 11293 of 12869 (0.878), 3.22 tokens per round
decode                   16384 tokens in 343934.5 ms  ->  47.64 tok/s
prefill                  16383 tokens in 12644.8 ms  ->  1295.63 tok/s  (time to first token 13682.8 ms)
mtp                      6.102 ms/round drafting (5090 rounds), MTP prompt 64.5 ms, 1049 MiB of VRAM
expert cache             3594 slots, 6.87 GiB of VRAM

DFlash2:

strata generate: DFlash2 drafter on (<DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack, graphs captured in 3 ms), the MTP layer stays as the fallback
speculation              5552 rounds of 6, drafts accepted 10834 of 13356 (0.811), 2.95 tokens per round
decode                   16384 tokens in 382394.9 ms  ->  42.85 tok/s
prefill                  16383 tokens in 12727.0 ms  ->  1287.26 tok/s  (time to first token 13777.6 ms)
dflash2                  4.978 ms/round drafting (5551 rounds, GPU 0.000), 1026 MiB of VRAM
expert cache             3027 slots, 5.80 GiB of VRAM

Raw logs and per-round traces for both tests are available on request; local home paths will be replaced with placeholders before attaching.

Analysis

  • Warm-up is real, and DFlash2 pays more of it. MTP improved from 40.93 to 42.42 tok/s between halves (+3.6%); DFlash2 improved from 37.87 to 42.71 (+12.8%). The first half is the cleanest comparison because both arms still share the same prompt and early text; DFlash2 is 7.5% slower there.
  • At 1k output, the second half is a tie (42.42 vs 42.71). At that short length the problem is the first few hundred tokens; the 16k follow-up shows that this does not hold for longer outputs.
  • At 16k output the gap does not close; it grows. The follow-up is 10.1% slower overall and 9.0% slower in the second half. DFlash2's acceptance gap is larger (81.1% vs 87.8%) and it needs 461 more rounds (5,552 vs 5,091), so the short-test "warm up and tie" pattern does not survive a long answer.
  • The median is worse than the mean for DFlash2. Its per-round speed distribution has more slow rounds (median 33.91 vs 38.13), so the user-perceived speed is less consistent even though the overall average is only 3.3% lower.
  • At 1k output, where the time goes: DFlash2 accepts slightly fewer drafts here (66.5% vs 69.1%) but produces slightly more tokens per round (2.10 vs 2.01); each round is more expensive: CPU expert pool 23.0 vs 19.4 ms, drafting 4.60 vs 4.01 ms. DFlash2's pack and draft head take about 1 GiB of VRAM (1026 MiB in the run summary); in this pair the expert cache fell from 3594 to 3027 slots, so more experts go to the CPU/PCIe path on this 16 GB card. The generated text diverges between arms after the early tokens, so the second-half CPU routing is not an identical workload; the first-half and per-round medians are the more reliable signals. At 16k output the same pattern is larger: CPU expert pool 35.0 vs 32.6 ms/round and 567 fewer cache slots; DFlash2 drafts faster per round (4.98 vs 6.10 ms) but loses on tokens/round and rounds.
  • Prefill: the 1k test showed DFlash2 10.5% slower (119.6 vs 133.6 tok/s), but the 16k follow-up is equal (1,287 vs 1,296 tok/s), so that difference was likely run variance rather than a stable DFlash2 cost.
  • Consistent with earlier evidence: an earlier 2026-10-23 A/B on the same PC, same model and card, found DFlash2 2–12% slower than MTP on four 300–400-token prompts (code_py three-run mean −2.4%, window 8 −4.8%). The repository's own suggestion table already leaves Ampere and unknown classes on MTP; this adds an sm_89 measurement.

Validation status

  • Passed: both arms loaded the model and completed 1024 tokens in the 1k test; the 16k follow-up completed 16,384 tokens in both arms and both recalled the needle; the DFlash2 arm printed DFlash2 drafter on; the per-round trace parsed for both arms and both tests.
  • Failed: none observed.
  • Not run: repeated pairs (the community guide asks for at least three measured runs; this is one pair per test), other prompt families beyond the two tested, other GPUs, a released engine package (this is a local 0.1.49.1 source build), the standard strata bench run protocol, answer-quality comparison, and the HTTP serve path. The 16k follow-up uses a public docs/DETAILS.md prompt with a synthetic needle, not the private Databricks prompt. DFlash2 is CLI-only in this build: serve/server.py starts the engine with --serve, and src/program/generate.cpp refuses --draft dflash2 with --serve; strata launch --drafting dflash2 therefore falls back to MTP (source-confirmed; not exercised with DFlash2 under --serve in this benchmark). That is why this report uses the non-serve CLI.

Limits

  • Two tests (1k and 16k output), one pair each, one card. The first/second-half split and median reduce the effect of warm-up, but run-to-run variance on this machine has been several percent; a reverse-order pair or three repeats would make the conclusion firmer.
  • The 16k outputs were truncated at the 16,384-token cap; the two arms generate different text after the early tokens, so the second-half workload is not identical.
  • The model repository/revision was not recorded locally; the exact GGUF filenames and sizes are given above.
  • Power, clocks and storage throughput were not captured per run.
  • No quality comparison: the 1k answers were cut at 1,024 and the 16k answers at 16,384. The 16k needle recall check (ORANGE-7319) passed in both arms.
Originally created by @leebiden6-stack on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3965 Measured on 2026-10-24 by the reporter on a Windows 10 PC. This is a targeted A/B, not a run of the standard `strata bench run` protocol. Two tests (1k and 16k output), one local source build. ## Result On an RTX 4060 Ti 16 GB (Ada, sm_89), DFlash2 was **not faster** than the MTP on the same prompt and settings: | Metric | MTP | DFlash2 | Delta | |---|---:|---:|---:| | Overall decode (wall clock) | **41.61 tok/s** | **40.22 tok/s** | **−3.3%** | | First half of the run | 40.93 tok/s | 37.87 tok/s | −7.5% | | Second half of the run | 42.42 tok/s | 42.71 tok/s | +0.7% | | Median per-round speed | 38.13 tok/s | 33.91 tok/s | −11.1% | | Time to first token | 2.32 s | 2.54 s | +0.23 s | | Prefill | 133.6 tok/s | 119.6 tok/s | −10.5% | | Draft acceptance | 69.1% | 66.5% | −2.6 pp | | Tokens per round | 2.01 | 2.10 | +4.5% | | Rounds | 509 | 488 | −21 | | CPU expert pool | 19.4 ms/round | 23.0 ms/round | +18.5% | | Drafting | 4.01 ms/round | 4.60 ms/round | +14.8% | | Expert-cache slots | 3594 | 3027 | −567 | Both runs generated exactly 1024 tokens (the output cap), so this is a speed comparison only; the answers were not compared for quality. DFlash2 ran second, so a warm OS cache would favor it; it still came out slower. Reproduction status: reproduced locally with one pair; not repeated, and the serve limitation below is source-confirmed rather than exercised under `--serve`. ### Follow-up: 16k prompt + 16k output Same card, same local build (`strata 0.1.49.1`), same settings. The prompt was 16,384 tokens from the public `docs/DETAILS.md` with a synthetic needle (`ORANGE-7319`; no private user prompt). Both arms used `--max-new 16384` and both generated exactly 16,384 tokens, so both answers were truncated at the cap by design. Both recalled the needle. | Metric | MTP | DFlash2 | Delta | |---|---:|---:|---:| | Overall decode | **47.64 tok/s** | **42.85 tok/s** | **−10.1%** | | First half | 47.86 tok/s | 42.52 tok/s | −11.2% | | Second half | 47.40 tok/s | 43.15 tok/s | −9.0% | | Median per-round speed | 50.08 tok/s | 44.69 tok/s | −10.8% | | Prefill | 1,295.6 tok/s | 1,287.3 tok/s | −0.6% | | Time to first token | 13.68 s | 13.78 s | +0.7% | | Draft acceptance | 87.8% | 81.1% | −6.7 pp | | Tokens per round | 3.22 | 2.95 | −8.4% | | Rounds | 5,091 | 5,552 | +9.1% | | CPU expert pool | 32.6 ms/round | 35.0 ms/round | +7.5% | | Drafting | 6.10 ms/round | 4.98 ms/round | −18.4% | | Expert-cache slots | 3,594 | 3,027 | −567 | DFlash2 does not catch up on long outputs: it is 10.1% slower overall, 11.2% in the first half, 9.0% in the second half, and 10.8% lower in the median. MTP keeps a higher acceptance rate (87.8% vs 81.1%) and needs fewer rounds (5,091 vs 5,552). DFlash2 drafts faster per round (4.98 vs 6.10 ms), but that does not compensate for the extra rounds, the higher CPU expert-pool time, and the 567 fewer expert-cache slots. Prefill is equal at this length (~1,290 tok/s); the 10.5% prefill difference in the 1k test was likely run variance. **Why this matters:** the suggestion table in `strata_control/drafting.py` has no `ada` row (`sm_89` falls under `other`, "not measured"). Both tests say Auto should stay on MTP for this card class; the gap grows with output length (3.3% at 1k, 10.1% at 16k), so longer outputs do not rescue DFlash2. It also matches an earlier A/B on the same PC (2026-10-23): DFlash2 was 2–12% slower than MTP on four 300–400-token prompts (code_py three-run mean −2.4%, window 8 −4.8%). No code change is requested here; this is measurement evidence for the table. Related threads (none of them is an RTX 4060 Ti performance report): [#3882](https://github.com/Niko1221/Strata/pull/3882), [#3869](https://github.com/Niko1221/Strata/pull/3869), [#3183](https://github.com/Niko1221/Strata/issues/3183), [#3322](https://github.com/Niko1221/Strata/pull/3322). ## Hardware and software - GPU: NVIDIA GeForce RTX 4060 Ti, 16,380 MiB VRAM, Ada / sm_89; driver 616.92; PCIe 4.0 x8 maximum; 165 W default power limit. No overclock. - CPU: Intel Core i5-12400F, 6 performance cores / 12 threads, no AVX-512; the engine used its AVX2 expert kernels. - RAM: 95.8 GiB. - Storage: a 240 GB SATA SSD (NTFS) holds the model, native pack, MTP layer and DFlash2 pack; the source checkout and build are on another local drive. The engine reported 51.1 GiB of model files and loaded 46.84 GiB at 0.47 GiB/s. - OS: Windows 10 Pro, build 19045. - Strata: commit `c33fa7ba6d0d5b104983736b50c4e1d61f207b1b`; engine `strata 0.1.49.1`; local Release source build (`CMAKE_CUDA_ARCHITECTURES=89`, CUDA 13.4.92, MSVC 14.44.35207). No tracked source modifications at the time of the run (only untracked benchmark artifacts). Note: `build/BUILD.json` is stale and says 0.1.44.1; `strata.exe --version` reports 0.1.49.1. - Background: no other `strata.exe` running; 16,109 MiB of VRAM free before the first run. No per-run power/clock telemetry was captured. ## Model and configuration - Model: Qwen3.8-Flash-Next IQ3_S (GSQ-RCO). GGUF shards: `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf` (54,817,524,224 bytes) and `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf` (28,800,138,432 bytes). The exact upstream repository/revision was not recorded by the local setup; the filenames and sizes above are the local files. - Native pack: `tools/iq_pack.py` output at `<DATA>/packs/iq3_s`; `conversions.json` names both source shards. PLE table from shard 2; expert profile `data/expert-profile.bin` (24,576 ranked pairs). - MTP: `<DATA>/mtp/rt`; loaded 835 MiB, 1049 MiB total in the run summary. - DFlash2: `<DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack`, 760,353,792 bytes; source `incoai/Qwen3.8-Flash-Next-DFlash2`, revision `a22a1744e85c17364dcc54a6a420af7135d4c7f6` (the pin in `strata_control/drafting.py`). Loaded 1026 MiB of VRAM. - Tokenizer and chat template: the model's own `tokenizer/` folder from the pack, including `chat_template.jinja`. The prompt was rendered by that template and tokenized with the pack's tokenizer. - Settings for both arms: `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 262144 --kv int8 --kv-resident 32768 --adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97 --vram-reserve-mib 1900`; greedy sampling; the 1k test used `--max-new 1024`, the 16k follow-up used `--max-new 16384`; both `--stop-eos`. `--vision` was removed for this text-only CLI run. KV streaming kept 32768 of 262144 cells per QSA layer in VRAM and put 3.09 GiB of K/V in pinned RAM (engine log). The model was loaded fresh for each arm; no prompt cache or expert-cache state was carried between runs. - Exact command (paths replaced with placeholders): ```text strata.exe \ --pack <DATA>/packs/iq3_s \ --native <MODELS>/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf \ --ple-gguf <MODELS>/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf \ --expert-profile <STRATA_ROOT>/data/expert-profile.bin \ --expert-cache auto --prefill auto --spec 4 \ --mtp <DATA>/mtp/rt --spec-min-p 0.5 \ --max-context 262144 --kv int8 --kv-resident 32768 \ --adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97 \ --vram-reserve-mib 1900 \ --tokens-file <PROMPT_IDS> --max-new 1024 --stop-eos # DFlash2 arm adds: --draft dflash2 --draft-model <DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack ``` ## Workload The prompt is a 253-character (171-token after the chat template) Chinese technical question about adding a column at a specific position in a Databricks Unity Catalog table without rebuilding the table. It contains no table names, company names or credentials. The exact wording is not included here to keep the reporter's work context private; it is available to the maintainers on request. Both arms used the same prompt file, chat template, tokenizer and 1024-token output cap. The model was greedily decoded; thinking was left on. The answer was truncated at the cap in both arms, so only speed is compared. The 16k follow-up used a different, public prompt: 16,384 tokens from `docs/DETAILS.md` with a synthetic needle (`ORANGE-7319`), containing no private user content. Both arms used the same prompt file, chat template, tokenizer and 16,384-token output cap, and both generated exactly 16,384 tokens, so both answers were truncated at the cap by design. ## Method - Two fresh engine processes, one per arm. MTP ran first, DFlash2 second. The model load is not included in the decode or prefill timings below. - Overall decode and prefill come from the engine's own `decode` and `prefill` lines. - Per-round timing came from `STRATA_SPEC_TRACE`: one line per timed round with the verify-window size, accepted drafts, suffix flag and round duration. Per-round tokens are accepted drafts + 1. - First/second half: rounds split by index (MTP 254/254, DFlash2 243/244). The trace covered 1023 of the 1024 generated tokens in each arm; the final untraced round is excluded from the halves and median, which is why the trace average differs slightly from the engine's `decode` line. - Median is the median of each round's instantaneous speed (tokens in that round / that round's duration), not a per-token timestamp median. The engine reports per-round, not per-token, timings. - Warm-up is included: the engine's adaptive expert tier and graph capture run inside the measured run. That is exactly what the first/second-half split is intended to show. - 16k follow-up: 16,384-token public prompt with a synthetic needle; `--max-new 16384`; both arms hit the cap. The per-round trace and first/second-half split use the same method; the trace totals differ from the engine's 16,384 by at most one token, and the final untraced round is excluded. ## Evidence (engine lines) MTP: ```text speculation 509 rounds of 6, drafts accepted 515 of 745 (0.691), 2.01 tokens per round decode 1024 tokens in 24611.8 ms -> 41.61 tok/s prefill 170 tokens in 1272.7 ms -> 133.58 tok/s (time to first token 2315.7 ms) mtp 4.009 ms/round drafting (508 rounds), MTP prompt 1.2 ms, 1049 MiB of VRAM expert cache 3594 slots, 6.87 GiB of VRAM ``` DFlash2: ```text strata generate: DFlash2 drafter on (<DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack, graphs captured in 4 ms), the MTP layer stays as the fallback speculation 488 rounds of 6, drafts accepted 536 of 806 (0.665), 2.10 tokens per round decode 1024 tokens in 25458.5 ms -> 40.22 tok/s prefill 170 tokens in 1421.2 ms -> 119.62 tok/s (time to first token 2543.9 ms) dflash2 4.604 ms/round drafting (487 rounds, GPU 0.000), 1026 MiB of VRAM expert cache 3027 slots, 5.80 GiB of VRAM ``` ### 16k output MTP: ```text speculation 5091 rounds of 6, drafts accepted 11293 of 12869 (0.878), 3.22 tokens per round decode 16384 tokens in 343934.5 ms -> 47.64 tok/s prefill 16383 tokens in 12644.8 ms -> 1295.63 tok/s (time to first token 13682.8 ms) mtp 6.102 ms/round drafting (5090 rounds), MTP prompt 64.5 ms, 1049 MiB of VRAM expert cache 3594 slots, 6.87 GiB of VRAM ``` DFlash2: ```text strata generate: DFlash2 drafter on (<DATA>/dflash2/qwen3.8-flash-next-dflash2.q8.pack, graphs captured in 3 ms), the MTP layer stays as the fallback speculation 5552 rounds of 6, drafts accepted 10834 of 13356 (0.811), 2.95 tokens per round decode 16384 tokens in 382394.9 ms -> 42.85 tok/s prefill 16383 tokens in 12727.0 ms -> 1287.26 tok/s (time to first token 13777.6 ms) dflash2 4.978 ms/round drafting (5551 rounds, GPU 0.000), 1026 MiB of VRAM expert cache 3027 slots, 5.80 GiB of VRAM ``` Raw logs and per-round traces for both tests are available on request; local home paths will be replaced with placeholders before attaching. ## Analysis - **Warm-up is real, and DFlash2 pays more of it.** MTP improved from 40.93 to 42.42 tok/s between halves (+3.6%); DFlash2 improved from 37.87 to 42.71 (+12.8%). The first half is the cleanest comparison because both arms still share the same prompt and early text; DFlash2 is 7.5% slower there. - **At 1k output, the second half is a tie** (42.42 vs 42.71). At that short length the problem is the first few hundred tokens; the 16k follow-up shows that this does not hold for longer outputs. - **At 16k output the gap does not close; it grows.** The follow-up is 10.1% slower overall and 9.0% slower in the second half. DFlash2's acceptance gap is larger (81.1% vs 87.8%) and it needs 461 more rounds (5,552 vs 5,091), so the short-test "warm up and tie" pattern does not survive a long answer. - **The median is worse than the mean for DFlash2.** Its per-round speed distribution has more slow rounds (median 33.91 vs 38.13), so the user-perceived speed is less consistent even though the overall average is only 3.3% lower. - **At 1k output, where the time goes:** DFlash2 accepts slightly fewer drafts here (66.5% vs 69.1%) but produces slightly more tokens per round (2.10 vs 2.01); each round is more expensive: CPU expert pool 23.0 vs 19.4 ms, drafting 4.60 vs 4.01 ms. DFlash2's pack and draft head take about 1 GiB of VRAM (1026 MiB in the run summary); in this pair the expert cache fell from 3594 to 3027 slots, so more experts go to the CPU/PCIe path on this 16 GB card. The generated text diverges between arms after the early tokens, so the second-half CPU routing is not an identical workload; the first-half and per-round medians are the more reliable signals. At 16k output the same pattern is larger: CPU expert pool 35.0 vs 32.6 ms/round and 567 fewer cache slots; DFlash2 drafts faster per round (4.98 vs 6.10 ms) but loses on tokens/round and rounds. - **Prefill:** the 1k test showed DFlash2 10.5% slower (119.6 vs 133.6 tok/s), but the 16k follow-up is equal (1,287 vs 1,296 tok/s), so that difference was likely run variance rather than a stable DFlash2 cost. - **Consistent with earlier evidence:** an earlier 2026-10-23 A/B on the same PC, same model and card, found DFlash2 2–12% slower than MTP on four 300–400-token prompts (code_py three-run mean −2.4%, window 8 −4.8%). The repository's own suggestion table already leaves Ampere and unknown classes on MTP; this adds an sm_89 measurement. ## Validation status - Passed: both arms loaded the model and completed 1024 tokens in the 1k test; the 16k follow-up completed 16,384 tokens in both arms and both recalled the needle; the DFlash2 arm printed `DFlash2 drafter on`; the per-round trace parsed for both arms and both tests. - Failed: none observed. - Not run: repeated pairs (the community guide asks for at least three measured runs; this is one pair per test), other prompt families beyond the two tested, other GPUs, a released engine package (this is a local 0.1.49.1 source build), the standard `strata bench run` protocol, answer-quality comparison, and the HTTP serve path. The 16k follow-up uses a public `docs/DETAILS.md` prompt with a synthetic needle, not the private Databricks prompt. DFlash2 is CLI-only in this build: `serve/server.py` starts the engine with `--serve`, and `src/program/generate.cpp` refuses `--draft dflash2` with `--serve`; `strata launch --drafting dflash2` therefore falls back to MTP (source-confirmed; not exercised with DFlash2 under `--serve` in this benchmark). That is why this report uses the non-serve CLI. ## Limits - Two tests (1k and 16k output), one pair each, one card. The first/second-half split and median reduce the effect of warm-up, but run-to-run variance on this machine has been several percent; a reverse-order pair or three repeats would make the conclusion firmer. - The 16k outputs were truncated at the 16,384-token cap; the two arms generate different text after the early tokens, so the second-half workload is not identical. - The model repository/revision was not recorded locally; the exact GGUF filenames and sizes are given above. - Power, clocks and storage throughput were not captured per run. - No quality comparison: the 1k answers were cut at 1,024 and the 16k answers at 16,384. The 16k needle recall check (`ORANGE-7319`) passed in both arms.
Author
Owner

@Hazelhof commented on GitHub (Oct 25, 2026):

A second hardware class for this comparison, with one methodological point that I think matters more than the numbers: on this box the same MTP arm moved 18 % between sessions, which is bigger than the effect being measured, so single-rep cross-session pairs cannot rank the two drafters.

Box: 4× RTX 5080 16 GB (only one used here), Core Ultra 7 270K (AVX2 only), 125 GiB RAM, driver 580.x, CUDA 13.3, Strata v0.2.4, engine 0.1.49, built from the tag with -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120 (-arch sm_120 verified in the ELF). Pack: NVFP4. CLI (strata generate flags on the engine binary directly — it takes no subcommand), one card, --spec 4, --kv int8, --max-context 32768, greedy, 1,024-token prompt from docs/DETAILS.md, 8,192 output tokens. Drafter: incoai/Qwen3.8-Flash-Next-DFlash2 at a22a1744, weight sha256 verified, packed by tools/dflash2_pack.py (760 MB).

The cap ladder (--draft-cap, all five runs inside ten minutes, same session):

arm decode tok/s tokens/round acceptance
MTP (first) 82.16 2.92 62.1 %
DFlash2 cap 3 80.86 2.46 72.8 %
DFlash2 cap 4 85.60 3.11 70.2 %
DFlash2 cap 5 87.43 (+6.4 %) 3.34 73.3 %
DFlash2 cap 6 84.18 3.18 66.7 %
MTP again, after the ladder 82.18 2.92 62.1 %

So on this card DFlash2 at its cap-5 peak is ~6 % ahead of MTP in-session, and narrower is not better — cap 3 is the worst arm, which I had guessed would be the fix.

The methodology point. The identical MTP invocation read 100.79 tok/s twenty minutes earlier and 82.16 in this session, with acceptance moving 73.7 % → 62.1 % and tokens/round 3.22 → 2.92. Same prompt ids, greedy, same flags. That is the adaptive tier changing expert placement, which changes a near-tie token, which changes the whole continuation and with it the CPU expert traffic — so the content differs between sessions and the rate follows it. Within this session the MTP bracket is repeatable to 0.02 % (82.16 / 82.18), so the ladder is sound; the cross-session pair is not. My first pass compared across sessions and read −9.7 % for DFlash2, which I now think was that drift, not the drafter.

Two things that might be worth a line in the docs if they are not already: that a drafter A/B has to bracket the incumbent inside one session (or be teacher-forced via --spec-follow), and that --draft-cap only bounds the widest window — so sweeping it upward from the default can do nothing.

Also +1 to the earlier report's finding that --draft dflash2 is off under --serve/--batch/layer split; on a 16 GB card that is the configuration that would actually use it.

<!-- gh-comment-id:6395501839 --> @Hazelhof commented on GitHub (Oct 25, 2026): A second hardware class for this comparison, with one methodological point that I think matters more than the numbers: **on this box the same MTP arm moved 18 % between sessions**, which is bigger than the effect being measured, so single-rep cross-session pairs cannot rank the two drafters. **Box:** 4× RTX 5080 16 GB (only one used here), Core Ultra 7 270K (AVX2 only), 125 GiB RAM, driver 580.x, CUDA 13.3, Strata **v0.2.4**, engine **0.1.49**, built from the tag with `-DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120` (`-arch sm_120` verified in the ELF). Pack: NVFP4. CLI (`strata generate` flags on the engine binary directly — it takes no subcommand), one card, `--spec 4`, `--kv int8`, `--max-context 32768`, greedy, 1,024-token prompt from `docs/DETAILS.md`, 8,192 output tokens. Drafter: `incoai/Qwen3.8-Flash-Next-DFlash2` at `a22a1744`, weight sha256 verified, packed by `tools/dflash2_pack.py` (760 MB). **The cap ladder** (`--draft-cap`, all five runs inside ten minutes, same session): | arm | decode tok/s | tokens/round | acceptance | |---|---:|---:|---:| | MTP (first) | 82.16 | 2.92 | 62.1 % | | DFlash2 cap 3 | 80.86 | 2.46 | 72.8 % | | DFlash2 cap 4 | 85.60 | 3.11 | 70.2 % | | **DFlash2 cap 5** | **87.43 (+6.4 %)** | 3.34 | 73.3 % | | DFlash2 cap 6 | 84.18 | 3.18 | 66.7 % | | MTP again, after the ladder | 82.18 | 2.92 | 62.1 % | So on this card DFlash2 at its cap-5 peak is ~6 % ahead of MTP in-session, and narrower is not better — cap 3 is the worst arm, which I had guessed would be the fix. **The methodology point.** The identical MTP invocation read **100.79 tok/s** twenty minutes earlier and **82.16** in this session, with acceptance moving 73.7 % → 62.1 % and tokens/round 3.22 → 2.92. Same prompt ids, greedy, same flags. That is the adaptive tier changing expert placement, which changes a near-tie token, which changes the whole continuation and with it the CPU expert traffic — so the *content* differs between sessions and the rate follows it. Within this session the MTP bracket is repeatable to 0.02 % (82.16 / 82.18), so the ladder is sound; the cross-session pair is not. My first pass compared across sessions and read −9.7 % for DFlash2, which I now think was that drift, not the drafter. Two things that might be worth a line in the docs if they are not already: that a drafter A/B has to bracket the incumbent inside one session (or be teacher-forced via `--spec-follow`), and that `--draft-cap` only bounds the widest window — so sweeping it *upward* from the default can do nothing. Also +1 to the earlier report's finding that `--draft dflash2` is off under `--serve`/`--batch`/layer split; on a 16 GB card that is the configuration that would actually use it.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.

<!-- gh-comment-id:6495710007 --> @Niko1221 commented on GitHub (Oct 29, 2026): Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1700
No description provided.