Enterprise AI Architecture Selection: Large Models, Robotics, and Liquid Cooling
This article provides a comprehensive guide for enterprise architects and developers on selecting AI architectures. It covers four key scenarios: large model deployment, humanoid robot control systems, full-duplex voice interaction, and megawatt-level liquid-cooled computing centers. The guide includes detailed comparisons, cost-benefit analysis, evaluation checklists, and pre-launch validation steps to ensure robust and compliant system design.
I. Requirements Boundaries and Prerequisites
This article targets enterprise architects and developers responsible for AI system architecture, covering four scenarios: private or hybrid deployment of large models, humanoid robot control systems, full-duplex voice interaction, and megawatt-level liquid-cooled computing centers. All figures provided in this article are examples and should be verified against official documentation, equipment specifications, and your own stress-testing results.
Before starting the selection process, answer the following five questions:
- Can data leave the domain? When dealing with personal information, trade secrets, or regulated data, private deployment is usually a prerequisite. If audio and images collected by voice and robot systems involve biometric features, ensure proper notification and authorization processes are in place.
- What is the context length for the target task? What are the average and peak values?
- What is the acceptable cost per inference and the time to first token (TTFT)?
- Does the team have experience with GPU clusters, distributed inference, and hardware operations?
- What are the consequences of a failure if the robot or voice device operates in a real-world environment?
The answer to question 5 determines the safety level. If a failure could cause injury or equipment damage, the control link must be independent of the large model and retain a hardware-level emergency stop.
II. Large Model Deployment Selection
2.1 Deployment Method Comparison
| Dimension | Closed-source Model API | Open-source Model Self-hosted | Hybrid Approach |
|---|---|---|---|
| Data出境 | Data sent to provider | Data stays in intranet | Sensitive data processed locally, others via API |
| Cost Structure | Pay-per-use, low initial investment | Initial hardware and personnel investment, unit cost may drop at high load | Requires separate accounting for both parts |
| Controllability | Model version and behavior controlled by provider | Version can be fixed, fine-tunable | Depends on routing strategy |
| Operations Burden | Low | High, requires maintaining inference framework, monitoring, and scaling | Medium to high |
| Iteration Speed | Updates follow provider | Requires self-evaluation and upgrades | Requires maintaining two evaluation pipelines |
| Applicable Scenarios | Data can leave domain, fast-changing requirements, weak team operations | Restricted data, stable and large-scale usage, fixed version required | Coexistence of sensitive and non-sensitive tasks |
| Migration Cost | Switching providers requires prompt and evaluation adaptation | Hardware investment hard to recover, migrating to new framework requires re-testing | Routing rule changes affect both sides |
2.2 Break-even Analysis
Calculation formulas:
Monthly self-hosted cost = Hardware depreciation + Electricity + Datacenter fees + Operations personnel + Amortized evaluation/upgrade personnel
Monthly API cost = Monthly input tokens × Input unit price + Monthly output tokens × Output unit price
Break-even monthly calls ≈ Self-hosted fixed monthly cost ÷ (API unit token cost − Self-hosted marginal token cost)
Operational steps:
- Check the provider’s official pricing page on the day of evaluation and record the query date.
- Measure self-hosted throughput under near-production concurrency, constrained by business-required P95 latency; do not use peak benchmark data.
- Calculate the self-hosted marginal token cost based on electricity and average utilization.
- Compare the estimated monthly calls with the break-even volume. If call volume is consistently below the break-even point, self-hosting will cost more than the API.
Example: Assuming a self-hosted fixed monthly cost of 100,000 CNY, and the self-hosted marginal cost per million tokens is 20 CNY lower than the API unit price per million tokens, the break-even volume is 5,000 million tokens, or about 5 billion tokens per month.
If API network latency cannot meet business requirements, include network latency in the comparison. If data classification regulations prohibit sensitive data from leaving the domain, that portion should not be included in the API cost comparison and should be calculated directly as a self-hosted solution.
2.3 Verifying Long Context and Mixed Attention Claims
Before evaluating open-source models, confirm the model name, publisher, parameter scale (total vs. active parameters), and the licensing scope of open weights and source code. Open weights do not equate to open training code, and licenses may restrict commercial use.
Marketing claims of “supporting million-level context” refer to the maximum input length allowed by the model, not that the model can effectively utilize all the content. Note the following three points during evaluation.
First, KV Cache footprint. In standard Multi-Head Attention, the KV Cache for a single sequence is roughly:
KV Cache bytes = 2 × number of layers × number of KV heads × head dimension × sequence length × bytes per element
Here, 2 represents the K and V tensors. Under FP16 or BF16, bytes per element is 2; under INT8, it is 1. The number of layers, KV heads, and head dimension should be read from the model configuration file, not guessed based on experience.
Example (assuming a configuration, not a specific model): 60 layers, 8 KV heads, 128 head dimension, sequence length 131072 (~128K), FP16 precision.
2 × 60 × 8 × 128 × 131072 × 2 = 32,212,254,720 bytes, about 32.2 GB (decimal).
GQA (Grouped-Query Attention) and MQA (Multi-Query Attention) reduce cache by decreasing the number of KV heads. MQA has 1 KV head, and GQA falls between MQA and standard MHA. In the same configuration, if KV heads drop to 1, the cache is about 4 GB.
After estimating the KV Cache, add the memory for model weights and activations to determine if a single node can handle it.
Second, mixed linear attention. The computational complexity of standard attention grows quadratically with sequence length, while linear attention layers grow linearly. Therefore, linear layers reduce the computation and memory overhead of long sequences. The precise recall capability of linear layers is usually weaker than full attention, so a common practice is to retain some full attention layers. The trade-off is that precise retrieval capability may decrease, which requires verification through the tests in the next section.
Third, architectural changes like attention residuals. Such technologies need to be verified against the publisher’s paper and open-source code, focusing on confirming the modification location, whether it affects both training and inference, and the evaluation sets reported by the authors. If neither the paper nor the code is available, treat it merely as a marketing claim and do not include it in the selection criteria.
2.4 Evaluation Checklist
Record results according to the following five groups, and specify the test environment and sample size for each group in the report.
| Evaluation Group | Method | Metrics Recorded |
|---|---|---|
| Length-bucketed Accuracy | Bucket by actual business input length (e.g., 4K, 32K, 128K), at least 200 samples per bucket | Accuracy per bucket, identify performance inflection points |
| Needle in a Haystack | Insert a fact at different lengths and depths (front, middle, back), repeat each combination 10 times | Retrieval hit rate heatmap |
| Business Long Document Tasks | Build Q&A sets using proprietary documents, manually annotate answers | Accuracy, hallucination rate |
| Latency | Run under target concurrency, record TTFT and output tokens per second | Average, P95, P99 |
| Stability | Run continuously for 24 hours, record OOM, timeouts, and retries | Number of failures, retry rate |
Pass criteria should be determined before testing, not after results are available. For example, you can specify that accuracy under a certain business length bucket must not fall below 95% of the human baseline, and P95 TTFT must not exceed the business limit.
III. Hierarchical Monitoring for Humanoid Robots
Humanoid robot control is typically divided into three layers. The failure consequences and monitoring focus of each layer differ and should not be mixed in a single overview dashboard.
| Layer | Responsibilities | Key Monitoring Metrics | Action on Anomaly |
|---|---|---|---|
| Real-time Control Layer | Joint servo, balance and motion control | Control cycle jitter, bus packet loss rate, joint current and temperature | Enter safe posture or emergency stop, independent of upper layers |
| Perception & Decision Layer | Vision, localization, planning, model inference | Perception frame rate, localization drift, inference latency, planning failure rate | Degrade to conservative actions, pause new tasks |
| Task & Cloud Layer | Task scheduling, logging, model version management | Task success rate, manual takeover count, version consistency | Pause new task distribution, rollback version |
Follow these principles during design:
- The emergency stop circuit should be implemented via hardware or an independent safety controller, not relying on the large model’s output.
- The large model’s output should first pass through motion constraint checks (joint limits, speed, torque limits) before being sent to actuators.
- Thresholds should be determined by hardware manuals and safety assessments; this article does not provide universal values.
- Logs must record timestamps and model version numbers for post-incident review.
Pre-launch checklist:
- The emergency stop still works after disconnecting upper-layer software, and has been tested.
- Each layer’s metrics have independent alert thresholds and responsible owners.
- Before upgrading models or strategies, regression tests have been completed in simulation environments and restricted fields.
- Before personnel enter the work area, safety fences and area markings are confirmed to be in place.
IV. Full-Duplex Voice Interaction Metrics
Full-duplex means both parties in a call can speak simultaneously. The system needs to play audio while listening to the user’s voice and determining if the user wants to interrupt. If metrics lack a unified start and end point, numbers from different teams cannot be compared.
| Metric | Start/End Point Definition | Statistical Method |
|---|---|---|
| First Token Latency | From the end of user voice endpoint to the start of system’s first audio packet output | P50, P95 per session |
| Interruption Response Time | From user starting to speak during system playback to playback audio stopping | Only count true interruption samples |
| False Interruption Rate | Times the system stops playback when the user did not interrupt, divided by total playback times | Requires manual annotation |
| Missed Interruption Rate | Times the system does not stop playback when the user interrupts, divided by total user interruptions | Requires manual annotation |
| Residual Echo Energy Ratio | Ratio of system voice energy captured by microphone during playback to user voice energy | Grouped by SNR and device |
| Word Error Rate (WER) | Character-level edit distance between recognition result and annotated text, divided by annotated character count | Grouped by noise level |
Note the following during measurement:
- Timestamps should be applied at the capture, inference, and playback ends, using the same clock source.
- The test set should cover quiet, background voices, background music, and AC noise scenarios, with at least 100 dialogue rounds per category.
- Specify sampling rate, codec format, and network conditions in the report.
Pre-launch checklist:
- Metric start/end points are documented, and all teams use the same definition.
- Interruption samples are manually annotated, not relying solely on algorithm self-evaluation.
- Tests include weak network scenarios (packet loss, jitter).
- User explicit consent has been obtained before using recordings for testing or training, and data is stored according to data classification.
V. Megawatt-Level Liquid-Cooled Computing Center Implementation
Implementation proceeds through the following seven stages. Before the end of each stage, corresponding acceptance criteria must be met.
| Stage | Key Actions | Acceptance Criteria |
|---|---|---|
| 1. Load Confirmation | Confirm rack power density, total power, and expansion plans | Design load document, including peak and continuous loads |
| 2. Cooling Method Selection | Compare cold plate and immersion types in deployment cost, maintenance, and provider ecosystem | Comparison table, marking risks for each option |
| 3. Piping & Water Quality | Design primary and secondary side piping, determine water quality standards and filtration precision | Water quality test report, pressure test records |
| 4. Material Compatibility | Verify compatibility of coolant with piping, seals, and server components | Compatibility list, written confirmation from vendors |
| 5. Leak Protection | Install leak detection, zone isolation valves, and collection facilities | Detection response test records |
| 6. Phased Commissioning | Sequentially complete single rack, single row, and full load tests | Temperature, flow, and differential pressure records for each phase |
| 7. Failure Drill | Simulate pump failure, power outage, and leaks, test switching and alerts | Drill report and recovery time |
Key metric explanations:
- PUE = Total datacenter energy consumption ÷ IT equipment energy consumption. The same statistical period and boundaries must be used during calculation; numbers from different projects cannot be directly compared.
- Inlet temperature, outlet temperature, flow rate, and differential pressure should be connected to the monitoring system with alert thresholds set.
- The response time for leak detection should be determined by on-site testing, not substituted by vendor marketing values.
Safety requirements:
- Electrical systems and coolant must be mutually isolated; live work is prohibited in leak areas.
- Combustibility and toxicity data of the coolant should come from the Safety Data Sheet (SDS).
- Firefighting plans must match the selected cooling method.
VI. Pre-Launch Master Checklist
- Numbers in the four scenarios have clear sources or are marked as examples.
- The storage, transmission, and data-leaving-domain paths for sensitive data have been confirmed by the compliance department.
- Every monitoring metric has a definition, threshold, and responsible owner.
- Acceptance records are complete, and test results are reproducible.
