Skip to content

Support for NVCRE init containers - #6375

Open
sjayaram-nv wants to merge 6 commits into
NVIDIA-NeMo:mainfrom
sjayaram-nv:sjayaram/nvcre-init-containers
Open

sjayaram-nv wants to merge 6 commits into
NVIDIA-NeMo:mainfrom
sjayaram-nv:sjayaram/nvcre-init-containers

Conversation

@sjayaram-nv

@sjayaram-nv sjayaram-nv commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do ?

Support NVCRE init containers for llmb K8s workloads

Changelog

Added --nvcre_init_containers_json, forwarded to NvcreExecutor.init_containers, and
--nvcre_bridge_root (default /opt/Megatron-Bridge) so the generated command and
PYTHONPATH can use a Megatron-Bridge checkout that an init container placed in the
pod instead of the image's copy.

@copy-pr-bot

copy-pr-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@sjayaram-nv
sjayaram-nv marked this pull request as draft October 9, 2026 13:45
@cuichenx cuichenx added feature New capabilities, enhancements, or enablement work area:perf Performance optimizations and benchmarking labels Oct 9, 2026
@sjayaram-nv
sjayaram-nv marked this pull request as ready for review October 12, 2026 07:22
@sjayaram-nv sjayaram-nv changed the title Pass NVCRE init containers and a pod-side Megatron-Bridge root Support for NVCRE init containers Oct 12, 2026
@cuichenx cuichenx added the needs-review PR is ready for code review and waiting on a reviewer label Oct 12, 2026
@sudostock

Copy link
Copy Markdown
Contributor

I think we should invert the call logic. Right now this is a passthrough essentially of nvcre nemo-run flags. When jobs are launched via setup_experiment.py it already knows which commit is and repo location.

I'd argue we should have a flag like --nvcre_use_mbridge_commit or similar. This grabs the necessary information during setup_experiment.py to create the json nvcre needs and passes it along.

Makes the whole flow simpler.

Comment thread scripts/performance/argument_parser.py Outdated
Comment thread scripts/performance/utils/nvcre_bridge.py Outdated
Comment thread scripts/performance/utils/nvcre_bridge.py Outdated
Comment thread scripts/performance/setup_experiment.py Outdated
Comment thread scripts/performance/utils/executors.py Outdated
Comment thread tests/unit_tests/scripts/performance/test_setup_experiment.py
@cuichenx cuichenx added waiting-on-customer Waiting on the original author to respond needs-review PR is ready for code review and waiting on a reviewer and removed needs-review PR is ready for code review and waiting on a reviewer waiting-on-customer Waiting on the original author to respond labels Oct 13, 2026
@sudostock

Copy link
Copy Markdown
Contributor

/ok to test e52380c

@github-actions

Copy link
Copy Markdown
Contributor

Automatic Claude reviews have been retired. To request a pull-request review, post a comment containing:

/review

Add model=claude to use a Claude reviewer (the default is model=codex). mode=light|strict selects the review depth; for example, /review model=claude mode=strict. Comment /review help for all options.

Comment thread scripts/performance/argument_parser.py Outdated

@sudostock sudostock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hf_token in arg parse from previous NVCRE PR has offline mode issue.

Comment thread scripts/performance/setup_experiment.py Outdated
sudostock pushed a commit that referenced this pull request Oct 14, 2026
Signed-off-by: Smitha Jayaram <sjayaram@nvidia.com>
Signed-off-by: Alex Filby <afilby@nvidia.com>
Comment thread scripts/performance/setup_experiment.py
@cuichenx cuichenx added the waiting-on-customer Waiting on the original author to respond label Oct 15, 2026
@cuichenx cuichenx removed the needs-review PR is ready for code review and waiting on a reviewer label Oct 15, 2026
@sjayaram-nv
sjayaram-nv requested a review from sudostock October 15, 2026 07:35
@cuichenx cuichenx added needs-review PR is ready for code review and waiting on a reviewer and removed waiting-on-customer Waiting on the original author to respond labels Oct 15, 2026
sjayaram-nv and others added 6 commits October 15, 2026 23:03
Signed-off-by: Smitha Jayaram <sjayaram@nvidia.com>
for NVCRE init_container in Run repo

Signed-off-by: Smitha Jayaram <sjayaram@nvidia.com>
Signed-off-by: Smitha Jayaram <sjayaram@nvidia.com>
Signed-off-by: Smitha Jayaram <sjayaram@nvidia.com>
Default the NVCRE per-job timeout to 12h

Signed-off-by: Smitha Jayaram <sjayaram@nvidia.com>
Signed-off-by: Alex Filby <alexfilby@gmail.com>
@sjayaram-nv
sjayaram-nv force-pushed the sjayaram/nvcre-init-containers branch from 063422a to bb0d261 Compare October 15, 2026 17:33

This branch was successfully deployed

1 active (outdated) deployment
test — e52380c5 Deployed Oct 14, 2026 by copy-pr-bot[bot] via cicd-wait-in-queue #22851
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:perf Performance optimizations and benchmarking community-request feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants