mcore-build-and-dependency
Skill by NVIDIA
Megatron-LM Build and Dependency guides developers through container-based setup and uv dependency management for Megatron-LM. It is for contributors who need to set up a dev environment, change dependencies, or fix uv and container build errors.
Install mcore-build-and-dependency
Built from the published package, never by AI.
git clone --depth 1 https://github.com/NVIDIA/Megatron-LM /tmp/Megatron-LM && mkdir -p ~/.claude/skills && cp -r /tmp/Megatron-LM/skills/mcore-build-and-dependency ~/.claude/skills/mcore-build-and-dependencyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install mcore-build-and-dependency in Claude Code
git clone --depth 1 https://github.com/NVIDIA/Megatron-LM /tmp/Megatron-LM && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Megatron-LM/skills/mcore-build-and-dependency ~/.gemini/antigravity-cli/skills/mcore-build-and-dependencyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mcore-build-and-dependency in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Megatron-LM Build and Dependency guides an AI assistant through setting up a development environment for Megatron-LM. It covers acquiring the CI container, either by pulling an internal image or building one with the public main stage, and launching it locally with Docker or on a Slurm cluster with Pyxis and enroot. The source says all work should happen inside the container, since it ships CUDA, PyTorch and native extensions that are hard to reproduce on a bare host.
For dependencies, the skill explains how to manage packages with uv through pyproject.toml and uv.lock. It covers the dev, test, linting and build groups, adding a package with uv add followed by uv lock, and resolving uv.lock merge conflicts by re-resolving instead of editing by hand. It is aimed at developers working on Megatron-LM who need to set up an environment, change dependencies, or fix container and uv errors.
Written from the project's SKILL.md and checked against it.
What it can do
- Acquire the CI containerPull the internal CI image or build the public main stage from Dockerfile.ci.dev.
- Launch the containerStart the container with docker run --gpus all, or request an interactive Slurm session with srun.
- Set up the dev environmentRun uv sync --locked with the dev and test groups inside the container.
- Set up lintingRun uv sync --locked --only-group linting inside the container.
- Add a dependencyUse uv add and uv lock inside the container, then commit pyproject.toml and uv.lock.
- Resolve uv.lock conflictsTake main's uv.lock and re-run uv lock instead of editing the file by hand.
- Explain dev and lts variantsDescribe the default dev image and the lts image selected by the container::lts label.
- Troubleshoot common errorsCover uv sync failures, ModuleNotFoundError, disk space, docker build secret errors and pull access errors.
What you need
- Docker
- NVIDIA GPU for docker run with --gpus all
- Access to NVIDIA's internal GitLab to pull the internal image
- Pyxis and enroot on Slurm clusters
Try asking
- How do I set up a Megatron-LM dev environment with uv?
- Add a new Python dependency to Megatron-LM and update uv.lock.
- My uv sync --locked fails in the Megatron-LM container. What should I check?
Good to know
- The lts variant is opt-in and should be used only when the user explicitly asks for it.
- The jet build stage needs an internal secret, so public builds should use --target main.
- Pulling the internal image requires internal GitLab access.
- All uv operations must run inside the container, not on the host.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/mcore-build-and-dependency/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
BENCHMARK.md3 KB -
SKILL.md10 KB -
evals/evals.json3 B -
skill-card.md3 KB -
skill.oms.sig4 KB
Alternatives to mcore-build-and-dependency
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
mcore-build-and-dependency: common questions
Should I use the dev or lts container for Megatron-LM?
Use dev by default. The source says lts is for verifying a change on the older NGC PyTorch and CUDA base, and should be used only when explicitly requested.
Can I run uv sync on my host machine?
No. The source says all uv operations must be run inside the container, never on the host.
How do I resolve a uv.lock merge conflict?
Check out origin/main's uv.lock, then re-run uv lock inside the container. The source says uv.lock should never be resolved manually.
How do I install mcore-build-and-dependency?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mcore-build-and-dependency free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is mcore-build-and-dependency safe to use?
It scores 87 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcore-build-and-dependency?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
