Skip to content

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

Meta Engineering 5 min read Deep dive hardMaster

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

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.

Assumes: collective communication (AllReduce, AllToAll)RDMA basicsGPU training architecturerecommendation model parallelism

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.

  • Meta introduces its first-generation AI inference accelerator

    Meta Engineering hardMaster

    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.

  • RCCLX: Innovating GPU Communications on AMD Platforms

    Meta Engineering hardMaster

    Meta is open-sourcing RCCLX, an enhanced fork of AMD's RCCL collective communication library integrated with the Torchcomms API, bringing its CTran transport (including the GPU-resident AllToAllvDynamic collective) to AMD GPUs. Direct Data Access (DDA) speeds up intra-node AllReduce for tensor-parallel LLM inference. Its flat algorithm cuts latency to O(1) at the cost of O(n²) data exchange, and its tree variant uses direct access in reduce-scatter and all-gather phases, beating RCCL by 10-50% on decode and 10-30% on prefill on MI300X for roughly a 10% reduction in time-to-incremental-token. Low-precision collectives quantize FP32/BF16 to FP8 over a P2P mesh on Infinity Fabric while computing in FP32. For large single-node messages they deliver about 9-10% lower latency and 7% higher throughput end to end with a ~0.3% GSM8K delta, enabled via RCCL_LOW_PRECISION_ENABLE=1.

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

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

The quest for software engineering knowledge.

Look:
Layout: