Skip to content

Add RunPod as a compute cloud and a gpu-notebooks-container pack - #53

Merged
kchandan merged 1 commit into
mainfrom
runpod-provider
Nov 20, 2026
Merged

kchandan merged 1 commit into
mainfrom
runpod-provider

Conversation

@kchandan

Copy link
Copy Markdown
Member

What

  • RunPod provider (--cloud runpod, API v2): GPU offers from the catalog (kind=container, vendors runpod-secure and runpod-community), pod create/find/get/terminate, SSH key passed in PUBLIC_KEY at creation (the account's key list is never rewritten), account keys listed by fingerprint.
  • New pack gpu-notebooks-container: creates a pod with RunPod's own JupyterLab (startJupyter, JUPYTER_PASSWORD, port 8888/http) and reports the proxy URL and password. It installs nothing in the container and never logs in to it. Only clouds with Provider.builtin_jupyter are accepted. A failed launch deletes the pod.
  • Provider hooks: HostSpec.ports, HostSpec.jupyter_password, Provider.web_url, Provider.builtin_jupyter.
  • examples/launch.runpod.example.yaml and docs (docs/compute.md, docs/gpu-notebooks.md).

Why a separate pack

A RunPod pod is a container: no Docker, and nvidia-smi -mig 1 answers "Insufficient Permissions" (seen on a real pod), so gpu-notebooks (MIG + Docker) cannot use it, and gpu-notebooks still skips container offers. A first design installed a second JupyterLab inside the pod and failed on a real pod (front-end assets missing), so this one uses the cloud's own.

Changes to existing behaviour

  • gpu-notebooks destroy/billing hints name the pack that was launched (they hard-coded gpu-notebooks).
  • compute offers prints a container-aware next step and no MIG estimate in the LABS column. The offers JSON shape is unchanged.
  • tests/test_nl.py: prompt size limit 3500 to 3700. Any additional pack crosses 3500 (it was 3551 even with a one-line summary). Say if you would rather shrink the prompt than raise the limit.
  • The README is untouched on purpose.

Verified

  • Full suite: 993 passed, 1 failed (test_gpu_shared_key.py::test_a_cloud_with_no_key_list...). That test also fails on a clean main on my machine because a Nebius CLI login is present, so it is not caused by this change. check_no_pii.py passes.
  • On a real RunPod account: API key and scopes, catalog offers, SSH key and pod list shapes, pod creation, SSH as root via PUBLIC_KEY, the https://<pod>-<port>.proxy.runpod.net URL pattern, and auto-delete of the pod when a launch fails.

Not verified

RunPod's own JupyterLab starting from startJupyter and accepting the password labagent sets. RunPod's docs do not say whether that login is a password or a token, so the report prints the password and a ?token= link. The LABAGENT_TAGS env round trip used by find is covered by a fake only. Please treat the first real launch of the example file as the remaining test.

Created by LabAgent

RunPod provider (API v2): GPU offers from the catalog (kind=container,
runpod-secure and runpod-community), pods created with the SSH key in
PUBLIC_KEY, find/get/terminate, and the account's SSH keys listed by
fingerprint. Registered as `--cloud runpod`.

New pack gpu-notebooks-container: a pod with the cloud's own JupyterLab
(startJupyter, JUPYTER_PASSWORD, port 8888/http) and the cloud's proxy URL.
It installs nothing in the container and never logs in to it. Only clouds
with Provider.builtin_jupyter are accepted. A failed launch deletes the pod.

Provider hooks: HostSpec.ports, HostSpec.jupyter_password,
Provider.web_url, Provider.builtin_jupyter. gpu-notebooks still skips
container offers; its destroy hint now names the pack that was launched.
The offers hint and LABS column are container-aware (JSON shape unchanged).

Includes examples/launch.runpod.example.yaml and docs. The natural-language
prompt size limit in tests/test_nl.py goes from 3500 to 3700 for the new
pack. Verified on a real pod: pod creation, SSH, and the proxy URL. Not yet
verified: RunPod's own JupyterLab accepting the generated password.

Created by LabAgent
https://becloudready.com/

Co-Authored-By: LabAgent <info@becloudready.com>
@kchandan
kchandan merged commit cd2252d into main Nov 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant