Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 6 min read Case study mediumAdept

How thermal simulation helps optimize Meta’s data centers

Meta built a physics-based (gray box) thermal simulator of its data center cooling and HVAC systems, using Modelica and the Control Description Language, so control policies can be tested without risking live facilities. Unlike models trained on sensor data, it generalizes to extreme and hypothetical conditions and to unbuilt sites, and it runs far faster than CFD. Fed only outside conditions, set points, fan airflow and server load, it reproduced a data hall's response to the February 2021 Texas winter storm with 0.5˚F mean absolute error in supply air temperature and no drift. Across 24 random 2021 dates the error was 1.3˚F. Next steps include predicting energy and water use and coupling the simulator with reinforcement learning and model predictive control.

Related posts

  • Simulator-based reinforcement learning for data center cooling optimization

    Meta Engineering mediumAdept

    Meta uses an offline, simulator-based reinforcement learning agent to set the supply airflow setpoint in its outside-air, evaporatively cooled data centers. Rather than exploring online, the agent starts from historical sensor states, samples actions, uses a physics-based thermal simulator to predict the next state and reward, and retrains its policy on the best state-action pairs. Constraints keep cold-aisle temperature rise and cold-to-hot-aisle pressurization within spec, and the simulator covers conditions absent from historical data. A pilot running since 2021 cut supply fan energy by 20% and water use by 4% on average with no temperature excursions, and the approach is now rolling out to existing and future AI-focused data centers.

  • How Meta Is Leveraging AI To Improve the Quality of Scope 3 Emission Estimates for IT Hardware

    Meta Engineering easyNovice

    Meta estimates embodied (Scope 3) carbon for hundreds of millions of data center hardware components by combining product carbon footprints (PCFs), parameterized models and cost-based estimates, ranking each by data quality and rolling them up to the rack level. TF-IDF with cosine similarity matches components to similar parts so existing PCFs can serve as proxies, and Llama 3.1 extracts parameters such as memory capacity and cable length from inconsistent data sources to feed physics-based models. A GenAI classifier, first run open-ended and then constrained to an expert-approved category list, maps vendor-specific bills of materials into a domain and component taxonomy to expose emission hotspots. Meta plans to open source the taxonomy, classifier and aggregation methodology through OCP.

  • Design for Sustainability: New Design Principles for Reducing IT Hardware Emissions

    Meta Engineering easyNovice

    Meta's Design for Sustainability guidelines target Scope 3 emissions from data center IT racks through modular rack design, reuse and retrofitting, lower-carbon materials, longer hardware life, dematerialization and supplier engagement. Concrete measures include ORv3 racks with separate toolless PSU and BBU shelves and a 48 V power shelf that can sit anywhere in the rack, a minimum of 20% recycled steel in racks and chassis, and heat sinks made entirely from recycled aluminum or copper. Other levers are harvesting DIMMs from end-of-life racks, removing unpopulated board components, moving from HDD to SSD, and liquid cooling, which can be up to 17% more carbon-efficient than air cooling. Meta's supplier program grew from 39 suppliers in 2021 to 183 in 2024.

  • How Meta trains large language models at scale

    Meta Engineering easyNovice

    Training LLMs at Meta shifted workloads from many small recommendation jobs to a few enormous GPU jobs, forcing changes across hardware, data center layout, reliability, networking and storage. Meta adapted its Grand Teton H100 platform (700W TDP, HBM3, still air-cooled), repacked data halls for GPU density, and tracks common failure modes such as GPUs dropping off PCIe, DRAM/SRAM uncorrectable errors and network cable faults. Instead of choosing between fabrics, it built two 24K-GPU clusters, one RoCE and one InfiniBand, and tuned both to equivalent performance for Llama 3 training. The tuning relied on topology-aware placement of parallelism traffic, custom collectives such as recursive doubling/halving in place of rings, and load balancing to handle fat flows.

  • Meta’s Infrastructure Evolution and the Advent of AI

    Meta Engineering easyNovice

    Meta's infrastructure grew from a LAMP stack with per-university databases to a global fleet of millions of machines. Along the way it added Memcache and TAO, edge POPs, a backbone network, cache-invalidation systems for cross-region consistency, and fleet systems such as Twine, Tectonic, ZippyDB, Shard Manager, Kraken, Taiji and Maelstrom. AI workloads changed those assumptions. Recommendation models brought GPUs into the fleet, and LLM training pushed synchronous jobs from 128 to thousands of GPUs, where one failure halts the whole job; Meta reports cutting the interruption rate by about 50x. It went on to build two 24k H100 clusters (InfiniBand and RoCE), a 129k-H100 cluster made by emptying five data centers, air-assisted liquid-cooled GB200 racks, AMD MI300 deployments, and its own MTIA silicon for ranking and ads inference.

The quest for software engineering knowledge.

Look:
Layout: