Rack-Scale Co-Design for AI Data Centers: A Practical Framework

    This article breaks down rack-scale co-design for AI data centers, explaining why optimization has shifted from individual chips to the entire rack. It covers four key dimensions—compute and packaging, interconnect topology, memory hierarchy, and power and cooling—along with a practical capacity planning workflow focused on effective throughput rather than peak performance. The discussion includes how to align communication domains with parallelism strategies such as tensor, pipeline, data, and expert parallelism, and general guidance for validating and deploying these systems on cloud infrastructure.

    1. Why “Turning the Rack into One Machine” Became Necessary

    For more than a decade, growth in AI compute relied mainly on smaller chip process nodes and tighter packaging integration. But as model parameter counts and training sequence lengths keep climbing, any one of three factors—per-card compute, memory capacity, or inter-card bandwidth—can become the bottleneck and drag down overall efficiency. The industry has therefore moved the optimization boundary up from the chip to the rack: compute, networking, memory, power, and cooling are now designed together toward a shared goal, rather than being assembled passively after each meets its own target.

    The essence of this approach is extreme co-design: first determine what the model workload actually demands from the system, then work backward to constrain the specifications and layout of every hardware layer. The payoff is not a win on any single metric, but a gain in effective compute utilization—the share of compute within a given power budget and rack footprint that is genuinely used for training and inference.

    2. Four Key Dimensions of Rack-Scale Co-Design

    1. Compute and Packaging: From Stacking Compute to Near-Memory Computing

    Integrating high-bandwidth memory in close proximity to the compute die shortens data movement paths and lowers the energy cost of moving each unit of data. In engineering terms, this requires trade-offs among yield, thermal performance, and serviceability. As a result, repairable modular packaging is becoming a design focus, rather than a single-minded pursuit of integration density at any one point.

    2. Interconnect Topology: A High-Speed Domain Inside the Rack and a Scalable Domain Across Racks

    The typical approach is tiered networking: inside the rack, ultra-high-bandwidth, low-latency links form a tightly coupled domain that carries the most communication-sensitive parallelism strategies, such as tensor parallelism; across racks, a converged switching network carries pipeline and data parallelism. The key design point is to align communication domain boundaries with parallelism strategy boundaries, so that cross-tier traffic does not fall onto slow links.

    An illustrative mapping of parallelism strategies to communication domains:

    1. Tensor parallelism (TP) -> intra-rack high-bandwidth domain (lowest latency)
    2. Pipeline parallelism (PP) -> across racks (medium bandwidth, latency-tolerant)
    3. Data parallelism (DP) -> across clusters (converged, elastic bandwidth)
    4. Expert parallelism (EP) -> placed nearby based on routing patterns to reduce cross-domain jitter

    3. Memory Hierarchy: Balancing the Triangle of Capacity, Bandwidth, and Consistency

    Large-model training is often constrained by the “memory wall.” Viable paths include higher-bandwidth on-chip or near-memory storage, tiered main-memory expansion, and software-side techniques such as activation recomputation, sharding, and offloading. It is worth stressing that offloading is not free: it shifts bandwidth pressure onto the interconnect and storage, so it must be evaluated together with the topology.

    4. Power and Cooling: Rack-Level Power Density Sets the Ceiling

    A rack-scale design treats power and liquid cooling as first-class concerns. Higher rack power density demands more efficient power distribution, finer-grained power telemetry, and faster fault isolation; liquid cooling requires redundancy in cold plate design, flow distribution, and leak detection. Compute specifications without the power and cooling to support them are just paper numbers.

    3. The Science Behind the Name: A Metaphor for an “Invisible Constraint”

    This generation of platforms is named after a female astronomer whose core contribution was providing observational evidence for the existence of dark matter: the orbital speed of stars at the outer edges of galaxies does not decay with distance, indicating that a large amount of invisible matter supplies additional gravitational pull. There is a striking methodological parallel to system design—what truly determines a system’s ceiling is often the invisible constraints: the power wall, memory bandwidth, communication latency, and cooling capacity. Planning around only the visible compute metrics is like counting only visible matter and still failing to explain a galaxy’s rotation curve.

    4. Implementation: An Actionable Capacity Planning Workflow

    1. Workload profiling: Measure model size, parallelism strategy, sequence length, and the communication-to-compute ratio, then output percentile requirements for bandwidth and capacity.
    2. Communication domain alignment: Map parallelism strategies onto the physical topology to ensure high-frequency communication does not cross slow domains.
    3. Power and cooling validation: Use rack power density, power redundancy, and cooling capacity as upper-bound constraints to work backward to a deployable scale.
    4. Effective compute accounting: Evaluate with end-to-end throughput, scaling efficiency, and performance per watt, rather than single-card peak.
    5. Serviceability design: Modular replacement, health telemetry, fault domain isolation, and automatic degradation policies.
    1. # Illustrative: make capacity decisions based on effective compute, not peak compute
    2. def effective_throughput(peak, comm_eff, mem_eff, power_headroom):
    3. return peak * comm_eff * mem_eff * power_headroom
    4. # Constraint: when any dimension nears a bottleneck, adding more peak compute yields diminishing returns
    5. plan = {"peak": 1000, "comm_eff": 0.62, "mem_eff": 0.78, "power_headroom": 0.85}
    6. print(effective_throughput(**plan))

    5. General Guidance for Running This on the Cloud

    Enterprises do not need to build every layer of the underlying stack themselves; they can rely on general-purpose cloud infrastructure for validation and rollout: use a container platform to orchestrate training and inference workloads, object storage to hold datasets and checkpoints, a message queue to decouple the data pipeline, and monitoring, alerting, and logging services to observe communication and power bottlenecks. The general-purpose compute and supporting capabilities offered by Baidu AI Cloud can support the engineering loop of “profile first, align next, then validate,” helping teams refocus on the model and the business itself.

    6. Conclusion

    The value of rack-scale co-design lies not in leading on any single parameter, but in solving compute, memory, interconnect, power, and cooling within the same constraint system. Understanding this methodology allows teams to ask the right questions when evaluating a compute solution: which layer is the bottleneck, whether the communication domains are aligned, whether power and cooling leave enough headroom, and whether effective compute is genuinely improving.