Repository navigation
Feature/rfc 2408 compute comms overlap - #3020
Conversation
2c0f7c9 to
5b3ce59
Compare
|
added a commit at the end to address the nit comments
|
Conflicts resolved during rebase to main1.
|
5b3ce59 to
51558c3
Compare
|
8 GPU Model Tests is also broken on main: https://github.com/pytorch/torchtitan/actions/runs/24590708198/job/71910660385 The tranformer test CI is broken and should be fixed by #3022 |
## Summary - Update CLI flag references from `--profiling.*` to `--profiler.*` in docs, benchmarks, and `.claude/` files to match the config rename from `ProfilingConfig` to `Profiler.Config` landed in #3020 ## Changed files - `docs/debugging.md` — CLI flags, inline code references, and config example - `torchtitan/experiments/graph_trainer/.claude/CLAUDE.md` — CLI flags in example commands - `benchmarks/llama3-8b_h200_202506_trainy-whitefiber.md` — CLI flag in benchmark command
Land #2418
Summary
Adds an automated compute-communication overlap diagnostic to help identify communication bottlenecks in FSDP2 training. Implements #2408
Motivation
Achieving high MFU in large-scale training requires effective overlap of compute and NCCL communication. Currently, identifying "communication bubbles" requires manually downloading multi-GB trace files and inspecting them in Chrome Trace Viewer. This feature provides an immediate diagnostic signal directly in the logs.
Changes
New Feature:
CommsComputeOverlapAnalyzer--profiler.enable_overlap_analysisflag (off by default)Implementation Details
prof.events()to collect raw CUDA kernel events and their wall-clock time intervalsncclfor communication;gemm,aten,cublas,cudnn,cutlass,triton,flashfor computecompute_us + comm_us - active_us, whereactive_usis the union across both categoriesExample Output
Llama 3 8B (8B params) on 2x H200:
Debug model (6M params) on 2x H200:
Both results are expected communication-bound baselines with no overlap optimizations enabled. The debug model is more severely bottlenecked because its compute-to-communication ratio (0.24x) is far lower than the 8B model (0.65x) — there is almost no compute to overlap with.
Testing
Tested on 2x NVIDIA H200 with:
Limitations