launch-nemo-rl
БесплатноБез исполняемых скриптовНе проверенPlaybook for launching, monitoring, stopping, and debugging NeMo-RL recipes on a Kubernetes cluster via the nrl-k8s CLI. Covers ephemeral vs long-lived…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
launch-nemo-rl — running NeMo-RL recipes on Kubernetes via nrl-k8s
This is the playbook for the nrl-k8s CLI at infra/nrl_k8s/. Follow it when the user asks to launch / iterate / debug a NeMo-RL recipe on a Kubernetes cluster. Verify current state (kubectl, git log, the recipe + infra files) before acting — the cluster is shared and the cost of a wrong action is high.
1. One command, two modes
There is a single top-level submission command: nrl-k8s run. It has two lifecycle modes.
| Mode | Invocation | When to use | Cluster after? |
|---|---|---|---|
| Ephemeral (default) | nrl-k8s run |
One-shot. KubeRay applies a RayJob, runs, tears the cluster down. Best for most runs. | No (auto) |
| Long-lived | nrl-k8s run --raycluster |
Dev loop. Reuses a matching live cluster, applies if absent, warns + reuses on drift (pass --recreate to replace). Then submits daemons and training. First-choice for iteration. |
Yes |
Ask: Do I need this cluster after the run? If yes, use --raycluster. Otherwise use the default (ephemeral).
The rest of the CLI is observability / stage-by-stage control:
| Command | Purpose |
|---|---|
nrl-k8s check |
Validate a recipe + infra pair; optionally write the fully-resolved manifests (-o). |
nrl-k8s status |
Per-role RayCluster state, head pod phase, worker pod phases, daemon job status. |
nrl-k8s cluster up/down/list/dashboard |
Manage RayClusters independently of a run (e.g. render a manifest with --dry-run). |
nrl-k8s job list/logs/stop |
Observability over Ray Jobs already submitted to a role's cluster. |
nrl-k8s logs |
Tail a role's pod / daemon logs without needing a submission id. |
2. Recipe + infra pair
Every launch takes two files. Pass the infra with --infra, not merged inline:
nrl-k8s run infra/nrl_k8s/examples/<recipe>.yaml \
--infra infra/nrl_k8s/examples/<recipe>.<profile>.infra.yaml
- Recipe (e.g.
qwen3_30b_math_8n_4gpu.yaml) — NeMo-RL config: model, GRPO/SFT knobs,cluster.{gpus_per_node,num_nodes}. Usesdefaults:to inherit fromexamples/configs/recipes/llm/.... - Infra (e.g.
*.<profile>.infra.yaml) — K8s/Ray shape: namespace, image, service account, RayCluster spec underkuberay:, optional Deployments underdeployments:,submit.submitter,launch.{mode,codeSource,codePath,entrypoint}. Pair names follow<recipe>.<profile>[.prod].infra.yamlwhere<profile>names the hardware target (e.g.gb300).
Example pairs in infra/nrl_k8s/examples/ — read the neighbouring files to see the current conventions for the target profile.
3. Long-lived mode flags
Three independent dimensions. --mode is a macro that picks defaults; individual flags override it.
--mode interactive → --submitter portForward --code-source upload (tails logs)
--mode batch → --submitter exec --code-source image (returns after nohup)
- Submitter:
portForwarduseskubectl port-forward+ Ray Job SDK (gets asubmission_idthe dashboard tracks).execuseskubectl exec+nohupon the head pod (no submission_id; driver appears astype=DRIVERin the dashboard). - Code source:
uploadstages a working_dir from the laptop (Ray 100 MiB cap).image/lustreexpect code on the pod's filesystem — paired with--code-path(typically/opt/nemo-rl), which is a subPath of the shared-filesystem PVC mount in the standard infra examples. - Wait:
--waittails logs until terminal;--no-waitreturns as soon as the driver is running.
Other long-lived-only flags:
--replace— stop any running training / daemon job before submitting new ones (suffixes daemon submissionIds with a timestamp so Ray accepts the resubmit).--recreate— delete + re-apply a RayCluster whose live spec has drifted from the rendered manifest (default is warn + reuse).--skip-daemons— bring up all declared clusters but only submit training. Use on disagg recipes where gym/generation are already healthy.
Gotcha: on infra where the entrypoint does cd /opt/nemo-rl (or another in-image / Lustre path) and loads the recipe from there, *
Установить launch-nemo-rl в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobEditWriteВложенные файлы
FAQ
Что делает скилл launch-nemo-rl?
Playbook for launching, monitoring, stopping, and debugging NeMo-RL recipes on a Kubernetes cluster via the nrl-k8s CLI. Covers ephemeral vs long-lived RayCluster modes, iterating on runs, and debugging hung or failed training jobs.
Как установить скилл launch-nemo-rl?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл launch-nemo-rl запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub