推論系統
DFly2 Removes the Draft-Side Cache; Long-Context Speedups Still Depend on Workload
Tencent has released draft weights and training code for three target models. The authors’ tests show increased capacity for serving long prompts, but faster generation does not necessarily shorten the full request by the same proportion.

Teams self-hosting long-context models now have another acceleration option that avoids a separate context cache for the draft model. On November 26, Tencent’s Hunyuan AI Infra team announced the release of DFly2 weights, training code, and a technical report, along with new draft weights for the corresponding Hy4 flash, DeepSeek-V4.1-Flash, and GLM-5.3-Flash models. Training support was already available on November 18; this release focuses on publishing the complete assets and expanding the range of supported models. Official release notes
Reusing the context already selected by the target model
“Speculative decoding” has a smaller draft model first guess a batch of tokens (units of text), then has the target model verify them, reducing the computation required for the larger model to generate tokens one at a time. DFly2 reuses both the target model’s KV cache and the context positions selected by its sparse attention. KV refers to the keys and values reused in attention computations; sparse attention reads only some positions. Technical report
As a result, the draft model does not need to store the entire context separately or calculate for itself which positions are worth reading. It can read a fixed number of positions from the full prompt, keeping the draft-side context-attention cost from growing with prompt length. This design removes extra overhead on the draft side; the target model still has to process the long prompt. Official architecture overview
Throughput gains above 60% in a specific deployment
The authors measured DFly2 on DeepSeek-V4.1-Flash and found that, while maintaining the same per-user decoding speed as DSpark, it delivered 62% and 81% higher throughput on the CodeSpan 64K and SWE 64K workloads, respectively. This means greater capacity to serve multiple requests concurrently; it does not translate into the same proportional reduction in wait time for an individual user. Paper’s serving-efficiency tests
The tests used NVIDIA H20 GPUs, vLLM, and greedy decoding, with the number of concurrent requests varied from 1 to 32. Each instance used DP8, TP1, and EP8, denoting data, tensor, and expert parallelism settings, respectively. For both long-prompt workloads, eight prefill instances served one decoding instance, and throughput was measured across the overall deployment. Prefill is the phase that reads the prompt and builds the cache. The configuration section does not specify serving precision, so the results should not be directly applied to other quantization configurations. Experimental setup
These measurements come from the development team. The comparison draft models, including DSpark, were also retrained by the authors using the same data, recipe, and number of training steps; this was not a direct comparison against each project’s originally released weights. Model and benchmark setup
Faster decoding does not necessarily mean a proportionally shorter request
The official single-request table uses token-by-token generation without speculative decoding as its baseline. On DeepSeek-V4.1-Flash with CodeSpan 64K, DFly2’s decoding speed was 3.23 times the baseline, or 2.37 times when prefill was included; DSpark’s corresponding end-to-end figure was 2.06 times. But on MemoryAgentBench, although DFly2’s decoding speed reached 2.60 times the baseline, its end-to-end speedup was only 1.24 times, slightly below DSpark’s 1.27 times. All these results are from the authors’ tests with greedy decoding and a concurrency of one. Official comparison table
For deployers, the key is to first identify the bottleneck: if the goal is to increase capacity for serving multiple users, look at throughput; if the goal is to shorten a single request, look at the time including prefill. Given the scope of the paper’s tests, model-inference speedups on agent benchmarks also cannot directly represent the duration of a complete agent task that includes waiting on external tools, networks, and execution environments. Test scope and metrics