---
title: "Using Chakra execution traces for benchmarking and network performance optimization"
description: "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."
url: "https://swe.quest/articles/using-chakra-execution-traces-for-benchmarking-and-network-performance-df350406c5269052"
canonical: "https://engineering.fb.com/2023/09/07/networking-traffic/chakra-execution-traces-benchmarking-network-performance-optimization/"
source: "Meta Engineering"
published: "2023-09-07"
difficulty: "hard"
kind: "Announcement"
reading_minutes: 6
tags: ["model-training","performance","networking","open-source"]
---

# Using Chakra execution traces for benchmarking and network performance optimization

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-09-07, 6 min read, Announcement. Original: [https://engineering.fb.com/2023/09/07/networking-traffic/chakra-execution-traces-benchmarking-network-performance-optimization/](https://engineering.fb.com/2023/09/07/networking-traffic/chakra-execution-traces-benchmarking-network-performance-optimization/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- distributed ML training ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))
- collective communication
- ML benchmarking ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))

## Keywords

Chakra, MLCommons, MLPerf, Mystique, PARAM

## Related posts

- [AI Lab: The secrets to keeping machine learning engineers moving fast](https://swe.quest/articles/ai-lab-the-secrets-to-keeping-machine-learning-engineers-moving-fast-ecc26a27b1339111.md): Meta Engineering · 2024-07-16 · Medium · 6 min read · ML platforms, Performance engineering, Testing, Developer productivity, Python
  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.
- [Logarithm: A logging engine for AI training workflows and services](https://swe.quest/articles/logarithm-a-logging-engine-for-ai-training-workflows-and-services-3a679ea0e30a896d.md): Meta Engineering · 2024-03-18 · Medium · 11 min read · Observability, System design, Storage systems, ML platforms, Scaling
  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.
- [Building Meta’s GenAI Infrastructure](https://swe.quest/articles/building-meta-s-genai-infrastructure-47cf7d972b2561ce.md): Meta Engineering · 2024-03-12 · Easy · 8 min read · Model training, Datacenters, Hardware, Networking, Storage systems
  Meta built two 24,576-GPU NVIDIA H100 clusters for GenAI training, including Llama 3.
- [Together AI at ICML 2026: frontier research across the full stack](https://swe.quest/articles/together-ai-at-icml-2026-frontier-research-across-the-full-stack-7ba2ab06914581c4.md): Together AI · 2026-06-30 · Hard · 10 min read · Inference & serving, Model training, LLMs, AI agents, Evaluation
  Together AI's nine ICML 2026 papers span the AI stack from agents to GPU kernels, each with a headline result.
- [Scaling LLM Inference: Innovations in Tensor Parallelism, Context Parallelism, and Expert Parallelism](https://swe.quest/articles/scaling-llm-inference-innovations-in-tensor-parallelism-context-parallelism-and-0ffa604a22d7428d.md): Meta Engineering · 2025-10-17 · Hard · 5 min read · Inference & serving, LLMs, Distributed systems, Performance engineering, Hardware
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
