Skip to content

Architecture Overview

Contributor-facing design docs. Operators: User Guide. Contracts: Reference.

Vocabulary: Core model.

Reading order

  1. Modularity & boundaries — ownership and dependency direction.
  2. Activation & runtime control → Data Layer — how Probing enters a process and retains evidence.
  3. Profiling and tracing — TorchProbe, spans, training phases, and stacks.
  4. Distributed membership → Federation — membership, hierarchical fan-out, and cross-rank SQL.
  5. Distributed Profiler query and visualization — 10K-rank timeline semantics, hierarchical execution, and cross-rank drill-down.

“Current” describes implemented behavior. “Draft/target” pages are not complete product contracts.

Foundations

Document Status Description
Modularity & boundaries Current Layers, public contracts, ownership
Activation & runtime control Current .pth, ptrace trampoline, and service readiness
Data Layer Current MEMT/MEMC hot/cold storage and SQL integration
Extensibility Current Table, collector, skill, and service contracts

Collectors & profiling

Document Status Description
Profiling and tracing Current TorchProbe, spans/phases, Python/native stacks, and system collection
NCCL Profiler Current Plugin ABI and wait decomposition
Overhead Current Shadow-step formulas, change invariants, and offline benchmarks

Distributed query & analysis

Document Status Description
Distributed membership Current Torchrun registration, heartbeat, TTL, and member metadata
Federated query engine Current global.*, plan selection, hierarchical fan-out, tags, and partial results
Distributed Profiler Target 10K-rank timelines, hierarchical query, multi-resolution views, and flamegraphs

User-facing workflows: User Guide · Reference: SQL Tables · CLI & Python API