Azure Pipelines Log Downloader
ansible/ansible
Downloads Azure Pipelines CI logs for an Ansible pull request or build so the agent can analyze test failures, after asking you first.
Explains Megatron-LM's CI pipeline, PR scope labels, triggering the internal GitLab CI with a dry run first, and investigating CI failures.
$ npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install NVIDIA/Megatron-LM mcore-cicd --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/NVIDIA/Megatron-LM.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mcore-cicd .claude/skills/mcore-cicd && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mcore-cicd" agent skill from https://github.com/NVIDIA/Megatron-LM/tree/main/skills/mcore-cicd into .claude/skills/mcore-cicd/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mcore-cicd", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/NVIDIA/Megatron-LM/tree/main/skills/mcore-cicdType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install NVIDIA/Megatron-LM mcore-cicd --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NVIDIA/Megatron-LM.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/mcore-cicd .agents/skills/mcore-cicd && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mcore-cicd" agent skill from https://github.com/NVIDIA/Megatron-LM/tree/main/skills/mcore-cicd into .agents/skills/mcore-cicd/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mcore-cicd", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install NVIDIA/Megatron-LM mcore-cicd --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NVIDIA/Megatron-LM.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/mcore-cicd .cursor/skills/mcore-cicd && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mcore-cicd" agent skill from https://github.com/NVIDIA/Megatron-LM/tree/main/skills/mcore-cicd into .cursor/skills/mcore-cicd/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mcore-cicd", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/NVIDIA/Megatron-LM.git --path skills/mcore-cicd--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install NVIDIA/Megatron-LM mcore-cicd --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NVIDIA/Megatron-LM.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/mcore-cicd .gemini/skills/mcore-cicd && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mcore-cicd" agent skill from https://github.com/NVIDIA/Megatron-LM/tree/main/skills/mcore-cicd into .gemini/skills/mcore-cicd/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mcore-cicd", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install NVIDIA/Megatron-LM mcore-cicdInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/NVIDIA/Megatron-LM.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/mcore-cicd .github/skills/mcore-cicd && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mcore-cicd" agent skill from https://github.com/NVIDIA/Megatron-LM/tree/main/skills/mcore-cicd into .github/skills/mcore-cicd/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mcore-cicd", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install NVIDIA/Megatron-LM mcore-cicd --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/NVIDIA/Megatron-LM.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/mcore-cicd .opencode/skills/mcore-cicd && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mcore-cicd" agent skill from https://github.com/NVIDIA/Megatron-LM/tree/main/skills/mcore-cicd into .opencode/skills/mcore-cicd/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mcore-cicd", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mcore-cicdExplains Megatron-LM's CI pipeline, PR scope labels, triggering the internal GitLab CI with a dry run first, and investigating CI failures.
This is a CI/CD reference for the Megatron-LM repository. It leads with exact values for label questions: with no label the pipeline uses the slim scope with 2 repeats and no lightweight mode, container::lts only switches the image to the older long-term-support base and is opt-in, and extra labels trigger the MBridge L1 suite or NeMo RL's Megatron functional tests. A decision tree maps labels to scope, repeat count and image.
The main workflow, cicd-main.yml, runs on pushes to pull-request and deploy-release branches, on merge groups and on manual dispatch, passing through preflight and configure stages. The skill carries a warning: tools/trigger_internal_ci.py force-pushes the current branch to the internal GitLab remote as a pull-request ref, so always run it with --dry-run first, confirm the destination and never target a shared or protected branch. It also covers investigating CI failures.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 486a126. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ghpythongitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
GITLAB_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Megatron-LM CI/CD Guide loads about 1.8k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 545 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from NVIDIA/Megatron-LM at commit 486a126, republished under its Apache-2.0 licence (© NVIDIA). 545 words, ~1,754 tokens.
.claude/skills/mcore-cicd/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.For PR-label or trigger questions, lead with the exact values:
scope=mr-github-slim, n_repeat=2, lightweight=false.container::lts only switches the container image path to LTS and combines
with any scope label. Opt-in only — attach it solely when the user
explicitly asks for LTS validation; never add it on your own initiative, even
for a container or dependency change.Run MBridge tests additionally triggers the MBridge L1 suite.Run NeMoRL tests additionally triggers NeMo RL's Megatron functional test suite.tools/trigger_internal_ci.py
force-pushes the current branch to the internal GitLab remote as
pull-request/<branch>. Always run with --dry-run first and confirm the
destination ref before invoking it without the flag. Never run against a
shared or protected branch — only target your own pull-request branch.
Safe preflight: python tools/trigger_internal_ci.py --gitlab-origin gitlab --dry-run.
Add the optional --functional-test-* flags only after the dry-run output
matches the intended destination.The main workflow is .github/workflows/cicd-main.yml. It triggers on pushes
to branches matching pull-request/[0-9]+ and deploy-release/*, on merge
groups, and on manual dispatch.
is-not-external-contributor
└─ pre-flight
└─ configure # determines scope, container tag, n_repeat
├─ linting
├─ cicd-container-build
│ ├─ cicd-parse-unit-tests → cicd-unit-tests-latest
│ ├─ cicd-parse-integration-tests-h100 → cicd-integration-tests-latest-h100
│ └─ cicd-parse-integration-tests-gb200 → cicd-integration-tests-latest-gb200 (maintainers only)
└─ Nemo_CICD_Test # final pass/fail gateImages are pushed to:
766267172432.dkr.ecr.us-east-1.amazonaws.com/…us-east4-docker.pkg.dev/nv-projdgxchipp-20260113193621/megatron-lm/…The CI pipeline reads PR labels to decide test scope, n_repeat, and container image.
Decision tree (first match wins):
| Condition | scope | n_repeat | lightweight | Notes |
|---|---|---|---|---|
| Merge group | mr-github | 1 | false | Automatic, no label needed |
| (no label) | mr-github-slim | 2 | false | Slim subset only |
Orthogonal image label:
| Label | Effect |
|---|---|
container::lts | Build on the older long-term-support NGC PyTorch base instead of dev's latest — a backward-compat check, not a different test set (combinable with any scope label) |
Run MBridge tests | Also triggers the MBridge L1 test suite |
Run NeMoRL tests | Also triggers NeMo RL's Megatron functional test suite |
Adding a label does not itself start cicd-main.yml; apply it before the next
synthetic PR push or rerun the workflow after applying it.
| Changed paths / nature of change | Label to attach |
|---|---|
Docs only (docs/, *.md, docstrings) | (none) |
CI/tooling only (.github/, tools/, Makefile) | (none) |
| Touches MBridge integration | add Run MBridge tests |
| Could affect NeMo RL's Megatron integration | add Run NeMoRL tests |
Use tools/trigger_internal_ci.py after the internal GitLab remote and
GITLAB_TOKEN are configured; see @tools/trigger_internal_ci.md for setup
details. First run a dry run and verify the destination ref:
python tools/trigger_internal_ci.py --gitlab-origin gitlab --dry-runThe script force-pushes the current branch to pull-request/<branch> before
triggering the pipeline. Only target your own pull-request branch, never a shared
or protected branch. Add optional --functional-test-* flags only after the
dry-run output matches the intended destination.
CI branches always follow the pattern pull-request/<number>.
# Extract PR number from the current branch
PR_NUMBER=$(git rev-parse --abbrev-ref HEAD | grep -oP '(?<=pull-request/)\d+')
# Fetch the PR metadata (title, labels, author, base branch)
gh pr view "$PR_NUMBER" --repo NVIDIA/Megatron-LM
# Show the changeset for that PR
gh pr diff "$PR_NUMBER" --repo NVIDIA/Megatron-LM# List recent workflow runs for the PR
gh run list --repo NVIDIA/Megatron-LM --branch "pull-request/$PR_NUMBER"
# Stream failing job output
gh run view <run-id> --repo NVIDIA/Megatron-LM --log-failedFull per-rank logs are not in the runner stdout. They are uploaded as
GitHub artifacts named logs-<test_case>-<run_id>-<uuid>.
# 1. Find artifact name
gh run view <run-id> --repo NVIDIA/Megatron-LM --json artifacts \
--jq '.artifacts[].name'
# 2. Download the artifact zip
gh run download <run-id> --repo NVIDIA/Megatron-LM \
--name "logs-<artifact-name>" -D ./ci-logs
# 3. Locate which rank logs contain errors
grep -r -l "ERROR\|Traceback\|FAILED\|fatal" ./ci-logs/
# 4. Log files can exceed 10 000 lines — never read a full log at once.
wc -l ./ci-logs/<test>/<attempt>/attempt_0/<rank>/stderr.log
sed -n '1,200p' ./ci-logs/.../stderr.log # read in chunkstools/autoformat.sh locally; the diff shows exactly what needs to change.cicd-container-build job log.cicd-unit-tests-latest job matrix.cicd-integration-tests-* job. Start with stdout.log for rank 0.# Find unit tests that cover a changed source file
grep -r "from megatron.core.transformer.attention" tests/unit_tests/ -l
# Check CODEOWNERS for reviewer assignment
cat .github/CODEOWNERS | grep "<changed-path>"© NVIDIA, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in skills/mcore-cicd of NVIDIA/Megatron-LM.
Open the folder on GitHubat commit 486a126
Megatron-LM CI/CD Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Megatron-LM CI/CD Guide this skillNVIDIA/Megatron-LM | 18k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Azure Pipelines Log Downloaderansible/ansible | 71k | — | ~825 | Automated safety check: Pass | GPL-3.0 | |
| ONNX Runtime CI Managementmicrosoft/onnxruntime | 22k | — | ~4.1k | Automated safety check: Pass | MIT | |
| CI Watchdoglatitude-dev/latitude-llm | 4.7k | — | ~1.6k | Automated safety check: Pass | MIT | |
| Migrate To TeamcityJetBrains/teamcity-cli | 125 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| CI/CD Failure Troubleshootingruby-git/ruby-git | 1.8k | — | ~1.9k | Automated safety check: Pass | MIT |
ansible/ansible
Downloads Azure Pipelines CI logs for an Ansible pull request or build so the agent can analyze test failures, after asking you first.
microsoft/onnxruntime
Triggers, re-runs and unblocks the CI checks on an ONNX Runtime pull request, after diagnosing whether a failure is transient or needs a code change.
latitude-dev/latitude-llm
Continuously monitor GitHub PR CI checks and automatically fix failures until all checks pass.
JetBrains/teamcity-cli
Migrating CI/CD pipelines to TeamCity. An agent skill from JetBrains/teamcity-cli.
ruby-git/ruby-git
Diagnoses and fixes failing GitHub Actions runs by identifying the failure, fetching only the relevant logs, finding the root cause and reproducing it locally.
EliasOulkadi/shokunin
Design CI/CD pipelines for GitHub Actions, GitLab CI, and CircleCI with matrix builds, test sharding, caching, Docker layer caching, OIDC auth, deployment strategies (rolling, blue-green, canary)…
NVIDIA/Megatron-LM
Refreshes stored golden values from a GitHub Actions run, reports signed percentage changes per model, and writes a summary ready for a pull request description.
NVIDIA/Megatron-LM
Walks an agent through working inside the Megatron-LM CI container and changing dependencies with uv, so lock files resolve the same locally and in CI.
NVIDIA/Megatron-LM
Moves Megatron-LM CI to a newer NVIDIA PyTorch base image, updating both the GitHub and GitLab pins together and handling the CI follow-up.
NVIDIA/Megatron-LM
Investigates a failing GitHub Actions run or job for Megatron-LM, finds the root cause plus the PR and test author involved, and files a structured bug issue.
NVIDIA/Megatron-LM
Guides moving Megatron Core GPTModel checkpoints, configs, training commands and launch scripts to HybridModel, following the repository's migration document.
NVIDIA/Megatron-LM
Creates one-node GitHub merge-request variants of existing two-node GB200 functional tests in Megatron-LM, adjusting parallelism settings to fit four GPUs.
Categories
Explains Megatron-LM's CI pipeline, PR scope labels, triggering the internal GitLab CI with a dry run first, and investigating CI failures. This is a CI/CD reference for the Megatron-LM repository. It leads with exact values for label questions: with no label the pipeline uses the slim scope with 2 repeats and no lightweight mode, container::lts only switches the image to the older long-term-support base and is opt-in, and extra labels trigger the MBridge L1 suite or NeMo RL's Megatron functional tests.
Megatron-LM CI/CD Guide fits situations like: choosing PR labels to set the CI test scope in Megatron-LM; triggering the internal GitLab CI safely for a branch; investigating why a CI run failed.
Run `npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a claude-code`. Or copy the skill folder (skills/mcore-cicd in NVIDIA/Megatron-LM) into .claude/skills/mcore-cicd in your project. Claude Code loads it when a task matches its description.
Run `npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a codex`. Or copy the skill folder (skills/mcore-cicd in NVIDIA/Megatron-LM) into .agents/skills/mcore-cicd in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NVIDIA/Megatron-LM --skill mcore-cicd -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mcore-cicd, .gemini/skills/mcore-cicd, .github/skills/mcore-cicd and .opencode/skills/mcore-cicd in your project.
Going by SKILL.md and its folder, Megatron-LM CI/CD Guide needs the command-line tools its instructions call (gh, python and git) and credentials named GITLAB_TOKEN. Our summary lists: A Megatron-LM checkout; Access to the internal GitLab remote for triggering CI.
SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Megatron-LM CI/CD Guide is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Megatron-LM CI/CD Guide: Azure Pipelines Log Downloader (ansible/ansible, 71k stars), ONNX Runtime CI Management (microsoft/onnxruntime, 22k stars), CI Watchdog (latitude-dev/latitude-llm, 4.7k stars) and Migrate To Teamcity (JetBrains/teamcity-cli, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
NVIDIA (a GitHub organization, an official publisher) maintains it in NVIDIA/Megatron-LM, which has 18,078 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 7, 2026.
Source: NVIDIA/Megatron-LM on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.