Skip to content

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

Meta Engineering 8 min read Deep dive hardMaster

Meta introduces its first-generation AI inference accelerator

MTIA v1 is Meta's first custom inference ASIC for deep learning recommendation models: a TSMC 7nm, 800 MHz, 25 W chip delivering 102.4 INT8 TOPS, built from an 8x8 mesh of processing elements with customized RISC-V cores, fixed-function units, 128 KB local SRAM each, 128 MB shared on-chip SRAM and up to 128 GB LPDDR5. Twelve accelerators on dual M.2 boards sit in Yosemite V3 servers connected by PCIe switches. A PyTorch-integrated software stack lowers models through FX IR and LLVM, with hand-tuned kernels and a KNYFE DSL for generating kernels. On perf/W, MTIA beats an NNPI accelerator and a GPU on low- and medium-complexity DLRMs but trails the GPU on high-complexity models, and memory and interconnect bandwidth are the bottlenecks for future designs.

Assumes: accelerator architecture basicsrecommendation models (DLRM)PyTorchcompiler IRs

Related posts

  • Introducing the next-gen Meta Training and Inference Accelerator

    Meta Engineering hardMaster

    Meta's second-generation MTIA inference accelerator, built on TSMC 5nm at 1.35GHz and 90W, more than doubles compute and memory bandwidth over v1. It keeps utilization high at small batch sizes for ranking and recommendation models by pairing an 8x8 processing-element grid with outsized SRAM (256 MB on-chip at 2.7 TB/s, 384 KB local per PE), a faster network-on-chip and 128 GB LPDDR5. The chips ship in 72-accelerator racks over PCIe Gen5 and run a PyTorch 2.0 stack with a user-space driver and a Triton-MTIA compiler backend, which got production traffic running within days and reached 16 regions in under nine months. Early results show 3x chip performance over v1 and 6x serving throughput with 1.5x performance per watt at the platform level.

  • MTIA 300: Meta’s First Training Chip with Built-in NICs and Communication-Offloading Engines

    Meta Engineering hardMaster

    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. Collectives therefore run without touching the compute grid. The co-designed HCCL library compiles each collective into dependency-linked work-queue subgraphs that execute autonomously on the device, and it integrates with torch.compile and c10d. Running GEMMs concurrently with collectives costs under 0.5% of compute throughput, versus over 20% on GPUs. Express doorbells save about 800 ns per operation, and on a 150B-parameter production model across 40 accelerators, total communication time is 3.9x faster than an equivalent GPU cluster.

  • KernelEvolve: How Meta’s Ranking Engineer Agent Optimizes AI Infrastructure

    Meta Engineering hardMaster

    KernelEvolve is Meta's agentic kernel-authoring system that treats kernel optimization as a search problem instead of one-shot LLM code generation. Monte Carlo tree search and evolutionary strategies explore hundreds of candidate kernels across Triton, CuTe DSL, FlyDSL, CUDA, HIP and MTIA C++. Nodes use configurable memory operators that draw on parent, sibling or no history. A retrieval-augmented, self-updating knowledge base supplies hardware documentation and distilled optimization skills, and an evaluation harness (TritonBench, PyTorch Profiler, NCU, Proton, MTIA Insight) feeds diagnoses of memory-bound, compute-bound or occupancy limits back to the LLM. Results include over 60% inference throughput gain for the Andromeda ads model on NVIDIA GPUs and over 25% training throughput gain on MTIA, achieved in hours rather than weeks of expert tuning.

  • 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.

  • Building Meta’s GenAI Infrastructure

    Meta Engineering easyNovice

    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.

The quest for software engineering knowledge.

Look:
Layout: