The Debrief

Fast Tokens Can Still Make Slow Agents

3 min read

The Short Version

Tencent found a way to make DeepSeek-V4.1-Flash decode 3.82 times as fast on one agent benchmark.

The request finished 1.25 times as fast.

Both numbers come from the same row of the same table. I would put that row next to every tokens-per-second chart in an agent procurement deck. DFly2 technical report, Table 9

On November 26, Tencent's Hunyuan infrastructure team released the DFly2 training code, report, and draft weights for Hy4 flash, DeepSeek-V4.1-Flash, and GLM-5.3-Flash. It's a way to serve supported models faster by reusing work they already do when reading long prompts. The release gives serving teams something concrete to try on their own workloads. AngelSpec release and weights

The helper can borrow the expensive part

Speculative decoding gives a smaller model a job. Draft a few candidate tokens together so the main model can check them in one pass. The main model still determines which tokens get returned. The speedup comes from getting more accepted tokens out of each pass through the expensive model.

The draft has a cost of its own. Some drafters keep a separate key-value cache, the attention state built from tokens the model has already processed. On a long prompt, populating that second cache adds work before the first output token. Keeping it around takes memory that could otherwise hold another request. A drafter that reads only a recent window saves memory, but it can miss the instruction or code definition that makes the next token easy to predict.

DFly2 reads the target's existing cache and uses the positions its sparse attention has already picked, alongside recent tokens. So an old code definition can still help the draft when the main model selects it, without the helper keeping its own copy of the entire history. In Tencent's configuration estimates for DeepSeek-V4.1-Flash, a separate three-layer drafter adds about 76% to the per-token cache memory that grows with context. That figure describes the cache, a much smaller accounting unit than total GPU memory. DFly2 technical report, Sections 3 and 4

Measure the request you actually ship

Tencent's most instructive comparison is what happens to a faster decoder with an expensive prefill. On the same DeepSeek agent benchmark, full-cache DFlash decoded 3.46 times as fast as the target alone, yet delivered just 0.69 times the end-to-end speed. The work it added up front ate the savings. DFly2 cleared that hurdle at 1.25 times end to end. On the paper's 64K software engineering workload, it reached 2.13 times end to end with that same target. Across the four agent benchmarks, the average was 1.50 times. These are author-run, single-request tests using greedy decoding, and their end-to-end clock covers model serving from prompt processing through generation. DFly2 technical report, Section 5.3

A coding agent can spend that saved time waiting for tests, reading another tool result, or sitting in the inference queue. That changes what I would benchmark. Replay requests with the context lengths and cache-hit rates you see in production. Compare time to first token and time to completion at the same load. Then run the full task and see whether the wall-clock savings survive tool calls and retries.

For a serving team, the interesting question is how many long requests fit on the same hardware at a latency users will accept. For an agent team, it's how much sooner the user can get back to work. A decoding benchmark can explain part of both answers. You still have to time the job.