<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 8GB Lab</title>
    <description>The latest articles on DEV Community by 8GB Lab (@8gblab).</description>
    <link>https://dev.to/8gblab</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4277000%2F4ad91ea9-6e09-4b5e-ae37-d4a8ba948576.png</url>
      <title>DEV Community: 8GB Lab</title>
      <link>https://dev.to/8gblab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/8gblab"/>
    <language>en</language>
    <item>
      <title>Qwen4-35B-A3B Hits 51.22 tok/s on 8GB VRAM: The Official Strata Release Beat the PR Trial</title>
      <dc:creator>8GB Lab</dc:creator>
      <pubDate>Sat, 05 Dec 2026 14:24:45 +0000</pubDate>
      <link>https://dev.to/8gblab/qwen4-35b-a3b-hits-5122-toks-on-8gb-vram-the-official-strata-release-beat-the-pr-trial-49ed</link>
      <guid>https://dev.to/8gblab/qwen4-35b-a3b-hits-5122-toks-on-8gb-vram-the-official-strata-release-beat-the-pr-trial-49ed</guid>
      <description>&lt;p&gt;In the previous article, Qwen4-35B-A3B reached 41.95 tok/s on an RTX 3070 Ti (8GB VRAM) with the Strata PR build (plain). This article continues that experiment: by retuning MTP depth and switching to the official Strata release, generation speed climbed from 30.43 tok/s to 51.22 tok/s — a total gain of 68% on the same hardware (RTX 3070 Ti, i7-12700, 32GB RAM).&lt;/p&gt;

&lt;p&gt;Every condition was tested on the same reasoning problem — counting numbers from 1 to 200 that are not divisible by 3, 5, or 7, where the correct answer is 92 — plus a Japanese summarisation task that had to complete normally. Because every configuration produced the correct answer and a valid summary, the comparison is strictly about speed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Three-Step Climb and Final Results
&lt;/h2&gt;

&lt;p&gt;The climb ran through three steps: llama.cpp COMBO at 30.43 tok/s, the Strata PR build at 41.95 tok/s (plain, +37.9% over llama.cpp) and 50.21 tok/s (MTP spec 2, +19.7% vs plain, +65% vs llama.cpp), and finally the official Strata plain build at 51.22 tok/s.&lt;/p&gt;

&lt;h3&gt;
  
  
  Full Results Table
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Configuration&lt;/th&gt;
&lt;th&gt;Generation Speed (tok/s)&lt;/th&gt;
&lt;th&gt;Long-Prompt Processing (tok/s)&lt;/th&gt;
&lt;th&gt;Correct Answer (92)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;llama.cpp COMBO&lt;/strong&gt; (best generation)&lt;/td&gt;
&lt;td&gt;30.43&lt;/td&gt;
&lt;td&gt;300.93&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Strata PR build, plain&lt;/strong&gt; (earlier article)&lt;/td&gt;
&lt;td&gt;41.95&lt;/td&gt;
&lt;td&gt;885.75&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Strata PR build + MTP spec 4&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;32.52&lt;/td&gt;
&lt;td&gt;578.9&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Strata PR build + MTP spec 3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;40.89&lt;/td&gt;
&lt;td&gt;477.0&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Strata PR build + MTP spec 2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;50.21&lt;/td&gt;
&lt;td&gt;448–597&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Official Strata + MTP spec 2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;46.47&lt;/td&gt;
&lt;td&gt;444.14&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Official Strata plain&lt;/strong&gt; (adopted)&lt;/td&gt;
&lt;td&gt;51.22&lt;/td&gt;
&lt;td&gt;769.49–770.42&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The official Strata release (v0.2.27, Qwen4 support from v0.2.26, engine strata-q4-lite 0.1.74) averaged 51.22 tok/s over 6 runs with no MTP. The runs were 51.31, 49.43, 51.69, 51.45, 48.90, and 54.55 tok/s — fastest 54.55, slowest 48.90. VRAM was 7,200 MiB of 8,192 MiB, leaving about 1 GB free, and long-prompt processing reached 769.49–770.42 tok/s. This is the adopted configuration for daily use.&lt;/p&gt;

&lt;h2&gt;
  
  
  MTP Depth and Acceptance Rates
&lt;/h2&gt;

&lt;p&gt;Multi-token prediction (MTP) serves as the speculative-decoding draft mechanism, where &lt;em&gt;spec&lt;/em&gt; represents the MTP depth (the number of tokens the draft predicts ahead), and &lt;em&gt;acceptance rate&lt;/em&gt; is the share of predicted tokens that the main model accepts.&lt;/p&gt;

&lt;p&gt;On the Strata PR build, MTP depth showed a sharp cliff driven by acceptance rates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spec 2:&lt;/strong&gt; 50.21 tok/s (acceptance rate: 83–92%)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spec 3:&lt;/strong&gt; 40.89 tok/s (acceptance rate: 73.2%)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spec 4:&lt;/strong&gt; 32.52 tok/s (acceptance rate: 59.3%)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Deeper predictions lower acceptance: spec 3 falls below the plain PR build's 41.95 tok/s, and spec 4 drops to 32.52 tok/s. More prediction adds verification cost per pass, and later predictions miss more often. Below roughly 80% acceptance, depth becomes a drag; only depth 2 accelerated the PR build.&lt;/p&gt;

&lt;p&gt;Also, &lt;code&gt;--spec 1&lt;/code&gt; was rejected by the engine at startup: the valid range for spec is 2–5.&lt;/p&gt;

&lt;h2&gt;
  
  
  Axes That Did Not Win
&lt;/h2&gt;

&lt;p&gt;Several alternative adjustments were tested against the spec-2 cycle's own re-measured control of 49.90 tok/s:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;VRAM reserve set to 256 MiB:&lt;/strong&gt; 49.56 tok/s (equivalent to the 49.90 control). The expert-cache hit rate rose from 55.5% to 60.8%, but generation speed did not move, proving that the hit rate is not the bottleneck at this level.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefill window set to 4096:&lt;/strong&gt; 49.17 tok/s (equivalent). Long-prompt processing rose slightly from 448.07 to 476.8 tok/s, but generation speed did not benefit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KV cache quantised to q4_0:&lt;/strong&gt; 48.57 tok/s (equivalent or worse).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KV cache quantised to k8v4:&lt;/strong&gt; 48.33 tok/s (below int8).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Combination (VRAM reserve 256 + KV q4_0):&lt;/strong&gt; 51.21 tok/s (equivalent). Two individually equivalent changes did not combine into a performance win.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speculative decoding without the MTP draft (spec 2, no MTP):&lt;/strong&gt; 48.70 tok/s (below the MTP version). Acceptance fell steeply from 90.8% to 35.1%, demonstrating that prediction-free speculation cannot replace the MTP drafter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The UD-IQ4_XS quantisation was also tested and rejected. It looked deceptively fast at 78.13 tok/s, but the output fell into a repeating loop (&lt;code&gt;floor(200/3) = 100/3 = 100/3 = ...&lt;/code&gt;) and failed to reach the correct answer 92. SHA-256 verification ruled out download corruption, and reading the conversion script and engine source found no mishandling of IQ4_XS. The decisive cross-check ran the same IQ4_XS file under llama.cpp, where it derived the correct answer 92. The weights are fine, so the problem is on Strata's side of handling IQ4_XS. Quantisation stays with Q4_K_M.&lt;/p&gt;

&lt;h2&gt;
  
  
  Official Release vs. PR Build
&lt;/h2&gt;

&lt;p&gt;PR #7774 stays closed and unmerged, but the same content reached the official release through another route. Reusing the pack built during the night without conversion, official plain hit 51.22 tok/s — beating the PR build's MTP spec 2 by +2.0%. The gap is small, but the official build is a maintained release that needs no MTP sidecar file.&lt;/p&gt;

&lt;p&gt;Running the official build with MTP spec 2 yielded 46.47 tok/s (3-run average), slower than plain despite an 88–90% acceptance rate. On an 8GB card, the MTP sidecar's draft-evaluation cost outweighs the gains from accepted predictions. Spec 2 wins on the PR build but loses on the official build, so "MTP spec 2 is fastest" is only true for the PR build. Official plain is fastest at 51.22 tok/s, and also leads long-prompt processing at 769.49–770.42 tok/s versus the PR MTP spec 2 build's 461.86 tok/s.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 8GB Playbook: Empirical Tips from the Measurements
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Engine choice beats stacking settings:&lt;/strong&gt; Swapping the engine from llama.cpp COMBO (30.43 tok/s) to Strata plain (41.95 tok/s) delivered a +37.9% speedup. In contrast, stacking Flash Attention, MTP quantisation, and batch 77 on llama.cpp only moved the base from 29.24 to 30.43 tok/s (+4.1%).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Judge speculative decoding by acceptance rate, not depth:&lt;/strong&gt; On llama.cpp, n-max 1 gave 28.30 tok/s (90.4% acceptance), n-max 2 gave 25.77 tok/s (75.9%), and n-max 3 gave 23.93 tok/s (55.0%). On the Strata PR build, spec 2 hit 50.21 tok/s (83–92%) while spec 4 fell to 32.52 tok/s (59.3%). On the official build, plain beat MTP spec 2. Judge by acceptance and measured speed, not by the depth number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose quantisation by engine fit:&lt;/strong&gt; UD-Q4_K_M was stable and correct across all tests. UD-IQ4_XS looped on Strata but succeeded on llama.cpp with the same file. A lighter quantisation that looks faster is useless if the runtime engine handles it incorrectly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefill tuning:&lt;/strong&gt; The &lt;code&gt;-ub 1024&lt;/code&gt; flag raised long-prompt processing from 300.93 to 417.8 tok/s (about a +33% improvement), while generation speed remained nearly unchanged moving from 30.43 to 30.64 tok/s — making it a prefill-only win.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flash Attention:&lt;/strong&gt; Enabling Flash Attention (&lt;code&gt;-fa&lt;/code&gt;) provided a small but reliable win, moving speed from 29.24 to 30.12 tok/s (+3.0%).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KV cache quantisation losses:&lt;/strong&gt; On the Strata spec-2 axis, q4_0 yielded 48.57 tok/s and k8v4 yielded 48.33 tok/s against the 49.90 control. On llama.cpp, combining &lt;code&gt;-ctk q8_0 -ctv q8_0&lt;/code&gt; dropped speeds from 26.46 to 24.24 tok/s.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MoE expert placement:&lt;/strong&gt; Forcing Mixture-of-Experts (MoE) routed weights onto the GPU causes severe thrashing. With all experts on the GPU and no &lt;code&gt;-cmoe&lt;/code&gt;, generation plummeted to 5.16 tok/s; using &lt;code&gt;-ncmoe 24&lt;/code&gt; (partial GPU offloading) yielded 7.3 tok/s; using &lt;code&gt;-cmoe&lt;/code&gt; to keep experts on the CPU restored performance to 26.46 tok/s.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage hardware matters:&lt;/strong&gt; Reading part of the model pack from an HDD dropped long-prompt processing to 143.41 tok/s. Moving the identical files to an SSD recovered it to 1304.15 tok/s. When speed is missing, check storage before settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VRAM headroom and resident models:&lt;/strong&gt; The official plain configuration consumes 7,200 MiB of 8,192 MiB VRAM, leaving roughly 1 GB free. Co-running a resident model is feasible when managed against total capacity: llama.cpp COMBO plus a resident model totalled 7,394 MiB of VRAM and maintained a generation speed of 30.52–33.77 tok/s (with the resident model alone consuming 1,521 MiB).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native compilation limits:&lt;/strong&gt; A native source build did not help on Ampere and Alder Lake hardware. Long-prompt processing was 128.28 tok/s, and rebuilding with explicit AVX2 support reached only 199.62 tok/s — both well below the distributed binary's 300.93 tok/s. Generation was 29.29 tok/s.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ik_llama.cpp lost on this setup:&lt;/strong&gt; &lt;code&gt;ik_llama.cpp&lt;/code&gt; logged 12.97 tok/s generation and 48.57 tok/s long-prompt processing (less than half of the adopted configuration). Although MTP was running, slow CPU-side processing dragged down the entire pipeline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context length hits RAM limits first:&lt;/strong&gt; Extending the context window to 16384 dropped generation speed from 26.46 to 24.24 tok/s. Under the experts-on-GPU condition, free system RAM fell to 0.1 GB, forcing the measurement to be aborted due to thrashing risks. Context length is limited by RAM first, not VRAM.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Across six cycles — each with a written design, external review, and re-measured controls — performance went from 30.43 tok/s (llama.cpp) to 41.95 tok/s (Strata PR plain), 50.21 tok/s (Strata PR + MTP spec 2), and 51.22 tok/s (official Strata plain): +68% on one RTX 3070 Ti with 8GB of VRAM, with the correct answer 92 and Japanese summarisation normal throughout. To reproduce this, start from the official Strata v0.2.27 (or later) procedure with plain configuration — not from fetching and building an unmerged PR.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>localllm</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>Qwen4-35B-A3B Hits 30.43 tok/s on 8GB VRAM: Speculative-Decoding Acceptance Rate Decided It</title>
      <dc:creator>8GB Lab</dc:creator>
      <pubDate>Fri, 04 Dec 2026 14:13:41 +0000</pubDate>
      <link>https://dev.to/8gblab/qwen4-35b-a3b-hits-3043-toks-on-8gb-vram-speculative-decoding-acceptance-rate-decided-it-1515</link>
      <guid>https://dev.to/8gblab/qwen4-35b-a3b-hits-3043-toks-on-8gb-vram-speculative-decoding-acceptance-rate-decided-it-1515</guid>
      <description>&lt;p&gt;Optimizing local large language models on constrained hardware usually feels like a game of diminishing returns. When working with an 8GB VRAM setup, conventional wisdom points toward shrinking the model or buying a new GPU. However, systematic testing on the Qwen4-35B-A3B model (35B total parameters, 3B activated per token) running via llama.cpp (CUDA build) on an RTX 3070 Ti with 32GB of RAM proves otherwise. By carefully tuning speculative decoding and stacking minor configuration changes, generation speed rose from a baseline of 26.6 tok/s to 30.43 tok/s—a 14.4% improvement—without purchasing new hardware or reducing model size.&lt;/p&gt;

&lt;p&gt;Every condition was evaluated using the same reasoning problem: counting numbers from 1 to 200 that are not divisible by 3, 5, or 7 (with a correct answer of 92). Generation speed is the average of three runs of 200-token generation at temperature 0, isolating speed as the sole variable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phase 1: Baseline and Initial Parameter Adjustments
&lt;/h2&gt;

&lt;p&gt;In the first phase, the ggml-org Q4_K_M was used as the main model. Changing one setting at a time yielded the following generation speeds:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Generation (tok/s)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Baseline, no MTP&lt;/td&gt;
&lt;td&gt;26.46&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;C1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MTP (n-max 1)&lt;/td&gt;
&lt;td&gt;28.30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MTP (n-max 2)&lt;/td&gt;
&lt;td&gt;28.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;C4&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MTP (n-max 4)&lt;/td&gt;
&lt;td&gt;20.59&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;D&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MoE experts moved to GPU (without -cmoe)&lt;/td&gt;
&lt;td&gt;5.16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;D2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;MoE experts to GPU, with cache&lt;/td&gt;
&lt;td&gt;7.30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;E&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;KV cache quantized to q8_0&lt;/td&gt;
&lt;td&gt;24.24&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;F8&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;8 threads&lt;/td&gt;
&lt;td&gt;25.92&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;F16&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;16 threads&lt;/td&gt;
&lt;td&gt;25.31&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In this phase, MTP (multi-token prediction, serving as the speculative-decoding draft mechanism) successfully lifted performance when predicting a single token, but performance dropped rapidly as the prediction length increased.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phase 2: Quantization Swaps and Detailed Tuning
&lt;/h2&gt;

&lt;p&gt;Phase 2 shifted the main model to the Unsloth build (UD-Q4_K_M), then tested how it behaved with MTP at different prediction lengths:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Generation (tok/s)&lt;/th&gt;
&lt;th&gt;Change vs Reference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;U0&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;UD-Q4_K_M alone&lt;/td&gt;
&lt;td&gt;24.42&lt;/td&gt;
&lt;td&gt;vs A, -7.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;U1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;UD-Q4_K_M + MTP (n-max 1)&lt;/td&gt;
&lt;td&gt;29.24&lt;/td&gt;
&lt;td&gt;vs C1, +3.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;N2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;U1 with n-max 2&lt;/td&gt;
&lt;td&gt;25.77&lt;/td&gt;
&lt;td&gt;vs U1, -11.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;N3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;U1 with n-max 3&lt;/td&gt;
&lt;td&gt;23.93&lt;/td&gt;
&lt;td&gt;vs U1, -18.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  The Quantization Reversal
&lt;/h3&gt;

&lt;p&gt;Head-to-head alone, UD-Q4_K_M achieves 24.42 tok/s, losing to the ggml baseline of 26.46 tok/s by -7.7%. However, when paired with MTP, UD + MTP reaches 29.24 tok/s, beating ggml + MTP (28.30 tok/s) by +3.3%. &lt;/p&gt;

&lt;p&gt;The acceptance rates hint at why this occurs: UD + MTP registers an acceptance rate of 0.90, while ggml + MTP sits at 0.91, which is nearly identical. With equal acceptance, the number of tokens pulled per main-model pass is the same. The performance gap therefore stems from the main model's per-token cost: the UD build is slower alone due to a higher per-pass cost, meaning it gains relatively more when MTP extracts several tokens out of a single pass. While the exact mechanism cannot be proven from numbers alone, this is the most consistent explanation, and the measured conclusion stands either way. &lt;/p&gt;

&lt;p&gt;For long-prompt processing, UD + MTP yields 297.88 tok/s versus ggml + MTP's 301.94 tok/s (nearly tied at -1.3%), and both successfully output the correct answer of 92. Consequently, there is no context-free answer to which quantization is fastest: use UD with MTP, but use ggml without MTP.&lt;/p&gt;

&lt;h2&gt;
  
  
  Acceptance Rates and the Danger of Over-Prediction
&lt;/h2&gt;

&lt;p&gt;The acceptance rate—defined as the share of the draft model's predicted tokens that the main model accepts—dictates the practical limits of speculative decoding.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Acceptance Rate&lt;/th&gt;
&lt;th&gt;Generation Speed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;n-max 1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.90 to 0.93&lt;/td&gt;
&lt;td&gt;29.24 tok/s (U1)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;n-max 2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.76&lt;/td&gt;
&lt;td&gt;25.77 tok/s (N2)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;n-max 3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.55&lt;/td&gt;
&lt;td&gt;23.93 tok/s (N3)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;n-max 4&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.38&lt;/td&gt;
&lt;td&gt;20.59 tok/s (C4)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Raising n-max (the parameter determining how many tokens the draft predicts ahead) from 1 to 2 drops the acceptance rate from 0.90 to 0.76. At n-max 3 it falls to 0.55, and at n-max 4 it plummets to 0.38. Wrong predictions waste the compute spent on them, and this collapse in acceptance outweighs the benefit of predicting more tokens. As a result, speed falls as n-max rises: n-max 2 is -11.9% and n-max 3 is -18.2% against n-max 1's 29.24 tok/s.&lt;/p&gt;

&lt;p&gt;There is one exception: n-max 3 yielded the fastest long-prompt processing of all conditions at 322.33 tok/s. Therefore, n-max 1 remains ideal for generation-heavy use, while n-max 3 is viable for long-prompt reading only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phase 3: Stacking Small Wins
&lt;/h2&gt;

&lt;p&gt;Phase 3 successfully stacked three independent optimizations onto U1 (29.24 tok/s), each contributing roughly +3% on its own:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enabling flash attention (&lt;code&gt;-fa&lt;/code&gt; on): 30.12 tok/s (+3.0%).&lt;/li&gt;
&lt;li&gt;Updating llama.cpp from b12973 to b12977: 30.28 tok/s (+3.6%).&lt;/li&gt;
&lt;li&gt;Changing the MTP draft from ggml Q4_K_M to Unsloth Q8_0: 30.18 tok/s (+3.2%), which simultaneously pushed the acceptance rate to 0.93, the highest of all conditions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Combining all three into the COMBO configuration achieved 30.43 tok/s (+4.1% vs U1). While the individual gains do not strictly add up linearly, the final throughput remains unreachable if any of the three components is missing. &lt;/p&gt;

&lt;p&gt;The final configuration consists of the main model Unsloth UD-Q4_K_M, the draft Unsloth MTP Q8_0 at n-max 1, running on llama.cpp b12977 with &lt;code&gt;-fa&lt;/code&gt; on and &lt;code&gt;-ngl all -cmoe --fit on&lt;/code&gt;. Long-prompt processing for the COMBO setup reaches 300.93 tok/s (+1.0% vs U1) while still returning the correct answer of 92. This setup was also confirmed to run alongside other local models, though performance drops when system resources are shared.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Honest Failures
&lt;/h2&gt;

&lt;p&gt;Not every experimental change yielded a performance boost. Several adjustments that seemed promising in theory resulted in clear regressions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Moving MoE experts to the GPU:&lt;/strong&gt; This was the largest failure, dropping generation speed to 5.16 tok/s—about one-fifth of the baseline. Moving the routed expert weights of the Mixture-of-Experts model into the 8GB VRAM left only 0.7 GB of free RAM, causing the system to enter memory thrashing. Condition D2 with cache reached only 7.30 tok/s. The rule that putting weights on the GPU increases speed only holds true when sufficient memory headroom exists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KV cache quantization:&lt;/strong&gt; Quantizing the KV cache to &lt;code&gt;q8_0&lt;/code&gt; resulted in 24.24 tok/s, representing an 8.4% degradation compared to the 26.46 baseline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thread counts:&lt;/strong&gt; Adjusting thread counts degraded performance. Running 8 threads yielded 25.92 tok/s (-2.0%), and 16 threads yielded 25.31 tok/s (-4.3%). The default thread count was already optimal.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Breakdown and Conclusion
&lt;/h2&gt;

&lt;p&gt;The total 14.4% performance leap from 26.6 to 30.43 tok/s breaks down into specific contributors: the initial introduction of MTP added +7.0%, the UD quantization swap combined with MTP added +3.3%, and the three stacked small wins contributed +4.1%. There was never a single massive jump. Furthermore, every change that "should" have been faster in theory—such as raising n-max above 1—failed because the acceptance rate collapsed.&lt;/p&gt;

&lt;p&gt;On an 8GB-class setup, execution speed is decided not by brute-force model reduction, but by tuning the speculative-decoding acceptance rate and stacking compatible settings. Before investing in a new GPU, set n-max to 1 and measure your acceptance rate. The empirical data frequently points in the exact opposite direction of intuition.&lt;/p&gt;

</description>
      <category>llmlocalllmaiprogrammingllm</category>
      <category>localllm</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>DFlash 2 Slowed SQ-15 by 44–76%: Speculative Decoding Fails on the Default Hybrid Setup</title>
      <dc:creator>8GB Lab</dc:creator>
      <pubDate>Thu, 03 Dec 2026 15:02:07 +0000</pubDate>
      <link>https://dev.to/8gblab/dflash-2-slowed-sq-15-by-44-76-speculative-decoding-fails-on-the-default-hybrid-setup-d3e</link>
      <guid>https://dev.to/8gblab/dflash-2-slowed-sq-15-by-44-76-speculative-decoding-fails-on-the-default-hybrid-setup-d3e</guid>
      <description>&lt;h1&gt;
  
  
  DFlash 2 Slowed SQ-15 by 44–76%: Speculative Decoding Fails on the Default Hybrid Setup
&lt;/h1&gt;




&lt;h2&gt;
  
  
  Conclusion – the hardest numbers first
&lt;/h2&gt;

&lt;p&gt;When the speculative‑decoding draft model &lt;strong&gt;DFlash 2&lt;/strong&gt; is forced on the &lt;strong&gt;SQ‑15&lt;/strong&gt; 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 &lt;strong&gt;100 / 100&lt;/strong&gt;, but the wall‑clock decode speed falls from the baseline &lt;strong&gt;25.3 tokens / s&lt;/strong&gt; to &lt;strong&gt;13.1 tokens / s&lt;/strong&gt;, a &lt;strong&gt;‑48 %&lt;/strong&gt; reduction.  &lt;/p&gt;

&lt;p&gt;The effect is far worse for specific workloads:  &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task (temperature 0)&lt;/th&gt;
&lt;th&gt;Baseline tok/s → DFlash 2 forced&lt;/th&gt;
&lt;th&gt;% change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;English QA&lt;/td&gt;
&lt;td&gt;32.1 → 13.8&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;‑57 %&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Japanese QA (short)&lt;/td&gt;
&lt;td&gt;36.0 → 12.9&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;‑64 %&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Counting 1‑200&lt;/td&gt;
&lt;td&gt;39.9 → 22.4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;‑44 %&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Japanese long‑form&lt;/td&gt;
&lt;td&gt;31.8 → 7.7&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;‑76 %&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code generation&lt;/td&gt;
&lt;td&gt;27.9 → 13.2&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;‑53 %&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total wall‑time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;66.6 s → 163.6 s (2.46× slower)&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Because the adoption rule for SQ‑15 requires &lt;strong&gt;“equal quality and at least +15 % decode speed”&lt;/strong&gt;, 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.&lt;/p&gt;




&lt;h2&gt;
  
  
  Setup and method
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is DFlash 2?
&lt;/h3&gt;

&lt;p&gt;DFlash 2 is the speculative‑decoding (“draft”) component introduced in &lt;strong&gt;Strata 0.2.23&lt;/strong&gt;. 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.&lt;/p&gt;

&lt;h3&gt;
  
  
  Acquiring the draft weights
&lt;/h3&gt;

&lt;p&gt;The draft weights are stored in the file &lt;strong&gt;&lt;code&gt;dflash2.safetensors&lt;/code&gt;&lt;/strong&gt;. 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 &lt;strong&gt;&lt;code&gt;strata-engine/Inkling-2-Mini-DFlash2&lt;/code&gt;&lt;/strong&gt; at commit &lt;strong&gt;&lt;code&gt;04ecd36f…&lt;/code&gt;&lt;/strong&gt;.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Size (quantised mix version): &lt;strong&gt;551,600,700 bytes&lt;/strong&gt; (original full version: 989,975,616 bytes).
&lt;/li&gt;
&lt;li&gt;SHA‑256 checksum: &lt;strong&gt;&lt;code&gt;cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387&lt;/code&gt;&lt;/strong&gt;.
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;h3&gt;
  
  
  Enabling the draft variant
&lt;/h3&gt;

&lt;p&gt;Running SQ‑15 with the draft variant &lt;code&gt;dflash2&lt;/code&gt; 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:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“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.”&lt;/p&gt;
&lt;/blockquote&gt;

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

&lt;h3&gt;
  
  
  Measurement procedure
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Environment&lt;/strong&gt; – temperature 0, identical prompt set for all runs, one warm‑up generation before timing.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A‑branch&lt;/strong&gt; – current production configuration (&lt;code&gt;draft off&lt;/code&gt;).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;B‑branch&lt;/strong&gt; – forced DFlash 2 (&lt;code&gt;draft on&lt;/code&gt;).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metrics&lt;/strong&gt; – decode tokens per second (tok/s) and total wall‑clock time.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interruption handling&lt;/strong&gt; – 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.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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).&lt;/p&gt;




&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Speed degradation across tasks
&lt;/h3&gt;

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

&lt;p&gt;The aggregate wall‑time for the full prompt suite increased from &lt;strong&gt;66.6 s&lt;/strong&gt; to &lt;strong&gt;163.6 s&lt;/strong&gt;, a &lt;strong&gt;2.46×&lt;/strong&gt; slowdown.&lt;/p&gt;

&lt;h3&gt;
  
  
  Quality remains unchanged
&lt;/h3&gt;

&lt;p&gt;The quality‑test v2 (16 questions, max tokens 2560) completed with every question ending in &lt;code&gt;finish=stop&lt;/code&gt; and no errors in either configuration. Both A and B scored &lt;strong&gt;100 / 100&lt;/strong&gt;, 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 &lt;strong&gt;752.1 s for 9,865 tokens&lt;/strong&gt; under DFlash 2 versus a baseline of &lt;strong&gt;394.5 s for 9,980 tokens&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Memory utilisation
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A (draft off)&lt;/strong&gt; – GPU memory 6,614 MiB, free RAM ≈ 5.6 GB.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;B (draft forced)&lt;/strong&gt; – GPU memory 6,992 MiB, free RAM ≈ 6.6 GB.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The draft model adds only ~380 MiB of GPU usage, confirming that the slowdown is not caused by VRAM saturation but by the &lt;strong&gt;memory placement of expert weights&lt;/strong&gt;. 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.&lt;/p&gt;

&lt;h3&gt;
  
  
  Alternate placement experiment
&lt;/h3&gt;

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

&lt;ul&gt;
&lt;li&gt;Counting throughput &lt;strong&gt;+96 %&lt;/strong&gt; (148.4 tok/s).
&lt;/li&gt;
&lt;li&gt;Japanese QA &lt;strong&gt;+14 %&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;English QA &lt;strong&gt;+10 %&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;Code generation &lt;strong&gt;+5 %&lt;/strong&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only Japanese long‑form text suffered a modest &lt;strong&gt;‑21 %&lt;/strong&gt; 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.&lt;/p&gt;




&lt;h2&gt;
  
  
  Judgement and rollback
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Decision
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  Current state
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The production SQ‑15 deployment remains unchanged (hybrid VRAM 2.6 GB + RAM 9.2 GB).
&lt;/li&gt;
&lt;li&gt;The file &lt;strong&gt;&lt;code&gt;dflash2.safetensors&lt;/code&gt;&lt;/strong&gt; stays in the model directory but is &lt;strong&gt;left disabled&lt;/strong&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  When to consider DFlash 2 again
&lt;/h3&gt;

&lt;p&gt;If a future hardware upgrade provides &lt;strong&gt;larger GPU memory&lt;/strong&gt; (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 &lt;strong&gt;counting‑style workloads and short QA&lt;/strong&gt;, making it a viable tool for sessions that process many brief queries.&lt;/p&gt;

&lt;h3&gt;
  
  
  Alternative speed‑up path
&lt;/h3&gt;

&lt;p&gt;A different approach that proved effective is to replace the expert model with a &lt;strong&gt;fast‑decoding variant of Inkling‑2‑Mini&lt;/strong&gt; (AD‑IQ1_S GGUF, 6.88 GB). Registered in Strata as &lt;strong&gt;&lt;code&gt;inkling-fast&lt;/code&gt;&lt;/strong&gt;, this model decodes at &lt;strong&gt;73–80 tok/s&lt;/strong&gt;. In the same quality‑test v2 it scored &lt;strong&gt;93 / 100&lt;/strong&gt; in &lt;strong&gt;202 s&lt;/strong&gt;; 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 &lt;code&gt;inkling-fast&lt;/code&gt; for rapid execution and keeping SQ‑15 as the final evaluator—offers a practical compromise when GPU resources are limited.&lt;/p&gt;




&lt;h2&gt;
  
  
  Practical checklist for DFlash 2 deployment
&lt;/h2&gt;

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




&lt;h2&gt;
  
  
  How to obtain and verify DFlash 2
&lt;/h2&gt;

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




&lt;h3&gt;
  
  
  Bottom line
&lt;/h3&gt;

&lt;p&gt;In the &lt;strong&gt;default hybrid memory layout&lt;/strong&gt; of SQ‑15, forcing the &lt;strong&gt;DFlash 2&lt;/strong&gt; speculative‑decoding draft model &lt;strong&gt;reduces decode speed by 44 %–76 %&lt;/strong&gt; while leaving quality untouched. Because the speed regression far exceeds the required &lt;strong&gt;+15 %&lt;/strong&gt; improvement, the variant is &lt;strong&gt;not adopted&lt;/strong&gt;. 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.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>localllm</category>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>41.70 tok/s Is a Server Reference, Not the Score — Measuring Local-LLM Speed in 47 Seconds on 8GB VRAM</title>
      <dc:creator>8GB Lab</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:55:41 +0000</pubDate>
      <link>https://dev.to/8gblab/4170-toks-is-a-server-reference-not-the-score-measuring-local-llm-speed-in-47-seconds-on-8gb-2nmc</link>
      <guid>https://dev.to/8gblab/4170-toks-is-a-server-reference-not-the-score-measuring-local-llm-speed-in-47-seconds-on-8gb-2nmc</guid>
      <description>&lt;p&gt;When running a local LLM on an 8GB VRAM GPU, raw generation speed can easily deceive. A server-side reading of 41.70 tok/s might look impressive, but it tells us nothing about how an entire workflow actually performs. Under verification protocol v1.1, fixed on November 16, 2026, speed is measured not in tokens per second, but in the total elapsed time of two standard tasks, A and B. Using this exact methodology, the current setup of &lt;code&gt;dsh&lt;/code&gt; (the author's task harness) and &lt;code&gt;Ornith&lt;/code&gt; (the model setup it drives) completes tasks A and B in 47 seconds total, yielding 29 speed points and 78 points overall on a 100-point environment score benchmark (which allocates 30 points to speed, 30 to quality, 25 to stability, and 15 to operational fit). &lt;/p&gt;

&lt;p&gt;By contrast, the fallback setup of &lt;code&gt;Hermes&lt;/code&gt; and &lt;code&gt;Ornith&lt;/code&gt; scores 61 points total, requiring 107 seconds for tasks A and B and earning just 13 speed points. Stability remains identical at 23 points for both setups, meaning the 17-point gap comes from speed and quality, partly offset by operational fit, where the fallback setup scores higher (15 against 12). To keep these evaluations reliable, all measurements follow strict rules: every test is run 3 times with the median taken to eliminate single-measurement noise under 8GB memory pressure, reproduction is confirmed twice, and evidence rules demand primary-source URLs and raw execution records for every data point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Tokens-per-Second Fails on 8GB VRAM
&lt;/h2&gt;

&lt;p&gt;The core reason to abandon tok/s for decisive scoring is simple: tok/s is a metric shared across servers. When the server side and client side use the same hardware setup, differences between harnesses (the measuring instruments) cancel out. Competing purely on tok/s lets the measurement environment win, producing a ranking derived from numbers entirely unrelated to practical working speed. Furthermore, on 8GB of VRAM, models often look fast enough for their baseline purpose on paper, yet tok/s alone masks the actual friction points between different 8GB setups. &lt;/p&gt;

&lt;p&gt;The figure of 41.70 tok/s—alongside a reproduced server reference value of 41.25 tok/s—is strictly a llama-bench server reference value, generated using &lt;code&gt;llama-server /completion&lt;/code&gt; with a fixed Japanese prompt: 「ローカルLLMを8GB VRAMで動かす利点を3つ挙げてください。」 (English: "List three advantages of running a local LLM on 8GB VRAM."), with &lt;code&gt;n_predict 200&lt;/code&gt;, &lt;code&gt;temperature 0.7&lt;/code&gt;, and &lt;code&gt;cache_prompt false&lt;/code&gt;. In this server-reference measurement, &lt;code&gt;timings.predicted_per_second&lt;/code&gt; is measured 3 times and the median is taken. tok/s is deliberately demoted to a reference value here, kept entirely out of the decisive scoring comparison. For instance, server-worked examples using Qwen3-4B Q4_K_M generated with the &lt;code&gt;llama.cpp&lt;/code&gt; b12811 Vulkan build reproduced 41.25 and 41.70 tok/s values via &lt;code&gt;llama-bench pp512&lt;/code&gt; and &lt;code&gt;tg128&lt;/code&gt;, proving the figures were not flukes. However, these numbers do not convert into speed points. Instead, practical speed is governed by a strict formula: 30 points multiplied by (45 seconds divided by the measured total seconds), capped at a maximum of 30 points. The 45-second baseline is simply the author's measured 47 seconds rounded to a neat value.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Standard Tasks and Defect Counting
&lt;/h2&gt;

&lt;p&gt;Practical speed and output integrity are tested via two standardized tasks. Standard Task A is a small file-generation test: the system must write a file named &lt;code&gt;answer.txt&lt;/code&gt; containing exactly two lines—&lt;code&gt;v21-ok&lt;/code&gt; and &lt;code&gt;9 * 7 = 63&lt;/code&gt;—while recording the exact elapsed time from submission until the file is finalized, alongside a verification of whether the content matches. &lt;/p&gt;

&lt;p&gt;Standard Task B is a short generation test centered on a mandatory theme: "points to watch when running a local LLM on an 8GB VRAM GPU". To maintain strict control, only three factual points may be utilized: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The KV cache also consumes VRAM.&lt;/li&gt;
&lt;li&gt;The longer the context, the more the KV cache grows.&lt;/li&gt;
&lt;li&gt;Quantization can hold down the model body. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Task B outputs must be between 800 and 1,200 Japanese characters, written in a polite &lt;em&gt;desu/masu&lt;/em&gt; style, featuring exactly one heading plus body text. &lt;/p&gt;

&lt;p&gt;Because the speed score is derived entirely from the A+B total seconds, a fast generation speed is useless if content quality collapses. Quality is kept in check via a rigorous defect-counting system comprising six specific defect kinds: fabrication, mixed simplified-Chinese characters, repeated sentences, fragment sentences, length deviation, and format collapse. Under the 100-point environment score breakdown, quality deductions are heavily penalized: fabrication incurs a 15-point deduction per case, format collapse costs 5 points, and repetition, fragment sentences, simplified-Chinese mixing, or length deviation each deduct 3 points per case. For example, the &lt;code&gt;dsh + Ornith&lt;/code&gt; setup earns a quality score of 14 points due to these stringent checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Night Benches, Evidence Rules, and Rejected Methods
&lt;/h2&gt;

&lt;p&gt;To ensure thermal and operational stability, automated night benches run at 03:49. A built-in guard skips the run entirely if the GPU temperature exceeds 85°C, and the server is restarted afterwards. Results from the 03:49 night bench on December 2, 2026, recorded &lt;code&gt;cuda-4b&lt;/code&gt; at 34.20 tok/s, &lt;code&gt;cuda-8b&lt;/code&gt; at 21.60 tok/s, and &lt;code&gt;vulkan-4b&lt;/code&gt; at 41.52 tok/s. Temperatures hovered safely between 56°C and 66°C, yielding no new best score (as 41.52 tok/s falls well within the margin of error of the existing 41.70 tok/s best). &lt;/p&gt;

&lt;p&gt;To prevent data drift, the evidence rule mandates that all measurement and adoption records must always carry a primary-source URL and a direct reference to the raw measurement file or execution record. Stripping away numbers to leave bare claims makes later reproduction impossible, as no one can verify under what conditions a step was executed.&lt;/p&gt;

&lt;p&gt;Several architectural approaches were rigorously tested and ultimately rejected by this measurement framework:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;llama.cpp&lt;/code&gt; CUDA 4B generation yielded 33.74 / 34.09 tok/s with prompt processing at 586–596 tok/s, but was relegated to a reference value only.&lt;/li&gt;
&lt;li&gt;Speculative decoding utilizing &lt;code&gt;draft-simple&lt;/code&gt; combined with &lt;code&gt;Qwen3-0.6B-Q8_0&lt;/code&gt; and an &lt;code&gt;n-max&lt;/code&gt; of 8 actively degraded generation speed down to 14.8–15.2 tok/s; it was rejected for being slower.&lt;/li&gt;
&lt;li&gt;Speculative decoding using &lt;code&gt;ngram&lt;/code&gt; achieved 40.15 / 40.28 tok/s against a baseline of 40.10 / 40.38 under identical conditions. Because this fell squarely within the margin of error with no real improvement, it was rejected.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Measurement Command Set
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Server reference value generation: executed via &lt;code&gt;/completion&lt;/code&gt; with &lt;code&gt;n_predict 200&lt;/code&gt;, &lt;code&gt;temperature 0.7&lt;/code&gt;, and &lt;code&gt;cache_prompt false&lt;/code&gt; using the prompt: 「ローカルLLMを8GB VRAMで動かす利点を3つ挙げてください。」 (English: "List three advantages of running a local LLM on 8GB VRAM.").&lt;/li&gt;
&lt;li&gt;Hardware benchmarking: executed via &lt;code&gt;llama-bench&lt;/code&gt; with parameters &lt;code&gt;pp512&lt;/code&gt; and &lt;code&gt;tg128&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Ledger logging: all tracking metrics—date, tag, &lt;code&gt;pp&lt;/code&gt;, &lt;code&gt;tg&lt;/code&gt;, and &lt;code&gt;tempC&lt;/code&gt;—are recorded in the PC ledger file &lt;code&gt;bench-ledger.csv&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Scoring Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Task A Verification:&lt;/strong&gt; Confirm &lt;code&gt;answer.txt&lt;/code&gt; contains exactly two lines (&lt;code&gt;v21-ok&lt;/code&gt; and &lt;code&gt;9 * 7 = 63&lt;/code&gt;), elapsed time is recorded, and content matches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Task B Verification:&lt;/strong&gt; Confirm adherence to the theme, restriction to the 3 permitted facts, length of 800-1,200 characters, polite style, and structural layout of one heading plus body text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Defect Auditing:&lt;/strong&gt; Screen for the 6 defect types (fabrication, simplified-Chinese mixing, repeated sentences, fragment sentences, length deviation, format collapse).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Point Calculation:&lt;/strong&gt; Apply the 100-point allocation (Speed 30, Quality 30, Stability 25, Operational Fit 15) alongside the designated negative deductions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;I benchmark local LLMs on an 8GB VRAM PC and publish the numbers — what ran, what didn't, and what I rolled back. Follow 8GB Lab for the next measurement.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llmlocalllmaiprogramming</category>
    </item>
  </channel>
</rss>
