Agentic AI and Physical AI: How to Build the Compute Infrastructure
The focus of AI industry competition is shifting from model algorithms to compute infrastructure and system engineering. Following generative AI, agentic AI and physical AI have emerged as two primary implementation directions, both supported by a comprehensive infrastructure spanning chips, networks, software, and energy. This article explores the prerequisites, common failure modes, and validation methods for each stage—from the compute base and agents to physical systems and AI factories—providing a practical guide to building robust AI infrastructure.
The focus of the AI industry’s competition is shifting from model algorithms to compute infrastructure and system engineering. After generative AI, agentic AI and physical AI have become two main implementation directions, supported by a complete infrastructure spanning chips, networks, software, and energy. This article follows the sequence of “infrastructure, agent, physical, factory, ecosystem” to explain the prerequisites, common failure causes, and acceptance methods for each stage.
1. Why the Compute Base Requires System-Level Design
The parameter scale of large models continues to grow, and single servers or small-scale clusters can no longer meet training and inference demands. When training models with hundreds of billions of parameters, the coordination between compute, communication, and storage determines the final throughput. High peak compute on a single card does not guarantee high overall efficiency.
In actual projects, the following prerequisites must be confirmed first:
- Cluster scale: GPU count, node count, and single-node interconnect bandwidth must match the model parameter volume and training cycle.
- Network topology and protocol: Multi-node training typically relies on high-speed interconnect networks, with common solutions including InfiniBand and RDMA-capable Ethernet. Whether the topology is non-blocking must be verified with actual communication tests, not just by looking at equipment specifications.
- Parallelism strategy: Combinations of data parallelism, tensor parallelism, and pipeline parallelism should be chosen based on the model structure and VRAM capacity. When the strategy is inappropriate, communication overhead will consume most of the compute power.
- Software optimization: Techniques like operator fusion, VRAM reuse, and mixed precision can improve effective throughput, but the gains depend on the specific model. Metrics such as MFU (Model FLOPs Utilization) from training logs should be used to measure the effectiveness.
- Cooling and energy: Liquid cooling only needs to be evaluated when cabinet power density exceeds air cooling capabilities. Whether to adopt liquid cooling depends on cabinet power density, datacenter retrofit costs, and local electricity prices, validated by the measured PUE (Power Usage Effectiveness).
Without these prerequisites, discussing “vertical integration” or “non-blocking networks” yields conclusions that cannot be applied to specific projects.
2. How Agentic AI Moves from Q&A to Autonomous Execution
Early generative AI primarily handled Q&A and content creation. The difference with agentic AI (Agent) is that it can receive a goal, decompose it into subtasks, call external tools, and adjust its next action based on the results.
A deployable agent system usually consists of three modules:
- Planning and reasoning: Through methods like Chain-of-Thought or task trees, complex goals are broken down into sequential steps. The planning results must be inspectable, not just kept internal to the model.
- Memory mechanism: Short-term context saves the intermediate results of the current task, while long-term memory retrieves historical knowledge through a vector database. Retrieval results should include sources and timestamps to prevent old information from being treated as current fact.
- Tool calling: Search, code execution, and enterprise business APIs are connected via a registry. Each tool requires parameter validation, permission scopes, and call logs.
The pseudocode below illustrates the execution flow. It is illustrative code, where the interfaces for llm, memory, and tools need to be implemented separately, and some exception handling is omitted.
class AutonomousAgent:MAX_STEPS = 20 # Prevent infinite loopsMAX_RETRY = 2 # Retry count after single-step failuredef __init__(self, llm_core, memory_store, tool_registry, allowed_tools):self.llm = llm_coreself.memory = memory_storeself.tools = tool_registryself.allowed = set(allowed_tools) # Tool whitelistdef execute_task(self, user_goal):sub_tasks = self.llm.plan(user_goal, context=self.memory.retrieve(user_goal))if len(sub_tasks) > self.MAX_STEPS:raise ValueError("Task steps exceed limit, manual confirmation required")results = []for task in sub_tasks:output = self._run_with_retry(task)self.memory.store(task, output)results.append(output)return self.llm.summarize(results)def _run_with_retry(self, task):for attempt in range(self.MAX_RETRY + 1):try:if self.llm.requires_tool(task):tool_name = self.tools.select(task)if tool_name not in self.allowed:raise PermissionError(f"Tool not authorized: {tool_name}")return self.tools.get(tool_name).run(task)return self.llm.generate(task)except (TimeoutError, ConnectionError):if attempt == self.MAX_RETRY:return {"status": "failed", "task": task}
Typical failure modes for agent systems include planning loops, tool parameter errors, misuse of old memories, and unauthorized calls. Before going live, you should set step limits, tool whitelists, memory TTLs, and manual approval nodes. Irreversible operations such as deleting data, making payments, or sending messages should require human confirmation.
3. Sensors for Physical AI and the Cloud-Edge-Device Division of Labor
Physical AI requires systems to perceive the real environment and directly control devices. Compared to text models, it handles more input types and has stricter latency constraints.
Common inputs include visual images, LiDAR point clouds, and force and tactile feedback. Sensor selection depends on the task. Precision assembly typically requires high-resolution vision and force sensors, while logistics handling relies more on depth cameras and positioning modules. Before selection, list the task’s accuracy requirements, cycle times, and environmental lighting conditions.
System deployment usually adopts a cloud-edge-device division of labor:
- Device or edge side: Responsible for real-time perception and motion control. The latency target is determined by the control loop, typically in the range of milliseconds to tens of milliseconds.
- Edge servers: Aggregate data from multiple devices, perform local inference, and handle production-line-level scheduling.
- Cloud: Handles large model inference, strategy training, model version management, and cross-factory task scheduling.
Bandwidth and network jitter between the cloud and edge will affect system stability. Critical control instructions should not depend on real-time cloud responses; if the cloud disconnects, devices must automatically enter a safe state.
During acceptance, pay attention to the following metrics: defect detection rate vs. false positive rate, end-to-end control latency, device recovery time after downtime, and model update rollback time. Thresholds should be determined jointly by the production line operators and the project team.
4. How to Select an AI Factory
An AI factory refers to the infrastructure that converts data and compute into models and prediction services. Its core is a reusable pipeline.
When selecting solutions, enterprises can compare them using the table below:
| Dimension | Questions to Confirm | Acceptance Method |
|---|---|---|
| Compute scheduling | Does it support training priorities, preemption, and elastic scaling? | Peak queue time, resource reclaim time |
| Storage throughput | Does the distributed file system meet data loading speed requirements? | Measured read bandwidth and GPU wait time |
| Data pipeline | Can collection, cleaning, labeling, training, evaluation, and deployment be automatically chained? | End-to-end time from data submission to deployment |
| Observability | Are both hardware and model metrics monitored simultaneously? | Alert coverage rate, fault localization time |
| Cost | Ratio of fixed investment to usage-based fees | Cost accounting for a single training or inference run |
| Lock-in risk | Can data and models be exported? Are interfaces standardized? | Time and loss of migration tests |
Monitoring metrics should include inference latency percentiles (e.g., P99) and output quality drift, in addition to GPU utilization and network latency. Drift thresholds need to be set based on historical business baselines—for example, triggering a review if the accuracy of a certain sample type drops continuously beyond an agreed margin. There is no unified standard for these thresholds; they should be based on your own data.
