docs(examples): add Slurm launch examples - #54
Merged
Conversation
rhewett-nv
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
from
September 3, 2026 18:31
d8642d3 to
b42e6b9
Compare
rhewett-nv
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
2 times, most recently
from
September 3, 2026 19:05
67a1ac9 to
7f85b18
Compare
rhewett-nv
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
from
September 3, 2026 19:28
7f85b18 to
1313c39
Compare
rhewett-nv
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
from
September 3, 2026 20:05
1313c39 to
1c7679f
Compare
ahmadki
previously approved these changes
Sep 3, 2026
rhewett-nv
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
from
September 4, 2026 00:30
1c7679f to
ec56816
Compare
rhewett-nv
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
from
September 4, 2026 03:58
ec56816 to
85cc56d
Compare
ahmadki
approved these changes
Sep 4, 2026
Member
|
/ok to test 85cc56d |
ahmadki
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
from
September 4, 2026 14:17
85cc56d to
a998266
Compare
Signed-off-by: Russell Hewett <rhewett@nvidia.com>
Signed-off-by: Russell Hewett <rhewett@nvidia.com>
rhewett-nv
force-pushed
the
rhewett/pr6-slurm-launch-examples
branch
from
September 4, 2026 14:44
a998266 to
91225cb
Compare
Base automatically changed from
rhewett/pr5-slurm-resource-attrs-cli
to
main
September 4, 2026 14:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds self-contained Slurm launch examples that use the Lens CLI to set resource
attributes, emit launch spans, and write local collector output for plain Slurm
and NVRx workflows.
Issues
N/A
Usage
Before your PR is "Ready for review"
Pre checks:
git commit -s) per the DCO.tests/for any behavior change.pytestandpre-commit run --all-fileslocally; both pass.docs/andREADME.mdwhere behavior, configuration, or public API changed._fallbacks.pyfiles in Megatron-LM / RL / Gym.Additional information
Validation on
pr6-slurm-launch-examples:../.venv/bin/pre-commit run --all-files: passedPYTHONPATH=src ../.venv/bin/python -m pytest -q:265 passed, 7 warnings../.venv/bin/python -m compileall -q src tests examples/slurm-launch/mock_workload.py: passed../.venv/bin/ruff check examples/slurm-launch/mock_workload.py: passedbash -non all five.sbatchexamples: passedgit diff --check pr5-slurm-resource-attrs-cli..pr6-slurm-launch-examples: passednpm --prefix docs/fern run check: passed with0 errors; one warning because the unauthenticated redirects check is skipped withoutfern login/FERN_TOKENNotes:
03f9b54 docs(examples): add Slurm launch examples.pr6-slurm-launch-examplesandschema-v01-resource-attrspoint at the samecommit.
examples/slurm-launch/files; it does not change Lensruntime code, tests, packaging, docs-site pages, or fallback surfaces.
nemo-lens set-slurm-resource-attrs --stage sbatchin thesbatch context and
--stage taskinsidesrun.sacct; the taskcontext inherits
LENS_SLURM_SLUIDandLENS_SLURM_ARRAY_SLUID.task collector endpoint
http://localhost:4317.ft_launcheris already installed and onPATHinthe container.
is expected for this test shape.