AI Inference and Agentic Execution: Why the Compute Foundation Must Be Rebuilt

    This article explains why AI infrastructure is shifting from generation quality to end-to-end execution, and what that means for compute design. It covers the five-layer AI factory model, the move from training-centric to inference-centric workloads, a simplified capacity-planning example, the fusion of structured data with generative capabilities for trustworthy execution, and the safety priorities of physical AI. It closes with a four-step adoption roadmap and the role of general-purpose cloud infrastructure as a foundation.

    1. The Problem Has Changed: From “Answering” to “Completing”

    Over the past two years, expectations for AI centered on generation quality. The real shift now is in the delivery model: systems no longer just output a piece of text or an image. They must accept a goal, break it into steps, call tools, verify results, and take responsibility for the entire process. This moves the evaluation criteria from “single-turn quality” to “end-to-end completion rate, latency, and cost.”

    Two types of workloads are emerging at the same time. The first is agentic systems with planning and execution capabilities. They need long context, multi-turn tool calls, and state persistence. The second is intelligent systems that can sense and act on the physical world. They impose higher demands on real-time performance, determinism, and safety boundaries. Together, these make compute no longer a single-chip performance problem, but a systems engineering problem.

    2. A Five-Layer View: Design the AI Factory as a Whole

    The industry commonly uses a layered approach to organize AI infrastructure. From the bottom up, it can be summarized as:

    1. Infrastructure layer: land, data centers, power, and cooling;
    2. Chip and interconnect layer: compute, memory, and networking;
    3. Platform and framework layer: scheduling, orchestration, compilation, and runtime;
    4. Model layer: pre-training, fine-tuning, distillation, and inference serving;
    5. Application layer: the scenarios that actually generate business value.

    The key conclusion is simple: a weakness in any layer becomes the ceiling on overall throughput. When scaling up, if you only add accelerator cards while ignoring network convergence ratio and storage bandwidth, cluster utilization often fails to improve.

    3. Inference Becomes the Main Battleground: Two Workloads, Two Sets of Metrics

    Training focuses on throughput and convergence time. Inference focuses on time-to-first-token, time-per-token, and concurrency density. Agentic workloads are characterized by “long reasoning plus multiple tool round-trips,” so both sets of metrics must be optimized within the same cluster.

    A simplified capacity-estimation approach (illustrative only, not specific product parameters):

    1. # Illustrates the thinking behind capacity planning only
    2. tokens_per_request = 8000 # includes context and tool returns
    3. requests_per_second = 50
    4. gpu_tokens_per_second = 2500 # base this on your own load-test results
    5. required_gpus = (tokens_per_request * requests_per_second) / gpu_tokens_per_second
    6. headroom = required_gpus * 1.3 # reserve for bursts and failure redundancy
    7. print(required_gpus, headroom)

    A more reliable engineering practice is to first run baseline load tests with real business traffic, then use the results to set batching strategy, cache hit-rate targets, and elastic-scaling thresholds, avoiding theoretical numbers that have not been validated on your own systems.

    4. Data and Trust: Fusing Structured and Generative Capabilities

    To make execution results trustworthy, you need to combine an enterprise’s existing structured data with generative capabilities: queries go through deterministic interfaces, the generative part only handles organization and expression, and key conclusions must be traceable to their data sources. Implementation essentials include passing permissions with each request, attaching version and source information to retrieval results, introducing approval and rollback mechanisms for write operations, and maintaining full-chain logging for auditing.

    5. Physical Intelligence: Determinism and Safety First

    When model output drives real devices, the focus of system design shifts from “smarter” to “more controllable.” Edge-side inference must meet a deterministic upper bound on latency, while the cloud handles training and policy updates. Model rollout must support canary releases and fast rollback. At the same time, a rules engine and limit logic serve as the last line of defense: no model judgment can bypass safety constraints.

    6. Adoption Roadmap and Cloud Practice

    A four-step approach is recommended. First, build a unified evaluation set covering completion rate, latency, and cost per task. Second, build an elastic resource pool, using common capabilities such as container platforms, object storage, message queues, logging services, and monitoring and alerting to achieve elasticity and observability. Third, improve the data and knowledge supply pipeline to ensure timeliness and consistency. Fourth, gradually open up automation permissions, moving from read-only to writable and from low-risk to high-risk.

    In this system, the general-purpose cloud infrastructure capabilities offered by Baidu AI Cloud can serve as the underlying foundation, and enterprises can select based on their own compliance and cost requirements. The real moat lies not in any single component, but in the coordination efficiency of “compute, data, framework, and scenarios.” Whoever gets this systems engineering running first can bring AI from a demo into the real economy.