When users ask successive questions about the same long report, later requests repeatedly include the same conversation history. If a request reaches an instance retaining the relevant cache, it can reuse previous computation; an instance without that cache may have to process the material again. The model and number of accelerators have not changed, yet the amount of computation needed to answer a question is different.
Similar differences arise inside the engine. Admitting more requests can improve throughput, but it can also put pressure on the cache and lengthen queues. Splitting a model across more accelerators distributes computation, but increases communication between cards. Inference efficiency depends on how these stages work together: which work must be performed, which can be reused, and how much time is spent waiting.
01 Input and Output Have Different Resource Costs
Most mainstream text-generation models today use a Transformer architecture and generate responses autoregressively: they predict the next Token from the input and existing output, then continue generating. A Token is a unit of text processed by the model and can be a character, a word or part of a word.
Since the input is already known, the model can process multiple input Tokens in parallel during prefill. Output has sequential dependencies: in conventional decoding, each newly generated Token becomes part of the context for subsequent generation. Reading a long document and gradually writing a response are different computational processes.
The input-processing stage is called prefill. The model computes over the input and saves intermediate Key and Value results from attention calculations in a KV cache for reuse during generation. Longer inputs and less reusable content generally mean more work at this stage. When users submit material but wait a long time for the first character, input processing should be checked alongside queuing time.
Once output starts, the model enters decoding, generating new Tokens step by step. This repeatedly reads model weights and existing caches; longer answers require longer decoding. Reducing the time to generate a complete response therefore requires attention to execution efficiency and data-access costs during this stage.
Multi-turn conversations introduce the question of whether history can be reused into configuration choices. The same report and previous dialogue may appear repeatedly in request prefixes. Cache hits can eliminate repeated prefill computation, but retaining those caches consumes space, and moving them to other storage tiers introduces access and transfer costs.

Consequently, document question answering with long inputs and short outputs may require different settings from long-form answer generation, even when the total Token count is similar. Input and output lengths and the proportion of reusable prefixes change the respective costs of prefill, decoding and cache access.
02 Evaluate Local Acceleration Along the Entire Pipeline
Increasing concurrency illustrates how these constraints interact.
Executing more requests together can spread some model-weight access costs. However, each request also needs its own context, and its cache grows during generation. If cache capacity is already insufficient, increasing the scheduler’s limit alone will still leave additional requests waiting. Concurrency settings must account for available cache while ensuring that time to first Token and generation speed still meet business requirements.
Parallel deployment involves similar trade-offs. Distributing a model across multiple cards lets each perform part of the computation, but requires intermediate results to be exchanged. Different interconnects lead to different communication times for the same parallelism strategy. Once computation becomes faster, communication waits can become the next major cost.
How much accelerating one stage improves overall performance depends on how much time that stage originally consumed. For a long-document request dominated by input processing, faster decoding may not greatly reduce total completion time.
This also determines the order of tuning: identify the main costs first, then decide whether to adjust execution parameters, parallelism or request allocation. After each round, observe timing and resource usage again; the next bottleneck may differ from the previous one.
03 Two Levels of Improvement on the Same Compute Resources
In an Ascend 910B4 multi-turn conversation test, ModelSphere separately evaluated engine configuration and request allocation. The test used two servers, each with eight cards running an independent instance. Load-test concurrency remained fixed at 128 across all stages.
The baseline came from the 910B4 (A2) deployment example in the official vLLM Ascend documentation, with necessary adaptations for this deployment. Hardware, images, test data and load-test clients remained unchanged within the scenario.
In the first stage, the team tuned the engine’s scheduling, device-memory and communication settings. Total throughput rose from 3,647 to 9,468 Tokens per second, reaching 2.60 times the baseline.
In the second stage, cache-aware routing was added to that configuration. Follow-up questions were preferentially sent to instances retaining the relevant conversation cache, increasing opportunities to reuse previously processed content. The cache hit rate rose from 30.4% after engine tuning to 81.0%, and total throughput reached 17,254 Tokens per second.
| Stage | Tokens/s | Cache hit |
|---|---|---|
| Baseline | 3,647 | 22.1% |
| Engine tuning | 9,468 | 30.4% |
| + Cache routing | 17,254 | 81.0% |
After routing was added, total throughput reached 1.82 times the engine-optimized result. Multiplying the gains from the two stages gives 2.60 × 1.82 ≈ 4.73, ultimately reaching 4.73 times the original baseline.

These results show that engine configuration improves the efficiency with which instances process requests, while request allocation affects how much historical computation can be reused. Service output from the same hardware depends on coordination between these two levels.
The test model was DeepSeek-V4.1-Flash with w4a8 quantization, running on vLLM Ascend 0.30.0rc2. The workload comprised 64 conversations with 17 turns each, totaling 1,088 requests and an average input of 34,380 Tokens. Total throughput counts input and output Tokens across both servers; cache hit rate is measured by reused prefix input Tokens.
04 Optimization Results Must Ultimately Serve Business Goals
After throughput increases, the response quality of service under which requests are completed still matters.
Employees looking up information online need both a prompt start to the answer and no long pauses during generation. A configuration that handles more simultaneous requests but makes everyone wait longer may not suit this use case. Background document processing instead emphasizes completing enough acceptable results within a deadline. Both workloads can use the same model, yet evaluate tuning results differently.
Operational metrics should help identify specific causes. If time to first Token increases, distinguish long queues from slow input computation. If cache space is tight, examine request lengths and the number of active requests. If conversation history repeats extensively, inspect cache hits and request allocation. Understanding the cause enables targeted changes and verification against the same request set.
Together, these requirements form the “Token productivity” shown in the diagram: how much computation the same hardware can support, how effectively existing computation and resources are used, and how many delivered results complete business tasks. The diagram uses multiplication to express their combined effect: a shortfall in any factor constrains final business output.

ModelSphere organizes this work around specific models, hardware and workloads, testing configuration changes together with request allocation. Results are retained alongside the applicable versions, workloads and configurations, providing a reproducible comparison point for the next model upgrade or business change.
How much business the same compute can support ultimately depends on these concrete choices: execute necessary computation more efficiently, reuse existing results, and keep waits within acceptable business limits.
END
![]()
ModelSphere is now officially open source on GitHub under the Apache 2.0 license. We want to share engineering experience gained from large financial institutions, centrally administered and other state-owned enterprises, and leading internet businesses with the wider open-source community and developers.
👉GitHub repository:
github.com/modelsphere/modelsphere
⭐️If ModelSphere’s design addresses your challenges, please give it a Star—your attention and Issue feedback help us keep improving.💬Want to evaluate deployment and optimization options for your business together? Start a discussion on GitHub or leave a message on our WeChat account.
About RiseUnion
Beijing RiseUnion Technology Co., Ltd. (RiseUnion) focuses on AI compute management and scheduling. It has completed compatibility certification with more than 10 domestic chip vendors and is a core contributor to the CNCF Sandbox project HAMi. The company is recognized as a national high-tech enterprise and a Beijing specialized and innovative SME, and leads the AIIC Compute Resource Pooling Working Group. It has achieved large-scale production deployments in finance, government and enterprise, defense, transportation, healthcare and other industries.
RiseUnion is committed to making compute as readily available as water and electricity, building an intelligent, controllable and efficient computing foundation for enterprise AI transformation.
For more information, visit riseunion.ai or call 400-605-2336.