TECHNOLOGY

DuetServe: adaptive SM sharing and the meaning of token throughput

In this article
THE QUICK TAKE

DuetServe adapts SM allocations to predicted token-interval pressure; total processed-token throughput, output speed and per-request latency guarantees remain different metrics.

DuetServe investigates how prefill and decode can share GPU resources without allowing a large prompt-processing batch to delay ongoing token generation unnecessarily. Its key decision is adaptive: ordinary aggregated execution remains the default, while spatial partitioning is activated when predicted token intervals threaten the configured latency objective.

Separate the scheduling objective from a device label

The official publication record describes an attention-aware latency model and adaptive partitioning. The full paper explains why prefill and decode can benefit from different compute allocations. Their relative demand changes with batch composition, context length and the GPU’s measured compute and memory behavior.

The mechanism therefore does not assign a permanent universal percentage of a GPU to each phase. It profiles the platform and predicts the current batch. A split that works for one workload can waste resources or miss the intended latency target under another.

Follow the conditional partition decision

When the predicted mixed-batch latency is acceptable, the scheduler can continue aggregated execution. When the prediction threatens the decode time-between-tokens objective, it separates prefill and decode batches onto non-overlapping SM allocations.

The optimizer chooses allocations while considering throughput and the decode latency bound. It can schedule several decode steps alongside a prefill batch. This is a scheduling and performance mechanism; it should not be described as a demonstrated security boundary between unrelated tenants. Shared-device resource behavior and prediction error still require measurement.

Keep the execution engine in the explanation

Partitioning alone is not the complete method. The implementation uses separate CUDA streams, graph replay for decode and look-ahead preparation for multiple decode steps. Preparing metadata and cache slots in advance reduces repeated CPU–GPU interruptions in the described execution path.

The dependency structure still has to remain correct. Advance reservation consumes resources, completed requests need appropriate handling and the actual kernel implementation affects overlap. A statement about reduced dispatch interruptions is narrower than a guarantee that every synchronization or every source of waiting disappears.

Read throughput and latency as different measurements

The paper’s optimization counts tokens processed by both prefill and decode. That differs from measuring only generated output tokens or completed user requests. An improvement in total token throughput cannot automatically be reused as the same multiplier for output speed, API capacity or revenue.

The main evaluation reports several workloads with different prompt and response distributions and simulated request arrival timing. It compares particular runtime versions and configurations. Mean time-to-first-token and mean token intervals also differ from a per-request tail-latency guarantee. The measured workload and metric definition need to stay attached to any reported gain.

Preserve the comparison’s deployment scope

Device-level prefill/decode separation has additional allocation choices in a larger GPU pool. The paper discusses that limitation and includes a bounded larger-node comparison. It does not establish that every multi-node deployment behaves like its primary testbed or that spatial partitioning dominates every possible disaggregated configuration.

We reviewed the scheduler, execution design, experimental setup and discussion without running the serving system. The reproducible-stack guide covers version records, and the document-split guide covers a separate benchmark-data control. DuetServe is useful as a concrete example of adapting resource isolation to predicted latency pressure, with throughput, token timing and deployment scale evaluated separately.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles