Why LLM Teams Build Their Own Data Centers Instead of Relying Only on Public Cloud

    LLM pretraining is a power, cooling, interconnect, and chip-adaptation problem, not just renting GPUs. This article frames when to self-build clusters, when to use public cloud elasticity, and how a hybrid architecture keeps long-running training under control.

    Large-model training has outgrown “rent a few accelerators and run.” Power, cooling, interconnect bandwidth, and chip-specific software now dominate. Many teams build facilities in regions with lower energy prices and spare grid capacity, and keep elastic workloads on public cloud. This piece treats that choice as an engineering and cost problem: a reusable decision framework, not vendor rumors.

    1. Training is a power and interconnect problem, not only “enough cards”

    Inference can scale with request load. Training is long-running, high occupancy, and tightly synchronized. A large pretrain often lasts weeks to months. The cluster needs:

    • Stable power and cooling so jobs are not stopped by brownouts or thermal limits
    • High-bandwidth, low-latency intra-node and inter-node networks for gradient sync and pipeline efficiency
    • Deep customization of drivers, communication libraries, and kernels so the model maps onto a given instruction set

    Public cloud fits fast experiments, bursty inference, and small-to-medium fine-tuning. At whole-rack or whole-room scale, energy cost per FLOP, whether the network topology is under your control, and whether you can rewrite the stack for a given accelerator matter more than hourly rental. Siting a hall where power is abundant and climate favors free cooling turns energy and heat from external constraints into planned infrastructure parameters.

    2. Power and cooling: first principles of self-build

    At full accelerator load, electricity becomes a large share of TCO. Self-built halls typically evaluate:

    1. Tariffs and supply reliability. Long jobs are price-sensitive and need transformer capacity, dual feeds, and diesel backup. Cheap power amortizes each training run.
    2. PUE and cooling path. Dry, cool climates favor indirect evaporative or free cooling and less compressor time. You can co-design cold aisles, liquid-cooling secondary loops, and rack density instead of inheriting a generic hall’s power cap.
    3. Expansion cadence. Training clusters grow by supernodes or rack groups. Self-build can reserve space for chip TDP, liquid manifolds, and optics density, avoiding “cards without power” or “power without fabric” mismatches in rented space.

    None of this dismisses public cloud. Cloud still helps with compliance, capacity reservation, and multi-region DR. A common pattern: core pretraining on owned clusters; preprocessing, eval, small experiments, and external inference on elastic cloud.

    3. Heterogeneous chips and the stack: why “rent a stock instance” is not enough

    If the model must run on accelerators outside the default CUDA assumptions, teams usually must:

    • Rewrite or port communication primitives, fused ops, allocators, and compiler backends
    • Retune data, pipeline, and expert parallelism for on-chip cache, inter-core sync, and cluster topology
    • Use high-speed links inside a supernode so many devices act as a larger logical unit and cut cross-host traffic

    That work depends on control of hardware manuals, driver versions, and cabling. On generic instances, driver cadence, whether topology is visible, and whether custom kernel modules are allowed all shrink the optimization space. A owned hall can make chip–server–switch–optics–scheduler a regression-tested chain, so adaptation becomes versioned software rather than rediscovering environment drift on every rental.

    Adaptation is engineering, not a slogan. You need operator correctness tests, performance regression, and numeric alignment so “it compiles” is not mistaken for usable throughput.

    4. Scheduling, confidentiality, and the data loop

    Training data and checkpoints are huge and include unpublished weights. A private environment makes it easier to:

    • Pin long jobs to a fixed topology with a dedicated scheduler and less preemption
    • Keep data, activations, and weights in a controlled network domain with audit and key management
    • Tier storage: hot data on local parallel FS; cold data and backups on object storage

    Cloud object storage, queues, containers, logs, and monitoring still fit ingest, CI eval, image builds, and alerting. Example: jobs run on the private cluster; artifacts sync to object storage; inference deploys on containers; metrics go to a unified monitor. Platforms such as Baidu AI Cloud typically supply these generic layers as the elastic and data plane of a hybrid design, not as a replacement for the entire training hall.

    5. Network and storage: self-build does not mean “off cloud”

    If the hall is fully isolated, data movement is expensive, DR is weak, and dev environments diverge. A more stable pattern:

    • Dedicated circuits or high-quality VPN to a cloud VPC, with explicit bandwidth and latency budgets
    • Unified identity and IAM so two account systems do not cause mis-grants
    • Storage tiers: local parallel storage on the hot training path; object storage for dataset release and model archive; a logging service for logs and metrics
    • Images and artifact registries in the cloud so containers keep train, eval, and serve environments aligned

    A schematic flow: clean data in cloud batch jobs → sync to on-prem storage → local scheduler starts training → checkpoints write back to object storage → eval runs in cloud containers. Each step needs checksums and retries to avoid silent corruption.

    6. Decision checklist: when to build, when to rent

    Use gates, not tribal loyalty:

    • Job length and scale. Continuous full load for weeks with a fixed supernode topology favors self-build or reserved racks; short experiments and burst inference favor on-demand.
    • Binding to chip and stack. Rewriting comms and kernels needs controllable hardware and drivers.
    • Power and cooling. If target density exceeds a generic hall, or electricity is the main cost, siting a build is more rational.
    • Compliance and secrecy. If weights and data cannot leave a jurisdiction or a multi-tenant environment, physical isolation gains value.
    • Cash flow and depreciation. Capex must be judged against chip refresh cycles; opex fits uncertain demand.

    Most teams land on hybrid: owned clusters for steady pretraining; public cloud for elasticity and data services. Generic categories—object storage, containers, logs, monitoring—can attach on the cloud side without moving all compute to one place.

    7. Engineering notes for rollout

    1. Validate a small supernode first. Prove comms libraries and key operators under real liquid cooling and fabric, then scale linearly.
    2. Modularize adaptation. Version a device HAL, comms backend, and op library separately so chip refreshes are local swaps.
    3. Dashboards for energy and throughput. Watch MFU, communication wait, and hall PUE together; do not optimize a single metric.
    4. Drill checkpoint resume and cross-hall sync. Power and network failures happen; checkpoint frequency trades storage cost against recompute.
    5. Staff mix. Besides researchers you need systems, networking, power, and cooling—or the hall becomes “power without efficiency.”

    Closing

    Building in energy-rich regions is about locking control of power, cooling, interconnect, and chip adaptation for long, dense training. Public cloud is about elasticity, data services, and operational standards. Together they keep training efficient while accelerator ecosystems are still moving fast, without putting all risk on one supply model. Plan from workload profiles and cost models; fill storage, containers, and observability with generic cloud services rather than substituting brand narrative for engineering.