Skip to content

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

Meta Engineering 12 min read Case study mediumAdept

Asicmon: A platform agnostic observability system for AI accelerators

Meta built Asicmon, an observability layer that abstracts heterogeneous AI and video accelerator drivers behind a standard counter interface. It caches periodically probed metrics per device, and those metrics feed health checks, telemetry and Shard Manager autoscaling across hundreds of thousands of ASICs. Asimov, a Python-like DSL built on ANTLR, compiles driver instrumentation into thread-safe C++ monitoring modules, cutting new-accelerator onboarding from a month to under a week. Atrace collects device traces remotely in production and summarizes them per operator with critical-path analysis, an approach that closed a 10% latency gap between the Caffe2 and PyTorch versions of one model.

Related posts

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

    Meta Engineering easyNovice

    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. It combines GPU traces (Kineto, PyTorch Profiler, DCGM), CPU profiling (Strobelight), host telemetry and NCCL communication data. Automated analyzers then detect stragglers, bottlenecks, critical paths, memory issues and parallelism imbalances, and results are shown through Perfetto-integrated timelines, dashboards and auto-generated fix recommendations. Training profiling triggers automatically around iterations 550-555 to capture steady state. Reported wins include a 75% training-time reduction for Ads models, 2-50% inference QPS gains, 10-45% inference power reductions and 25-30% speedups on 32k-64k GPU jobs.

  • Building AI-Powered Observability with Heroku Managed Inference and Agents

    Heroku Engineering mediumAdept

    Observability platforms like Splunk, Honeycomb and Sentry can be exposed to AI coding assistants as MCP tools, so engineers query production telemetry in natural language from Cursor or Claude instead of switching to dashboards and writing SPL. The Go servers define typed MCP tools and handlers that translate tool calls into platform API calls. They are deployed as STDIO processes behind Heroku Managed Inference and Agents, whose MCP gateway handles SSE transport and auth, and clients connect via mcp-remote with an inference token. Claimed benefits include faster incident triage, security pattern spotting such as auth-failure spikes, and quicker onboarding, though the evidence is anecdotal and promotional.

  • AI Lab: The secrets to keeping machine learning engineers moving fast

    Meta Engineering mediumAdept

    Meta's AI Lab is a pre-production framework that continuously runs shrunk, often CPU-only versions of common ML training workflows as A/B tests to measure time to first batch (TTFB), the delay from job submission to the first training batch. It catches regressions before release and lets infra owners validate improvements in under an hour. During the Cinder Python runtime rollout, it helped engineers double their TTFB gains, reaching up to 40%, for example by fixing memoization that triggered expensive repr() calls. It also caught an unrelated blocking-logging regression and attributed it to the specific change. To scale, it runs cheap tests on code changes and broader tests with bisect-style attribution on releases, flagging changes via t-tests, confirmation runs and ROC-tuned thresholds that cap false positives.

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

  • How Meta keeps its AI hardware reliable

    Meta Engineering hardMaster

    Silent data corruptions (SDCs), hardware miscomputations that leave no trace, now occur at roughly one fault per thousand devices and are a growing threat to large-scale AI training and inference. Meta classifies hardware faults as static, transient or silent. It detects SDCs fleet-wide with Fleetscanner (periodic directed tests every 45-60 days), Ripple (millisecond co-located tests) and Hardware Sentinel (kernel-space exception analysis, 41% better than test-based methods). For AI workloads, SDCs cause NaN propagation and corrupted gradient variance during training and wrong outputs during inference. Mitigations combine infrastructure strategies (reductive triage, deterministic training, hyper-checkpointing) with stack strategies (gradient clipping, algorithmic fault tolerance, shadow-node verification, parameter vulnerability factors, divergence detection).

The quest for software engineering knowledge.

Look:
Layout: