hybrid-context-parallel
OfficialEnable hierarchical context parallelism.
Software Engineering#distributed-training#megatron-bridge#hierarchical-context-parallel#transformer-engine#context-parallelism#a2a+p2p#gpu-scaling
AuthorNVIDIA
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Hierarchical context parallelism enables scalable training across multiple GPU groups by structuring compute and communication in hierarchical levels within Megatron-Bridge.
Core Features & Use Cases
- Provides configuration knobs for enabling HCP, including context_parallel_size, cp_comm_type, and hierarchical_context_parallel_sizes.
- Documents code anchors and validation rules to ensure correct setup and verification of HCP groups.
- Describes pitfalls and verification steps to avoid misconfiguration and silent failures in distributed runs.
Quick Start
Configure context_parallel_size to 4, set cp_comm_type to a2a+p2p, and provide hierarchical_context_parallel_sizes as [2,2], then run a small multi-GPU test to verify hierarchical groups are created.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hybrid-context-parallel Download link: https://github.com/NVIDIA/skills/archive/main.zip#hybrid-context-parallel Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.