tp-dp-comm-overlap

Configure TP/DP/PP communication overlap in Megatron-Bridge distributed training.

2.8k|332|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/NVIDIA/skills --skill tp-dp-comm-overlap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tp-dp-comm-overlap
Source: https://github.com/NVIDIA/skills/tree/main/skills/Megatron-Bridge/perf-techniques/tp-dp-comm-overlap
Command: npx skills add https://github.com/NVIDIA/skills --skill tp-dp-comm-overlap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Overcoming communication bottlenecks in Megatron-Bridge by enabling overlap among tensor-parallel, data-parallel, and pipeline-parallel paths during distributed training.

Core Features & Use Cases

  • Config-driven overlap: Tune tensor-model-parallel size, sequence parallel, and pipeline parallel size to achieve simultaneous data, tensor, and pipeline communications.
  • Code anchors & guidance: Provides code anchors and practical pitfalls to ensure correct overlap behavior and safe deployment.
  • Verification & troubleshooting: Includes verification steps, pitfalls to avoid, and launch-time environment tuning recommendations for different scheduling modes.

Quick Start

Enable TP/DP/PP overlap in Megatron-Bridge by applying the CommOverlapConfig knobs shown in the skill and verify the overlap behavior with the provided unit tests.

Frequently Asked Questions about tp-dp-comm-overlap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I overlap tensor, data, and pipeline parallel communications in Megatron-Bridge?

To overlap tensor, data, and pipeline parallel communications in Megatron-Bridge, apply the CommOverlapConfig knobs to tune scheduling modes for simultaneous TP, DP, and PP paths. This configuration eliminates communication bottlenecks during distributed training by enabling concurrent operations.

What is communication overlap tuning for distributed model training?

Communication overlap tuning is the process of configuring tensor, sequence, and pipeline parallel paths to execute simultaneously. In Megatron-Bridge, it solves performance bottlenecks by ensuring data, tensor, and pipeline communications overlap rather than blocking each other.

Can I use sequence parallelism with tensor and pipeline parallel overlap in Megatron-Bridge?

Yes, Megatron-Bridge supports sequence parallelism alongside tensor-model-parallel and pipeline parallel sizes. You can tune these dimensions together via CommOverlapConfig to achieve simultaneous data, tensor, and pipeline communications across your distributed training setup.

How do I verify TP/DP/PP overlap behavior after applying configuration changes?

You can verify TP/DP/PP overlap behavior using the provided unit tests included in the skill. These tests confirm that the CommOverlapConfig adjustments correctly enable simultaneous tensor, data, and pipeline parallel communications in your Megatron-Bridge setup.

What launch-time environment tuning recommendations exist for communication overlap scheduling?

The skill provides specific launch-time environment tuning recommendations for different scheduling modes to ensure safe deployment. These tuning parameters optimize the execution of overlapping tensor, data, and pipeline parallel communications during distributed training.

What pitfalls should I avoid when enabling communication overlap in distributed training?

When enabling communication overlap in Megatron-Bridge, avoid common pitfalls by following the provided code anchors and practical pitfall notes. These guidelines ensure correct overlap behavior and safe deployment across different scheduling modes and parallel configurations.