What problem does it solve?
This Skill helps you understand, write, run, and troubleshoot Megatron-LM unit and functional tests so failures can be reproduced locally and corrected quickly.
Core Features & Use Cases
- Test layout navigation: Understand the split between unit tests, functional end-to-end tests, and shared CI test utilities.
- Recipe YAML authoring: Create and modify workload recipes, including product expansion, placeholders, and per-platform test configuration.
- Golden values workflow: Download and update golden values to diagnose numerical regressions and maintain expected outputs.
- CI parity and diagnostics: Reproduce CI behavior locally (torch.distributed.run, container mounts, rank logging rules, and artifact locations).
- Marker filters and stability controls: Use pytest marker filters (e.g., flaky, experimental) and scope suffixing to disable tests without deleting them.
Quick Start
Use the testing skill to reproduce a CI bucket failure locally with the same unit or functional test invocation and then update golden values if the change is an intentional numerical shift.