Skip to content

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

Meta Engineering 6 min read Announcement hardMaster

Using Chakra execution traces for benchmarking and network performance optimization

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. They address problems with full-workload benchmarks like MLPerf: high GPU cost, the inability to evaluate systems that don't exist yet, and slow adaptation to new workloads. Meta collects traces from production daily, replays them with tools such as Mystique and PARAM, and uses them to find imbalanced collective message sizes across ranks. Planned work with the MLCommons Chakra working group includes system-independent pre-execution traces and generative models that produce representative, IP-obfuscated traces.

Assumes: distributed ML trainingcollective communicationML benchmarking

Related posts

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

  • Logarithm: A logging engine for AI training workflows and services

    Meta Engineering mediumAdept

    Logarithm is Meta's internal serverless, multitenant log indexing service, written in C++20 with coroutines, that ingests over 100 GB/s of logs and serves thousands of queries per second with SLOs on freshness, completeness, durability and latency. Its architecture rests on a few choices: a disaggregated compute/storage split, with logs stored as ORC blocks in Manifold and lightweight Bloom-filter secondary indices cached on query clusters, plus tiering across memory, SSD and blob storage. Scribe/LogDevice queues and a sharded MySQL locality service handle durability and block placement, and Shard Manager drives ingestion elasticity. Queries can trade result completeness or ordering for latency, and a randomized streaming API lets AI training dashboards render hundreds of tensor time series incrementally. A per-line metadata API attaches context such as PyTorch rank IDs, which helps debug distributed training failures.

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

  • Together AI at ICML 2026: frontier research across the full stack

    Together AI hardMaster

    Together AI's nine ICML 2026 papers span the AI stack from agents to GPU kernels, each with a headline result. ThunderAgent makes multi-turn agent workflows visible to the inference scheduler for 1.5–3.6x throughput. Aurora trains speculative-decoding drafters online via asynchronous RL on accepted/rejected tokens, gaining 1.25x over a static speculator. Untied Ulysses chunks attention by head to fit 5M-token training on one 8xH100 node, and OEA recovers MoE sparsity under batching for up to 39% faster decode without retraining. The rest cover verifier-free reasoning (RARO), pairwise self-verification (V1), test-time RL for discovery (TTT-Discover), a data-science agent benchmark (DSGym), and a multi-GPU kernel generation benchmark where the best frontier model solves fewer than a third of 87 tasks.

  • Scaling LLM Inference: Innovations in Tensor Parallelism, Context Parallelism, and Expert Parallelism

    Meta Engineering hardMaster

    Meta scales LLM inference with three parallelism techniques aimed at latency targets of under 350ms time-to-first-token and under 25ms per incremental token. For tensor parallelism, custom direct-data-access allreduce algorithms (flat and tree) cut communication latency, beating RCCL by 10-50% on decode and bringing AMD MI300X to parity with H100. Context parallelism via ring attention, in Pass-KV and Pass-Q variants, enables 1M-token prefill in under a minute on one H100 host and near-linear scaling for Llama 3 405B (128K tokens in 3.8s over 16 nodes). Expert parallelism for MoE models relies on all-to-all token exchange that costs 10-30% of latency, and Meta is moving toward N-D parallelism with disaggregated prefill and decode tiers on heterogeneous hardware.

The quest for software engineering knowledge.

Look:
Layout: