Skip to content

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

240 posts RSS

November 2026

Meta Engineering

How Meta Uses AI Agents to Scale ML Innovations Across Ads Ranking Models

Case study 10 min +100 XP

Meta uses AI agents to propagate proven ranking-model techniques (e.g. Wukong layers, Interformer, training optimizations) across a large, heterogeneous fleet of ads ranking models, where a technique rarely transfers without adaptation.

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

Intelligent Delivery: Making Every Unit of Compute Serve Better Ads

Case study 9 min +90 XP

Meta's Intelligent Delivery is an ML-driven layer that allocates serving compute across requests, models, hardware fleets and ranking stages by predicting the marginal utility of each unit of compute, adding about 10% ads ranking performance since 2017.

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

F3 Lightning: How Meta Accelerates Ads ML Features to Production at Scale

Case study 10 min +100 XP

F3 Lightning decouples feature releases from shared execution in Meta's ads ML feature framework, so each of 20,000+ features is compiled, validated, deployed and rolled back independently instead of shipping as one all-or-nothing merged DAG.

October 2026

Meta Engineering

Catching Bugs Before They Land: JiTTesting’s Human-on-the-Loop Approach at Full Scale

Case study 6 min +60 XP

Meta has moved Catching Just-in-Time Tests (JiTTests) from research prototype into production: LLMs generate executable tests designed to fail on risky diffs, exposing concrete behavioral changes before code lands rather than reviewing code like a human would.

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

The Thin Orchestrator: How We Made Our AI Agents More Reliable by Giving the Router Less to Do

Case study 7 min +70 XP

Meta replaced a single all-knowing AI agent for onboarding data columns across its recommendation pipelines with a deliberately thin, deterministic orchestrator: about 1,300 lines that route 20+ workflows to 14 specialized subagents and do no domain reasoning.

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

Turning Opportunistic AI Inference Capacity Into Better Ads Recommendations

Case study 10 min +100 XP

Meta aggregates locally idle inference capacity, stranded by peak provisioning, delivery timing, resource-ratio and accelerator-type mismatches, into a preemptible opportunistic pool used to improve ads recommendations.

September 2026

Meta Engineering

An Organizational Second Brain: Building an AI That Learns From Experts

Case study 13 min +130 XP

Meta built a domain-expert AI agent for a compliance domain that separates declarative knowledge files (positions, taxonomies, routing indexes, gateway tests with YAML dependency graphs) from imperative composable "recipes" that encode expert reasoning workflows.

August 2026

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.

July 2026

June 2026

Meta Engineering

Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study

Case study 23 min +230 XP

Meta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules.

May 2026

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

Migrating Data Ingestion Systems at Meta Scale

Case study 9 min +90 XP

Meta migrated tens of thousands of MySQL-to-warehouse change data capture (CDC) ingestion jobs, together moving several petabytes daily, from customer-owned pipelines to a self-managed warehouse service, and fully retired the legacy system.

April 2026

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

How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines

Case study 5 min +50 XP

Meta built a pre-compute engine where 50+ specialized AI agents (explorers, module analysts, writers, critics, fixers, gap-fillers) read every file of a 4,100-file, three-language config-as-code data pipeline and produced 59 concise context files capturing undocumented tribal knowledge.

March 2026

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

Friend Bubbles: Enhancing Social Discovery on Facebook Reels

Case study 7 min +70 XP

Friend bubbles on Facebook Reels surface videos that close friends have reacted to, using two closeness models: a survey-trained model run weekly over trillions of friend pairs, and a context-specific model trained on bubble interactions.

February 2026

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.

January 2026

Meta Engineering

Rust at Scale: An Added Layer of Security for WhatsApp

Case study 5 min +50 XP

WhatsApp rewrote its cross-platform media consistency library, wamedia, from C++ to Rust and now ships it to billions of devices and browsers across Android, iOS, Mac, Web and wearables, which Meta calls the largest client-side Rust deployment it knows of.

December 2025

Meta Engineering

Python Typing Survey 2025: Code Quality and Flexibility As Top Reasons for Typing Adoption

Research 8 min +80 XP

The 2025 Typed Python Survey (1,241 respondents, mostly experienced developers) finds 86% use type hints always or often, with adoption peaking at 93% among developers with 5–10 years of Python experience and lowest (80%) among 10+ year veterans.

Meta Engineering

How AI Is Transforming the Adoption of Secure-by-Default Mobile Frameworks

Case study 10 min +100 XP

Meta wraps risky OS and third-party APIs in secure-by-default frameworks built on three principles: mirror the existing API, depend only on public and stable interfaces, and keep each library small but usable across all apps and OS versions.

November 2025

Meta Engineering

Zoomer: Powering AI Performance at Meta’s Scale Through Intelligent Debugging and Optimization

Case study 8 min +80 XP

Zoomer is Meta's automated profiling, debugging and optimization platform for AI training and inference across hundreds of thousands of GPUs, generating tens of thousands of profiling reports daily.

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.

October 2025

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

Meta Engineering

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

Case study 10 min +100 XP

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.

September 2025

August 2025

Meta Engineering

Federation Platform and Privacy Waves: How Meta distributes compliance-related tasks at scale

Case study 9 min +90 XP

Meta's Federation Platform turns large compliance initiatives into code-defined workstreams that scrape privacy flags, resolve asset ownership via a central catalog, group related flags, and either file tasks or send automated diffs, with resolution logic that auto-closes or reopens tasks.

July 2025

May 2025

April 2025

March 2025

February 2025

January 2025

The quest for software engineering knowledge.

Look:
Layout: