Burst

From nebius/nebius-physical-ai · View interactive version

Burst is an AI agent skill from the GitHub repository nebius/nebius-physical-ai. Use to run one gang-scheduled multi-node GPU job through SkyPilot without authoring a workflow — `npa burst submit` wires torchrun rendezvous across nodes, while `submit-yaml` supports one task, `${VAR}` substitution, and optional generic registry credentials.

How to use this skill

Skill file

Burst (one coupled multi-node GPU job)

Burst is the escape hatch for a single distributed task: gang-schedule N

nodes, run one command under torchrun, get logs, exit. It is deliberately not a

workflow surface — there is no plan, no stage graph, no decision artifact, and

nothing for a toolRef to describe.

If you need a second stage, you need a workflow. Author an

npa.workflow/v0.0.1 spec under workflows/ instead

(skills/workflows/author-npa-workflow/SKILL.md). submit-yaml rejects

multi-task documents, and a guardrail pins the example set so a pipeline cannot

quietly grow here.

Submit a distributed run directly

npa burst submit \
  --image <registry>/<image>:<tag> \
  --nodes 2 \
  --gpu-per-node H100:8 \
  --entrypoint "python train.py --config configs/run.yaml" \
  --name <job-name> \
  --json

All four of --image, --nodes, --gpu-per-node, --entrypoint are required.

A plain image reference is rendered as docker:<image>. --json prints only the

serialized job handle, which is what you want when scripting.

The entrypoint runs under torchrun, not directly. Burst derives the

rendezvous from SkyPilot's node environment and exports MASTER_ADDR,

MASTER_PORT, WORLD_SIZE, and RANK, then execs torchrun with --nnodes,

--node-rank, and --master-addr already set. Two consequences:

message if it is missing.

in another torchrun. Pass the training command as if it were a single-process

entrypoint.

--gpu-per-node is a SkyPilot accelerator spec such as L40S:1 or H100:8, and

it is per node: all GPUs of one task land on one node. Confirm the name the

cluster actually advertises with npa workbench workflow gpus --cluster <name> —

Kubernetes names accelerators after node labels, so the spec string is discovered

rather than guessed.

Submit a single-task YAML

npa burst submit-yaml <task.yaml> \
  --name <job-name> \
  --var NPA_RUN_ID=<run-id> \
  --var NPA_OUTPUT_URI=s3://<bucket>/<prefix>/<run-id>/ \
  --json

submit-yaml loads one SkyPilot task document, substitutes ${VAR} placeholders

from repeated --var/-v, and **refuses to submit while any placeholder is

unresolved** — an unsubstituted ${VAR} is an error, never a literal sent to the

cluster. --name defaults to the task name in the YAML.

Unlike the npa.workflow renderer, ${VAR} placeholders are the intended surface

here. The committed example keeps them precisely so no concrete registry id,

bucket name, or run id is ever baked in:

npa/src/npa/burst/examples/isaac-lab-cosmos-sdg-burst-smoke.yaml.

Registry authentication

Official NPA GHCR development and release images pull anonymously. Docker access

on your dev VM does not authenticate freshly created SkyPilot worker VMs to an

optional operator-controlled private registry. For that BYOF case, set

SKYPILOT_DOCKER_SERVER, SKYPILOT_DOCKER_USERNAME, and

SKYPILOT_DOCKER_PASSWORD for the image's exact registry host; submit-yaml

forwards only that explicit credential set. NPA never mints a provider registry

token. Kubernetes retries image pulls indefinitely, so bad BYOF credentials can

look like a job that never starts rather than one that fails.

Watch and collect

npa burst status <job-id-or-handle-json>
npa burst logs <job-id-or-handle-json> --follow
npa burst logs <job-id-or-handle-json> --tail 200

Both accept either a job ID or the serialized handle --json printed at submit.

--config <path> points at a specific SkyPilot global config when you are not

using the default runtime.

Gotchas

It cannot spread one task's M GPUs across nodes. Asking for more GPUs per node

than a node has will not schedule, and this presents as a pending job rather

than a rejection.

capacity leaves it pending indefinitely, not running degraded.

status before assuming the cluster is full, and cancel work you no longer

want — see skills/atomic/teardown-and-cost/SKILL.md.

artifacts/list surface and no resume. If you want durable per-stage state,

resume, and lineage, that is the workflow runtime, not burst.

by npa/tests/guardrails/test_burst_examples.py; a new file must first answer

"why is this not a spec?".

Verify

npa/.venv/bin/python -m pytest npa/tests/guardrails/test_skills_index.py \
  npa/tests/guardrails/test_burst_examples.py -q
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.