---
title: "Building Meta’s GenAI Infrastructure"
description: "Meta built two 24,576-GPU NVIDIA H100 clusters for GenAI training, including Llama 3."
url: "https://swe.quest/articles/building-meta-s-genai-infrastructure-47cf7d972b2561ce"
canonical: "https://engineering.fb.com/2024/03/12/data-center-engineering/building-metas-genai-infrastructure/"
source: "Meta Engineering"
published: "2024-03-12"
difficulty: "easy"
kind: "Case study"
reading_minutes: 8
tags: ["model-training","datacenters","hardware","networking","storage-systems"]
---

# Building Meta’s GenAI Infrastructure

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-03-12, 8 min read, Case study. Original: [https://engineering.fb.com/2024/03/12/data-center-engineering/building-metas-genai-infrastructure/](https://engineering.fb.com/2024/03/12/data-center-engineering/building-metas-genai-infrastructure/)

## Summary

Meta built two 24,576-GPU NVIDIA H100 clusters for GenAI training, including Llama 3. One uses a RoCE fabric on Arista 7800 and OCP switches and the other uses InfiniBand, both with 400 Gbps endpoints, on Grand Teton servers. Storage combines a FUSE API over a flash-optimized Tectonic for synchronized checkpointing with a Hammerspace parallel NFS for interactive debugging. Large-cluster AllGather utilization initially ranged from 10% to 90%. Topology-aware job scheduling, routing changes and NCCL tuning brought it back above 90%, and PyTorch process-group startup dropped from hours to minutes.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Datacenters](https://swe.quest/tags/datacenters.md) (Infrastructure)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- distributed training basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- RDMA networking ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))
- collective communication

## Keywords

NVIDIA H100, RoCE, InfiniBand, Grand Teton, Tectonic, Hammerspace, NCCL, PyTorch

## Related posts

- [How Meta trains large language models at scale](https://swe.quest/articles/how-meta-trains-large-language-models-at-scale-c827e36c67bd0ee6.md): Meta Engineering · 2024-06-12 · Easy · 6 min read · Model training, Networking, Hardware, Datacenters, Distributed systems
  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’s Infrastructure Evolution and the Advent of AI](https://swe.quest/articles/meta-s-infrastructure-evolution-and-the-advent-of-ai-5db1ff27f9423ca7.md): Meta Engineering · 2025-09-29 · Easy · 17 min read · Datacenters, Model training, Hardware, Scaling, Distributed systems
  Meta's infrastructure grew from a LAMP stack with per-university databases to a global fleet of millions of machines.
- [Inside Prometheus: Meta’s Journey to a Gigawatt-Scale Supercluster](https://swe.quest/articles/inside-prometheus-meta-s-journey-to-a-gigawatt-scale-supercluster-d73a613bf03e3491.md): Meta Engineering · 2026-10-19 · Hard · 15 min read · Model training, Datacenters, Hardware, Networking, Resilience
  Prometheus is Meta's gigawatt-scale AI training supercluster in New Albany, Ohio, built in phases toward roughly 1 million GPUs.
- [Inside multi-node training: How to scale model training across GPU clusters](https://swe.quest/articles/inside-multi-node-training-how-to-scale-model-training-across-gpu-clusters-0a2389f46d13b933.md): Together AI · 2026-01-12 · Medium · 4 min read · Model training, Distributed systems, Hardware, Networking
  Multi-node GPU training spreads foundation model training across many 8-GPU servers by combining data, tensor and pipeline parallelism over NVLink within nodes and InfiniBand/RoCE between them, with periodic checkpointing to survive the near-daily hardware failures of 100-node clusters.
- [MTIA 300: Meta’s First Training Chip with Built-in NICs and Communication-Offloading Engines](https://swe.quest/articles/mtia-300-meta-s-first-training-chip-with-built-in-nics-and-communication-f7d24d092d75bb12.md): Meta Engineering · 2026-08-24 · Hard · 5 min read · Hardware, Model training, Networking, Recommendations & ranking, Performance engineering
  MTIA 300, Meta's in-house training accelerator for recommendation models, integrates two NIC chiplets with twelve 800 Gbps RDMA NICs on-package and adds 16 dedicated message engines, each with a RISC-V core, NIC interface and near-memory reduction block.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
