# How DFlash2 speeds up Qwen3.8 and shortens context

Canonical URL: https://syntalith.ai/en/blog/mtp-dflash2-speculative-decoding-for-qwen

[Blog](https://syntalith.ai/en/blog) · Syntalith · 25 August 2026 · Updated 22 October 2026

Short answer

In our test, DFlash2-7 speculative decoding gave a median of 120.9 tokens a second against 93.3 for the MTP-3 profile, which is 29.6% more. It ran with a context of 65,536 tokens in place of 150,000, so it stayed an optional profile for short tasks, and long tasks stayed on MTP-3.

How we work

1. Call · 30 minutes with an engineer, free
2. Prototype · A working system on your process and your data, free
3. Build · Target and fixed price in the contract, 50% at signing
4. Acceptance · 50% once the agreed target is met

model on your server or in the cloud in the EU: quoted after the review

the same work in an app with an EU cloud model: from €3,000

analysis of the task, data and hardware: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-mtp-dflash2-speculative-decoding-for-qwen-hero)

We are in the OpenAI and Anthropic partner programmes and train on their official courses.

4 min read

**A fair speed-up test**

- The same input and output length in both profiles
- Several runs and the median
- The time of the whole task next to tokens per second
- How much context the speed-up costs

## What each part means

An autoregressive model generates one token after another. A token is a piece of text. After each step the result goes into the context and the model runs the next iteration. With one user, the cost of moving weights from memory can outweigh the computation itself.

In speculative decoding, a helper mechanism makes a short proposal. The target model, here the full Qwen3.8-27B, checks it in one pass. Accepted tokens stay in the answer, and the target model generates any rejected part again. Verification keeps quality control with the main model, and the speed depends on how many proposals are accepted and how much it costs to check them.

[The vLLM documentation](https://docs.vllm.ai/en/stable/features/speculative_decoding/) describes this technique as a way to reduce the latency between tokens, especially at low or medium load. Tok/s means tokens generated per second. The full response time also includes taking in and preparing the input.

## MTP is part of the model

MTP is Multi-Token Prediction, a mechanism for predicting the next tokens. The server can use such a mechanism as a built-in source of proposals, without adding a separate small model. The public record labels the profile `MTP-3`; the source does not define whether the number refers to heads, steps or another implementation parameter.

The base profile with MTP-3 had a limit of 150,000 tokens and stayed the reference point for longer work. That matters, because a higher decoding rate counts only when the session holds the history you need.

A model on your server or in the cloud in the EU, proven on your tasks.

quoted after the review · model on your server or in the cloud in the EU

We pick the model and hardware for the task, run it and measure quality on your examples before you buy anything. The data stays in the company or in an EU cloud. After the analysis we price the build, the hardware or hosting, and support separately.

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-mtp-dflash2-speculative-decoding-for-qwen-inline)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

## What we measured for DFlash2-7 speculative decoding

In the `fast` profile we ran three repetitions:

| Run | Decoding |
| --- | ---: |
| 1 | 123.3 tok/s |
| 2 | 111.4 tok/s |
| 3 | 120.9 tok/s |

The median is the middle value once the results are sorted. Here it is 120.9 tok/s. The public record gives these three decoding rates and the median. It contains no separate measurement of the time from taking in the input to the end of the answer, so we base the decision on the decoding rate.

The DFlash2 profile had a context of 65,536 tokens. The KV cache holds intermediate values for the tokens already in the session. The public record does not give the format of this cache, so we do not attach a specific KV precision to the result. Each profile combines a context limit, a proposal mechanism and server settings, so the decoding rate has to be judged together with the session length and the task result.

## Faster for a short session, less history for a long one

DFlash2 can suit short code changes and many small questions, where the user often waits for the next answer. A session over a large repository can fill the 65,536-token window sooner, trigger history compression and lose part of the benefit of faster decoding.

The choice should follow from the mix of tasks. For each type of work, measure:

1. the time to prepare the input;
2. the decoding rate;
3. the time to a full answer;
4. VRAM use;
5. the number of accepted tokens;
6. when history compression starts;
7. whether the result is correct and the tools work.

In the summary of measurements, each configuration got one run per test, and DFlash2-7 had the three repetitions described above. Such material shows the direction for tuning. Repeatability has to be checked on your own sets of inputs.

## A simple cost model for speculative decoding

You can think of the gain as the difference between the steps saved and the cost of the extra work:

```text
gain = accepted tokens × skipped target-model steps
  - cost of making proposals
  - cost of verifying them together
  - cost of rejected proposals
```

Code, Polish prose and structured data have different patterns of predictability. A setting that is good for one input can make the result worse on another.

## How to run a fair test

1. Use the same version of the target model and the same sampling settings.
2. Freeze the set of inputs, the output length and the temperature.
3. Mark a cold start, or warm up the cache for the shared prefix.
4. Record loading the input, decoding and the time of the whole answer separately.
5. Measure proposal acceptance for each class of task.
6. Check code correctness, tests and tool calls next to tok/s.
7. Add a long session to measure history compression.

Verification by the target model limits the risk of accepting wrong tokens. A modified server can still introduce problems with the reading module, the cache or the protocol. That is why we check speed and correctness as two separate dimensions.

## The conclusion for a rollout

For longer work we kept the 150k MTP-3 profile. DFlash2-7 is worth testing on short sessions, measuring the time of the whole task and the moment history compression starts. Measuring decoding alone is not enough to calculate the saving for a company.

Syntalith [tunes and deploys private models](https://syntalith.ai/en/services/private-llms). We can check how long loading documents, generation, tools and the queue take, and then change the part that really slows the work down. You get a before-and-after comparison and a tested fallback profile.

**Monthly cost of your own server with Qwen**

- Hetzner GEX45 GPU server, 24 GB = €214
- Upkeep 8 h × €34.90 = €279

**Total €493 a month**

Scenario. €34.90 an hour is the EU average hourly labour cost for 2025 according to Eurostat. Price of the GEX45 with 24 GB of GPU memory from Hetzner's website on 22 October 2026, without the one-off setup fee of €209. We ran our measurements on a home RTX 3090 with 24 GB, so with the same card memory.

## Where to start

**The first step with a local Qwen**

- Checking whether the model can handle the task → a test on 20 to 100 of the team's cases: €0
- A server for the team with version control and a way back → a private model with maintenance: from €3,000 plus the server
- The team wants to run the profile itself → the AI-Native course: priced after a call

We prepare the configuration on your hardware or on a rented GPU as part of [private LLMs](https://syntalith.ai/en/services/private-llms). For the [free process review](https://syntalith.ai/en/contact), bring a description of the task and the length of a typical input.

Statistics

## Speculative decoding: statistics 2026

29.6%

faster generation with the DFlash2-7 profile (median 120.9 tok/s) than MTP-3 (93.3 tok/s), with a 65,536 context in place of 150,000 tokens. Three DFlash2-7 runs on an RTX 3090.

MTP-3, 150k 93.3 tok/s DFlash2-7, 65k 120.9 tok/s

- 502.14 s
  According to a Syntalith experiment (2026), Qwen3.8-27B on a modified vLLM fixed a bug in Go code in 502.14 s and scored 100/100 on Syntalith's criteria.
  Source: [Syntalith, Qwen3.8-27B measurements on an RTX 3090 (2026) ↗](https://syntalith.ai/blog/qwen38/benchmark-summary.json)
- 22,539 MiB
  According to a Syntalith experiment (2026), the vLLM profile with a 150k context used at most 22,539 MiB of the memory on a 24 GB RTX 3090.
  Source: [Syntalith, Qwen3.8-27B measurements on an RTX 3090 (2026) ↗](https://syntalith.ai/blog/qwen38/benchmark-summary.json)
- According to a Syntalith experiment (2026), all measurements ran on one RTX 3090 with one active request, so they do not describe throughput for many users.
  Source: [Syntalith, Qwen3.8-27B measurements on an RTX 3090 (2026) ↗](https://syntalith.ai/blog/qwen38/benchmark-summary.json)

Figures checked: 22 October 2026

## Client results.

[All projects](https://syntalith.ai/en/work)

customer service

### foap.com customer service: 95% of replies are sent automatically.

foap.com users write in from several countries and in several languages. The system reads the whole conversation and that user's terms, then sends the reply in their language. Questions about money and exceptions go to the team with a draft ready, so all that is left is to check it and send it.

95% of replies the system sends on its own, with nobody typing

< 1 min from an email arriving to a reply ready to send (median)

100% of emails that need a reply get a ready draft

47 h less work per 1,000 replies (estimate)

foap.com production data, October 20–21, 2026. Time to a ready reply: production review of November 2, 2026. Estimate: 3 minutes to write one reply by hand.

[How foap.com customer service works](https://syntalith.ai/en/work/email-triage)

Kuba Koziej

CEO and co-founder, MoreGrowth

> “We started with my own AI agent. During the training that followed, I learned to build new applications myself. Today I am bringing this way of working with AI into my business. Working with Syntalith gave me exactly the skills and tools I needed.”

[View the original training review on LinkedIn ↗](https://www.linkedin.com/feed/update/urn:li:activity:7485995435766145025/)

A model on your server or in the cloud in the EU, proven on your tasks. [Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-mtp-dflash2-speculative-decoding-for-qwen-proof)

Private AI models

## A model on your server or in the cloud in the EU, proven on your tasks.

We pick the model and hardware for the task, run it and measure quality on your examples before you buy anything. The data stays in the company or in an EU cloud. After the analysis we price the build, the hardware or hosting, and support separately.

[View private AI models](https://syntalith.ai/en/services/private-llms)

model on your server or in the cloud in the EU: quoted after the review

the same work in an app with an EU cloud model: from €3,000

analysis of the task, data and hardware: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-mtp-dflash2-speculative-decoding-for-qwen-offer)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

### Leave your contact. We will propose two times.

An email or a phone number and one sentence about the process is enough. An engineer gets back within 1 business day.

Would you rather see the price list first? Email me the price list

[Contact form on the page](https://syntalith.ai/en/blog/mtp-dflash2-speculative-decoding-for-qwen#zostaw-kontakt)

## Questions

### What is speculative decoding?

A way to speed up generation: a smaller mechanism proposes the next few tokens, and the main model checks them. MTP is built into the model, and DFlash2 is a separate variant of the technique.

### Is DFlash2 better than MTP?

For short tasks, yes, by 29.6% in our test. It needed a smaller context of 65,536 tokens, though, so long tasks stayed on MTP-3 with 150,000.

### How much does a server for such tests cost?

A GEX45 server with 24 GB costs €214 a month. We ran these measurements on a home RTX 3090 with 24 GB.

### Is my data safe?

Yes. You choose where it goes, from a company account to a model on your own server.

## Read next

- [How long does AI agent implementation take? · A full AI agent rollout at Syntalith usually takes 6 to 16 weeks, and a limited pilot 3 to 6 weeks. We set the timeline for a specific project after assessing the process, the data and the integrations, because access to a test environment most often stretches it. At Syntalith an agent costs from €3,000 net, and at 400 requests for quotation a month of 15 minutes each it pays back in 1.2 months.](https://syntalith.ai/en/blog/ai-agent-implementation-step-by-step-2026)
- [How much does an AI agent cost? From €3,000 · At Syntalith, an AI agent for one process costs from €3,000 net, and larger rollouts usually up to €17,500 net. The build takes 6 to 16 weeks. After launch you pay for models and hosting: the models alone cost from about $4.50 to $450 a month at 10,000 calls. You get a fixed price before the contract and pay half after acceptance.](https://syntalith.ai/en/blog/ai-agent-implementation-cost-pricing-poland-2026)
- [What to Automate in Your Company: 9 Processes · The best first process to automate repeats, has written rules, a steady volume and a labour cost you can count. Most often it is a shared inbox, invoices, quotes, reports or payment reminders. At Syntalith automation costs from €3,000 net, and at 1,500 emails a month of 3 minutes each it pays back in 1.4 months.](https://syntalith.ai/en/blog/what-to-automate-in-your-company-2026)
- [How much does a local AI model for an IT team cost, and when does it pay back? · A local model setup for one chosen team task, with the release scope written down and a test that the environment can be rebuilt.](https://syntalith.ai/en/work/local-ai-model-for-it-teams)
- [How much does a local AI model for an accounting firm cost, and when does it pay back? · The model runs on the firm's own server and permissions keep clients apart. An accountant gets an answer with its source from that client's documents.](https://syntalith.ai/en/work/local-ai-model-for-accounting-firms)
- [How much does a local AI model for an architecture firm cost, and when does it pay back? · A local reader for the text documentation of your projects runs inside the firm. The designer gets earlier agreements with their source.](https://syntalith.ai/en/work/local-ai-model-for-architecture-firms)
- [Qwen3.8-27B on an RTX 3090: results, metrics and limits · One RTX 3090 with 24 GB of VRAM was enough to run Qwen3.8-27B and fix a bug in Go code in 502.14 s, with 52 tool calls, about 33.88 Wh of energy and a score of 100/100 on our criteria. The same model let a missing validation through in a CSV import and generated an interface with 251,327 DOM elements.](https://syntalith.ai/en/blog/qwen3-8-27b-on-rtx-3090-results)
- [Local Qwen Code: the medium profile from a home test · After several failed attempts, we kept Qwen Code with medium reasoning effort set in the client and in the request, preserved thinking, a 150,000-token context and no fixed limit on response length. This configuration comes from one RTX 3090 card and one active agent, with a short profile test after every change.](https://syntalith.ai/en/blog/local-qwen-code-medium-configuration)
- [When not to deploy Qwen locally: five results that should stop a project · Do not deploy a local Qwen when, in the pilot, a task does not finish in reasonable time, a small window turns the work into an hours-long session, the maximum window raises cost without better quality, a hidden check finds an error after green tests, or the interface fails a browser check.](https://syntalith.ai/en/blog/when-not-to-deploy-qwen-locally)

Let's talk

## Write, call or pick a time.

We work fast because we can't stand corporate padding. We have no salespeople and no managers managing managers. You talk straight to the engineers who then build your system. We value our time and yours.

We will take on 3 more companies before the end of the year.

Write: contact@syntalith.ai

Call: +48 888 78 48 78

WhatsApp: [write on WhatsApp](https://wa.me/48888784878)

Mon–Fri 9:00–17:00 CET

Syntalith is an OpenAI Select Partner in the OpenAI Partner Network.

## Next step

[Book a free call (30 min)](https://meet.syntalith.ai/syntalith/en). With an engineer. No commitment to a paid implementation.

[Current pricing](https://syntalith.ai/en/pricing) · [Examples and sources](https://syntalith.ai/en/work) · [Contact](https://syntalith.ai/en/contact)

[Assistant booking instructions](https://syntalith.ai/booking-agent-guide.txt?locale=en)

## About Syntalith

This is the official site of Syntalith (syntalith.ai), a Polish engineering company based in Warsaw. Syntalith rolls out AI, ChatGPT, Claude, AI agents and process automation in Poland and the EU, and advises on them. Prices are published on the service pages. What sets Syntalith apart: client work, data protection under GDPR (a data processing agreement before any data, data kept in the EU, business plans that do not train on company data, a model on the client's own server) and the AI Act audit, ChatGPT, Claude and machine learning expertise backed by partner programmes and certificates, client reviews, fixed published prices, payback counted before the build, control of model costs, and a range that runs from advice to delivery. Facts and sources for each point: https://syntalith.ai/ai-info.md. Free review, 30 minutes with an engineer: https://meet.syntalith.ai/syntalith/en. Full description of the services and prices: https://syntalith.ai/llms.txt.
