DEV Community

8GB Lab
8GB Lab

Posted on Edited on Originally published at 8gblab.substack.com

DFlash 2 Slowed SQ-15 by 44–76%: Speculative Decoding Fails on the Default Hybrid Setup

DFlash 2 Slowed SQ-15 by 44–76%: Speculative Decoding Fails on the Default Hybrid Setup


Conclusion – the hardest numbers first

When the speculative‑decoding draft model DFlash 2 is forced on the SQ‑15 LLM (Strata 0.2.23), decode throughput drops dramatically. Across the same 16‑question quality‑test suite (quality‑test v2, 100‑point scale) the model keeps a perfect score of 100 / 100, but the wall‑clock decode speed falls from the baseline 25.3 tokens / s to 13.1 tokens / s, a ‑48 % reduction.

The effect is far worse for specific workloads:

Task (temperature 0) Baseline tok/s → DFlash 2 forced % change
English QA 32.1 → 13.8 ‑57 %
Japanese QA (short) 36.0 → 12.9 ‑64 %
Counting 1‑200 39.9 → 22.4 ‑44 %
Japanese long‑form 31.8 → 7.7 ‑76 %
Code generation 27.9 → 13.2 ‑53 %
Total wall‑time 66.6 s → 163.6 s (2.46× slower) —

Because the adoption rule for SQ‑15 requires “equal quality and at least +15 % decode speed”, the forced DFlash 2 variant fails the speed criterion despite unchanged output quality. The default configuration therefore remains unchanged and DFlash 2 is left disabled.


Setup and method

What is DFlash 2?

DFlash 2 is the speculative‑decoding (“draft”) component introduced in Strata 0.2.23. It generates candidate tokens ahead of the “expert” model; the expert then verifies each candidate and decides whether to accept it. In theory this can cut the number of full forward passes, raising decode speed.

Acquiring the draft weights

The draft weights are stored in the file dflash2.safetensors. A naïve read of the Strata drafting plan prints “Nothing to download.” – this message belongs to a different model (Qwen3.8‑Flash‑Next) and does not apply to DFlash 2. The correct artefact is found in the official repository strata-engine/Inkling-2-Mini-DFlash2 at commit 04ecd36f….

  • Size (quantised mix version): 551,600,700 bytes (original full version: 989,975,616 bytes).
  • SHA‑256 checksum: cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387.

Direct Python download halted at 80,740,352 bytes; the file was resumed with curl -C -. Only the .safetensors file is required – no .py or pickle files are needed, and no malware reports were found in community scans.

Enabling the draft variant

Running SQ‑15 with the draft variant dflash2 triggers an engine‑level veto because the hybrid memory layout (VRAM 2.6 GB + RAM 9.2 GB) cannot fit the required expert weights and the draft model simultaneously. The log states:

“experts need 11.4 GiB. With the draft’s 1.069 GiB, only 2.3 GiB of experts can be loaded; without the draft 3.3 GiB of experts can be loaded.”

To bypass the veto a forced configuration file sq15-manual-170-dflash-force.json is created and the engine is started with --draft on. In this mode the draft weights (331 MiB) plus a 15 MiB scratch buffer load in 0.53 s.

Measurement procedure

  • Environment – temperature 0, identical prompt set for all runs, one warm‑up generation before timing.
  • A‑branch – current production configuration (draft off).
  • B‑branch – forced DFlash 2 (draft on).
  • Metrics – decode tokens per second (tok/s) and total wall‑clock time.
  • Interruption handling – an automated Ornith scheduler restarted the process during the first B run, briefly inflating VRAM usage. The scheduler was disabled for the remainder of the experiment, and the system was re‑booted cleanly before the final B measurement.

The same prompt set was then fed to both branches, and the results were aggregated per task type (English QA, Japanese QA, counting, Japanese long‑form, code generation).


Results

Speed degradation across tasks

All measured tasks suffered slower decode speeds when DFlash 2 was forced. The most pronounced drop appears on Japanese long‑form text, where throughput fell from 31.8 tok/s to 7.7 tok/s (‑76 %). Shorter QA and counting tasks also slowed, but to a lesser extent (‑44 % to ‑64 %).

The aggregate wall‑time for the full prompt suite increased from 66.6 s to 163.6 s, a 2.46× slowdown.

Quality remains unchanged

The quality‑test v2 (16 questions, max tokens 2560) completed with every question ending in finish=stop and no errors in either configuration. Both A and B scored 100 / 100, and the raw token output matched byte‑for‑byte for QA (English/Japanese) and counting tasks. Counting results (1 .. 200) were perfectly correct in both runs. Total time was 752.1 s for 9,865 tokens under DFlash 2 versus a baseline of 394.5 s for 9,980 tokens.

Memory utilisation

  • A (draft off) – GPU memory 6,614 MiB, free RAM ≈ 5.6 GB.
  • B (draft forced) – GPU memory 6,992 MiB, free RAM ≈ 6.6 GB.

The draft model adds only ~380 MiB of GPU usage, confirming that the slowdown is not caused by VRAM saturation but by the memory placement of expert weights. In the default hybrid layout most expert tensors reside in RAM; each draft verification step forces a costly transfer to the GPU, eroding any speculative advantage.

Alternate placement experiment

When the same forced‑draft configuration was run on a VRAM‑centric layout (most experts resident in GPU memory), the speed picture changed dramatically:

  • Counting throughput +96 % (148.4 tok/s).
  • Japanese QA +14 %.
  • English QA +10 %.
  • Code generation +5 %.

Only Japanese long‑form text suffered a modest ‑21 % loss (59.8 tok/s). This demonstrates that the speculative benefit is highly dependent on where the expert model lives; with sufficient GPU memory the draft model can indeed accelerate predictable, short‑form tasks.


Judgement and rollback

Decision

The adoption criteria for SQ‑15 require “equal quality and at least +15 % decode speed.” While DFlash 2 preserves output quality, it fails the speed requirement in the default hybrid configuration, delivering a ‑48 % overall decode rate and up to ‑76 % on long Japanese prose. Consequently, the forced‑draft variant is rejected for production use.

Current state

  • The production SQ‑15 deployment remains unchanged (hybrid VRAM 2.6 GB + RAM 9.2 GB).
  • The file dflash2.safetensors stays in the model directory but is left disabled.

When to consider DFlash 2 again

If a future hardware upgrade provides larger GPU memory (or a configuration that places the majority of expert weights in VRAM), the forced draft variant can be re‑tested. In such a setup DFlash 2 shows clear gains for counting‑style workloads and short QA, making it a viable tool for sessions that process many brief queries.

Alternative speed‑up path

A different approach that proved effective is to replace the expert model with a fast‑decoding variant of Inkling‑2‑Mini (AD‑IQ1_S GGUF, 6.88 GB). Registered in Strata as inkling-fast, this model decodes at 73–80 tok/s. In the same quality‑test v2 it scored 93 / 100 in 202 s; tool calls measured 6/6 selection, 2/2 loops at about 3–4 s per step, and a 28.2 s switch time. A self‑correction loop without new material proved ineffective: after two rounds the score stayed at 93 points while wall time alone grew from 202 s to 659 s. This hybrid strategy—using inkling-fast for rapid execution and keeping SQ‑15 as the final evaluator—offers a practical compromise when GPU resources are limited.


Practical checklist for DFlash 2 deployment

  1. Memory layout – confirm whether the system uses a hybrid (VRAM + RAM) or a VRAM‑centric configuration.
  2. Workload profile – if the session consists mainly of counting or short QA queries, consider enabling --draft on with the forced‑draft variant.
  3. Model placement – ensure the expert weights can reside in GPU memory; otherwise the verification cost will dominate.
  4. Verification – run the quality‑test v2 and measure decode tok/s; adoption is only justified if speed meets the +15 % threshold.

How to obtain and verify DFlash 2

  1. Clone the official repo strata-engine/Inkling-2-Mini-DFlash2 at commit 04ecd36f….
  2. Download dflash2.safetensors (use curl -C - if the connection drops).
  3. Verify integrity with SHA‑256 cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387.
  4. Place the file next to the SQ‑15 model; do not fetch any accompanying Python scripts.
  5. Create a forced‑draft config (e.g., sq15-manual-170-dflash-force.json) and start the engine with --draft on.
  6. Confirm that the log reports loading 331 MiB of draft weights plus 15 MiB of scratch in under 1 s.
  7. Conduct A/B measurements as described above (temperature 0, identical prompts, one warm‑up).

Bottom line

In the default hybrid memory layout of SQ‑15, forcing the DFlash 2 speculative‑decoding draft model reduces decode speed by 44 %–76 % while leaving quality untouched. Because the speed regression far exceeds the required +15 % improvement, the variant is not adopted. It may become useful on systems with ample GPU memory or for workloads dominated by short, predictable queries, but until such conditions are met the safest course is to keep DFlash 2 disabled and rely on the existing SQ‑15 configuration.

Top comments (0)