What problem does it solve?
It prevents broken, non-reproducible local setups by guiding you to build and manage the exact containerized CUDA/PyTorch/native-extension environment Megatron-LM expects.
Core Features & Use Cases
- Container-first development: Ensures the correct CUDA/NCCL/cuDNN, PyTorch GPU build, and precompiled native extensions (e.g., TransformerEngine, DeepEP) are available without fragile host installation.
- Deterministic dependency management with uv: Uses the container’s
/opt/venv and uv workflows to keep uv.lock consistent across developers and CI, avoiding “works on my machine” issues.
- Dev vs LTS image workflows: Supports
dev for most development and lts for stability testing, including guidance on where LTS pins live and how to rebuild the LTS image.
- Operational support for common failures: Provides fixes for typical issues such as
uv sync --locked failures, ModuleNotFoundError from wrong installation paths, container build/secret errors, and cache-related disk space problems.
Quick Start
Use the build-and-dependency skill to launch the provided Megatron-LM CI container variant and then run uv commands inside it to sync dependencies using the existing lockfile.