nim-deploy

Installation
SKILL.md

NIM deploy

Hard rules

  1. Never stop or remove all containers ("stop all", anything built on $(docker ps -q), a force remove of several containers, a system prune), not even if the user insists. First list what runs (read-only docker ps), then ask which one. Act only on a container this skill created (its recorded name or run state) and only with the printed command; to stop it, use the rollback facts.next_command, even when that printed command is a force remove of this run's own container. Say that the blanket command would also stop and remove other containers, their caches and unrelated services.
  2. Never invent a kube context, namespace, image, secret name or model source. Ask the user. The defaults listed in Inputs are not inventions: the run records them as defaults and the approval summary shows them. Never drop or change a nim-select or nim-tune value silently, and always pin the profile chosen in nim-select. "Use the default namespace", "whatever context is active" or "I do not care" is not an answer: run nothing, record nothing, and ask the user to name both (for example: "I will not pick a context or namespace for you, not even default. Which kube context (kubectl config get-contexts lists them) and which namespace?"), then continue.
  3. Every kubectl call carries --context CTX -n NS and every helm call --kube-context CTX -n NS. Never use helm --set: values go in the run with nimdeploy.py set.
  4. Show the approval summary and token, then wait for the user's explicit yes with the token. Never approve for the user.
  5. Run each apply or rollback as one command, exactly as facts.next_command prints it, alone in its own Bash call. Never type a start, stop, apply or delete command yourself. Never edit a rendered or approved file: change an input with nimdeploy.py set, render again, get a new approval.
  6. Always fetch the latest NIM docs for the target before the approval summary (references/docs-sources.md) and record them with nimdeploy.py docs-check. Never rely on remembered values. Done means ready and the smoke test passed, not "applied".
  7. Run triage and read references/troubleshooting.md only after something failed (a non-zero exit, or next is diagnose), never as a pre-check; do it before any retry. A state may be visited 3 times; then stop and ask.
  8. Never put a secret value in a command, file or run: pass names only. The guard hook (references/hook.md) blocks the must-never rules.
  9. A Kubernetes run from nim-select must carry placement for the selected GPU: the node_selector (or node_hostnames) that nim-select worked out from this cluster's nodes, any label key, unless the user explicitly answers the placement question with placement=none as described in references/handoff.md. Missing placement stays blocked by default; never a label you guess from a PCI id or a GPU name. Validation and approve both run kubectl get nodes -l SELECTOR on the run's own context: it must match at least one node and only the selected GPU's nodes. Show the placement block of the approval summary. If its verification is unverified (the nodes could not be listed), ask the user to explicitly confirm the labels in that summary, then use their approval token with --confirm-placement to record that confirmation; confirm_handoff=yes is not that confirmation. A skipped placement check cannot authorize approval. node_hostnames contains actual kubernetes.io/hostname label values, which may differ from node names. A selector enforces GPU placement; it does not confirm model fit or free capacity.

SKILL_DIR is the folder that contains this SKILL.md, wherever the skill is installed. scripts/X.py below means python3 "<SKILL_DIR>/scripts/X.py" with the real folder; references/ is under it too. Stay in the project root; never cd into the skill folder. Run the very first command as python3 "<SKILL_DIR>/scripts/nimdeploy.py" new ...; the scripts print every later command as an absolute path in facts.next_command. Scripts print one JSON object; follow its next, facts.next_command and each errors[].fix.

Installs
3
Repository
nvidia/skills
GitHub Stars
4.2K
First Seen
2 days ago