Repository navigation
Lambda: register Docker's nvidia runtime, retry dropped ssh, show Docker's error - #68
AryansajalGoyal wants to merge 1 commit into
Conversation
…ker's error - setup.sh: check Docker's runtimes for exactly `nvidia`; if missing (Lambda Stack ships the toolkit but does not register it), run `nvidia-ctk runtime configure --runtime=docker` and restart Docker, else fail plainly. - pack.py: retry a remote step when ssh drops the connection (exit 255) on a fresh VM, about 3 minutes; failure messages keep the lines just before `ERROR:` so Docker's own reason is shown. - tests for all three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
GPU labs on Lambda Cloud: what went wrong and how we fixed it What we were trying to do The problems, in order
Does this affect Shadeform (H100), which already worked? Money Still to confirm |
Fixes three problems found while launching
gpu-notebookson a Lambda Cloud A100 (mode: mig).Changes
setup.sh:partitionnow checks Docker's runtimes for exactlynvidia(the old check greppeddocker infofor the word, which passed on Lambda Stack although--runtime=nvidiafailed withunknown or invalid runtime name: nvidia). If it is missing, it runsnvidia-ctk runtime configure --runtime=dockerand restarts Docker; ifnvidia-ctkis absent or the runtime still is not there, it fails with a plain message. When the runtime is already registered (Shadeform, Nebius), nothing changes.pack.py_remote: retries a remote step when ssh exits 255 with a dropped-connection error (Connection closed by ... port 22right after the first login on a fresh VM), every 10 s for about 3 minutes. Real command failures still fail at once. The VM scripts are idempotent, so a retry is safe.pack.py_failure: keeps up to two stderr lines just before the script'sERROR:line (after it, so the 400-char cap never cuts theERROR:line), so Docker's own reason reaches the user. Still scrubbed.Tests
tests/test_gpu_mig_script.py: runtime present → untouched; missing → registered, Docker restarted once, rerun is a no-op; missing with nonvidia-ctk→ plain error.tests/test_gpu_notebooks.py: dropped ssh is retried; ssh that keeps dropping still fails with the ssh error; Docker's reason appears in the failure.pytest tests/test_gpu_*.py -q: 318 passed.scripts/check_no_pii.pypasses.launch --dry-runof the Shadeform example unchanged.Not verified
No real launch after the fix. Still open on Lambda: that
nvidia-ctkis present on the Lambda Stack image, and A100 MIG past this point. A plain-language explanation is in the first comment.🤖 Generated with Claude Code