Repository navigation
Add RunPod as a compute cloud and a gpu-notebooks-container pack - #53
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
--cloud runpod, API v2): GPU offers from the catalog (kind=container, vendorsrunpod-secureandrunpod-community), pod create/find/get/terminate, SSH key passed inPUBLIC_KEYat creation (the account's key list is never rewritten), account keys listed by fingerprint.gpu-notebooks-container: creates a pod with RunPod's own JupyterLab (startJupyter,JUPYTER_PASSWORD, port8888/http) and reports the proxy URL and password. It installs nothing in the container and never logs in to it. Only clouds withProvider.builtin_jupyterare accepted. A failed launch deletes the pod.HostSpec.ports,HostSpec.jupyter_password,Provider.web_url,Provider.builtin_jupyter.examples/launch.runpod.example.yamland docs (docs/compute.md,docs/gpu-notebooks.md).Why a separate pack
A RunPod pod is a container: no Docker, and
nvidia-smi -mig 1answers "Insufficient Permissions" (seen on a real pod), sogpu-notebooks(MIG + Docker) cannot use it, andgpu-notebooksstill 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-notebooksdestroy/billing hints name the pack that was launched (they hard-codedgpu-notebooks).compute offersprints 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.Verified
test_gpu_shared_key.py::test_a_cloud_with_no_key_list...). That test also fails on a cleanmainon my machine because a Nebius CLI login is present, so it is not caused by this change.check_no_pii.pypasses.PUBLIC_KEY, thehttps://<pod>-<port>.proxy.runpod.netURL pattern, and auto-delete of the pod when a launch fails.Not verified
RunPod's own JupyterLab starting from
startJupyterand 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. TheLABAGENT_TAGSenv round trip used byfindis covered by a fake only. Please treat the first real launch of the example file as the remaining test.Created by LabAgent