Where Has the Compute Gone? Supply, Demand, and Governance in LLM Services

    As large language model (LLM) services scale, structural mismatches between compute supply and request workloads have emerged. This article explores the "compute growing pains" from four perspectives: workload characteristics, platform governance, developer optimization, and enterprise architecture. It explains why long context windows and complex tasks drain quotas, how platforms use pricing and quotas to manage capacity, and how developers and enterprises can optimize token budgets, plan capacity, and build resilient architectures.

    Where Has the Compute Gone? Supply, Demand, and Governance in LLM Services

    “Where has the compute gone?” does not mean physical resources are disappearing. Rather, it refers to the structural mismatch between compute supply and request loads after the scaling of large language model (LLM) services. Workload patterns such as long context windows, code generation, long-horizon tasks, and multi-turn tool calls mean that the compute consumed per request no longer grows linearly. Meanwhile, free quotas, monthly subscriptions, API calls, and peak/off-peak pricing reallocate “available compute” through quotas and prices. Platforms feel capacity pressure, developers find their quotas draining too quickly, and enterprises face unpredictable costs. To understand this “compute growing pain,” we need to break the problem down into four layers: workload characteristics, platform governance, developer optimization, and enterprise architecture.

    1. The Phenomenon: Consumption Amplified by Long Context

    In scenarios with short context and simple Q&A, the compute consumption per request is relatively controllable. However, when the context window enters the million-token level, the system must process longer input sequences, affecting attention calculation, VRAM usage, cache management, and batch processing efficiency. Especially during inference, the prefill costs of long inputs, the per-token decoding costs of long outputs, and the repeated transmission of historical context in multi-turn conversations significantly increase the cost per task.

    Code generation and long-horizon tasks further amplify this trend. Code generation often requires longer system prompts, repository context, API documentation, and example snippets, and the output may contain large blocks of code. Long-horizon tasks require multi-round planning, tool calls, result verification, and failure retries. A seemingly simple task may involve multiple model calls and a large amount of repeated context transmission. As a result, platforms see concurrency and queuing pressure, developers see their quotas draining rapidly, and enterprises see fluctuations in per-task costs.

    This also explains a common misconception: a reduction in API unit price does not equal a decrease in total cost. If call volumes increase, contexts become longer, and retries multiply, the token budget per request may inflate simultaneously. The “fast draining” of monthly subscription quotas is not necessarily a metering anomaly, but likely a natural result of the workload shifting from short Q&A to long-context, multi-turn, and code tasks.

    2. Platform Governance: Pricing Leverage is Just the First Layer

    During periods of compute scarcity, platforms typically employ multiple governance measures. Peak/off-peak time-based pricing is one of them: by making off-peak prices significantly lower than peak hours, developers are guided to move offline batch processing, data cleaning, bulk summarization, and non-real-time evaluation tasks to off-peak periods. The value of pricing leverage lies not in “raising prices,” but in moving deferrable loads away from peak times to improve overall resource utilization.

    The quota wall for free users is another layer of governance. Free quotas lower the barrier to trial, but without quota boundaries, they can easily be consumed by high-frequency calls, batch scripts, or abnormal retries. Quota walls, tenant quotas, concurrency limits, queuing mechanisms, and priority scheduling are essentially about allocating limited compute to requests with different SLA requirements. For platforms, it is necessary to ensure transparent metering, predictable rate limiting, and clear degradation alerts. For developers, quotas must be treated as part of system design rather than discovered after the fact.

    More mature platform governance usually also includes: routing to different model specifications based on task type; implementing admission control for long-context requests; reusing cached results for hits; queuing batch processing tasks; and applying backoff and idempotency constraints to failure retries. Pricing, quotas, and queuing are not isolated tools, but a combined approach to capacity governance.

    3. Developer Side: Treat Tokens as a Budget, Not a Free Resource

    The most direct optimization target for developers is the context budget. System prompts, retrieved chunks, conversation history, and tool return results should have clear priorities. For long-context tasks, developers can first perform retrieval pruning, chunk summarization, sliding windows, and structured compression before feeding the necessary information into the model. Context is not the longer the better; redundant context increases costs and may reduce output stability.

    The second step is to separate deferrable tasks from interactive tasks. Interactive requests pursue low latency and are suitable for execution within the peak window. Tasks like batch summarization, offline evaluation, and log categorization can enter the off-peak queue. Below is a pseudo-code snippet expressing only the scheduling logic and does not represent a specific product API:

    1. function execute(task, config):
    2. budget = estimate_tokens(task)
    3. if task.sla == "interactive":
    4. return call_model(task, window="peak", limit=config.peak_budget)
    5. if budget.context_size > config.context_threshold:
    6. task = compress_context(task) # retrieval pruning, summarization, chunking
    7. return enqueue_offpeak(task, window="offpeak", limit=config.offpeak_budget)

    For retry strategies, developers need to distinguish between retryable and non-retryable errors, and set up exponential backoff, idempotency keys, and maximum retry limits. Otherwise, a single timeout might trigger multiple long-context calls, causing the quota to be drained rapidly. For multi-tenant systems, token consumption, concurrency, and failure rates should also be recorded at the tenant level in the application layer to prevent a single tenant from exhausting the shared quota.

    4. Enterprise Side: Capacity Planning and Observability Must Go Hand in Hand

    Enterprises must govern LLM services as production systems with capacity boundaries. Key metrics should at least include: request volume, concurrency, input/output token distribution, P95 latency, queuing time, failure rate, cache hit rate, retry ratio, cost per task, and resource utilization. Only by mapping “token consumption” to “business task cost” can enterprises determine whether a price reduction truly brings benefits.

    Capacity planning should adopt a “reserved + elastic” approach: reserve capacity for the stable baseline, elastically scale for peaks, and degrade non-core tasks. Degradation strategies can include shortening context, limiting output length, switching to a smaller model, deferring batch tasks, and disabling non-essential tool calls. For enterprise multi-tenant scenarios, mechanisms for quotas, auditing, and cost allocation are needed to prevent budget overruns.

    At the infrastructure level, general cloud capabilities can be combined to build a governance loop. For example, using a container platform to host inference services, object storage to save evaluation data and log archives, log services for call auditing, and monitoring and alerting to track latency and error rates. Taking Baidu AI Cloud as an example, its general product categories can be used to build the observability and elastic architecture mentioned above, but the specific solution must still be designed in conjunction with business SLAs and cost objectives.

    5. Conclusion: The Growing Pains Test Techno-Economic Governance

    The core contradiction of the LLM compute growing pains is not that a single platform “lacks compute,” but the conflict between the growing consumption brought by long context, code generation, and long-horizon tasks, and the controllability of pricing, quotas, latency, and cost. Platforms need to use peak/off-peak pricing, quota walls, rate limiting, and cache reuse to improve utilization. Developers need to treat tokens as a budget, performing context compression, off-peak scheduling, and idempotent retries. Enterprises need to establish observability, capacity planning, and degradation mechanisms. Only by moving compute governance from “post-event expansion” to “request design” and “capacity design” can services remain stable and costs controllable amid supply and demand fluctuations.