Skip to content

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

Sources

Meta Engineering

2026

Meta Engineering

Cuttlefish on Mac: Running Android’s Virtual Device Framework Natively on Apple Silicon

Case study 5 min +50 XP

Meta's Reality Labs ported AOSP's Cuttlefish virtual-device framework to run natively on Apple silicon Macs, letting it retire the lower-fidelity Goldfish emulator and standardize on one platform shared by developers, CI and external partners.

Meta Engineering

How We Built TLX: A Hardware-Native GPU Compiler for Production ML at Scale

Deep dive 17 min +170 XP

Triton Low-Level Extensions (TLX) add explicit warp-group, synchronization, memory and cluster-level orchestration to Triton, so engineers can use Hopper and Blackwell features such as TMA, TMEM, mbarriers and paired-CTA execution without dropping to CUDA.

Meta Engineering

Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design

Case study 11 min +110 XP

Meta's next-generation Andromeda ads retrieval engine co-designs model, system and GPU hardware to score every eligible ad with near ranking-level quality at over one billion ads per second per GPU server, a 100x lift over the 2024 system.

Meta Engineering

Meta’s Generative Ads Model (GEM): Scaling the Central Model and Compute Engine for Frontier Ads AI

Case study 14 min +140 XP

Meta's 2026 GEM replaces per-surface ads ranking models with a single central recommendation foundation model trained across Facebook, Instagram, Reels and deep-funnel conversion objectives, reporting 18.9% conversion and 12% CTR gains.

Meta Engineering

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

Deep dive 5 min +50 XP

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.

Meta Engineering

From User Sequences to Scaling Laws: A Multi-Stage Architecture for Meta’s Ads Ranking

Case study 6 min +60 XP

Meta scales sequence learning for ads ranking by splitting it into two stages: an offline transformer user model processes thousands of user events asynchronously and caches user-level embeddings, and a lightweight online ranking model combines those embeddings with fresh signals and ad candidates under strict latency budgets.

Meta Engineering

GEM Training: How Meta Doubled the Efficiency of Its LLM-Scale Ads Foundation Model

Case study 21 min +210 XP

Meta doubled end-to-end training efficiency of GEM, its LLM-scale ads recommendation foundation model, to 20–25% MFU while scaling training FLOPs 4x in a year, by co-designing kernels, precision, parallelism, networking and memory.

Meta Engineering

SilverTorch: Index as Model — A New Retrieval Paradigm for Recommendation Systems

Case study 14 min +140 XP

SilverTorch replaces Meta's microservice-based recommendation retrieval with "Index as Model": the item index, eligibility filter, ANN search, neural reranker and multi-task scorer all become tensors or nn.Modules inside a single PyTorch model served on GPUs in one forward pass.

Meta Engineering

Escaping the Fork: How Meta Modernized WebRTC Across 50+ Use Cases

Case study 10 min +100 XP

Meta escaped a long-diverged internal WebRTC fork by statically linking two WebRTC versions into one binary behind a version-agnostic shim layer, which let it A/B test legacy and upstream stacks app-by-app across 50+ use cases.

Meta Engineering

Meta Adaptive Ranking Model: Bending the Inference Scaling Curve to Serve LLM-Scale Models for Ads

Case study 9 min +90 XP

Meta Adaptive Ranking Model serves LLM-scale ads ranking models (O(10 GFLOPs) per token, O(1T) parameters) at O(100 ms) latency by routing each request to an appropriately complex model and computing user signals once per request instead of once per ad candidate.

Meta Engineering

RCCLX: Innovating GPU Communications on AMD Platforms

Announcement 5 min +50 XP

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.

Meta Engineering

Building Prometheus: How Backend Aggregation Enables Gigawatt-Scale AI Clusters

Case study 4 min +40 XP

Meta's backend aggregation (BAG) is an Ethernet super-spine layer that connects multiple L2 spine fabrics across data center buildings and regions, making it possible to build the 1-gigawatt Prometheus AI cluster spanning tens of thousands of GPUs.

2025

Meta Engineering

Meta’s Generative Ads Model (GEM): The Central Brain Accelerating Ads Recommendation AI Innovation

Case study 10 min +100 XP

GEM is Meta's LLM-scale foundation model for ads recommendation, trained on thousands of GPUs and used as a teacher to improve hundreds of downstream vertical ranking models; it lifted ad conversions 5% on Instagram and 3% on Facebook Feed.

Meta Engineering

10X Backbone: How Meta Is Scaling Backbone Connectivity for AI

Case study 9 min +90 XP

Meta scaled its Express Backbone (EBB), the DC-to-DC WAN, by 10x using three techniques: pre-built DC metro fiber rings with POPs, IP platform scaling (scaling up via larger chassis and 800G interfaces, scaling out via more planes or more devices per plane), and IP/optical integration with 800G ZR pluggables that eliminate standalone transponders and cut aggregate power by 80-90%.

2024

Meta Engineering

PVF: A novel metric for understanding AI systems’ vulnerability against SDCs in model parameters

Research 6 min +60 XP

Parameter vulnerability factor (PVF) is a metric, modeled on the architectural vulnerability factor (AVF), that defines the probability that a corruption in a given model parameter (or group of parameters) produces an incorrect output, estimated through large-scale fault injection.

Meta Engineering

Optimizing RTC bandwidth estimation with machine learning

Case study 8 min +80 XP

Meta replaced parts of its hand-tuned, GCC-based bandwidth estimation for real-time calls with ML models that classify network conditions and predict congestion, then apply configs tuned offline in simulation and delivered from the server at call setup.

2023

Meta Engineering

Using Chakra execution traces for benchmarking and network performance optimization

Announcement 6 min +60 XP

Chakra execution traces are an open, graph-based schema for AI/ML workload execution that capture compute, memory and communication operations along with their data and control dependencies, timing and resource constraints.

Meta Engineering

Meta introduces its first-generation AI inference accelerator

Deep dive 8 min +80 XP

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.

Meta Engineering

A fine-grained network traffic analysis with Millisampler

Research 4 min +40 XP

Millisampler is a lightweight eBPF-based tc filter deployed across Meta's server fleet that records fine-grained network traffic time series at 100μs, 1ms and 10ms granularities: ingress/egress bytes, ECN-marked bytes, retransmissions, in-region vs cross-region traffic, and active connection counts estimated with a 128-bit sketch.

2022

Meta Engineering

Open-sourcing Anonymous Credential Service

Deep dive 9 min +90 XP

Anonymous Credential Service (ACS) lets clients authenticate without revealing identity by splitting authentication into token issuance over an authenticated channel and token redemption over a de-identified channel, using verifiable oblivious pseudorandom functions (VOPRFs) and blind signatures.

2021

Meta Engineering

OCP Summit 2021: Open networking hardware lays the groundwork for the metaverse

Announcement 5 min +50 XP

Meta has deployed new open network hardware contributed through OCP: the Wedge 400 (Broadcom Tomahawk 3) and Wedge 400C (Cisco Silicon One) top-of-rack switches, which offer 4x the switching capacity of the Wedge 100S (12.8 Tbps vs 3.2 Tbps), 8x the burst absorption and a field-replaceable CPU subsystem.

Meta Engineering

RAMP-TAO: Layering atomic transactions on Facebook’s online graph store

Research 2 min +20 XP

RAMP-TAO is a protocol that layers read-atomic transactional guarantees on top of TAO, Facebook's eventually consistent social graph store, so developers get an intuitive read transaction API without handling fractured-read anomalies.

2019

2016

The quest for software engineering knowledge.

Look:
Layout: