From 726baea51d52ebd4f7dbb06116c1d62843363703 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 11:39:12 -0400 Subject: [PATCH] exp48 pod launcher: REST v1 PodCreateInput field names, browser UA (Cloudflare 1010) Co-Authored-By: Claude Opus 5.5 --- scripts/exp48_pod.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/exp48_pod.py b/scripts/exp48_pod.py index 76eacc3..06db27e 100644 --- a/scripts/exp48_pod.py +++ b/scripts/exp48_pod.py @@ -16,7 +16,8 @@ args = ap.parse_args() key = [l.split("=", 1)[1].strip() for l in open(pathlib.Path.home() / ".hermes/.env") if l.startswith("RUNPOD_API_KEY=")][0] -H = {"Authorization": f"Bearer {key}", "Content-Type": "application/json"} +H = {"Authorization": f"Bearer {key}", "Content-Type": "application/json", + "User-Agent": "Mozilla/5.0"} # urllib default UA gets Cloudflare 1010 REPO_URL = "https://github.com/terrafying/ai-torture-chamber.git" assert " " not in REPO_URL and REPO_URL.endswith(".git"), REPO_URL @@ -51,12 +52,14 @@ def rest(method, path, body=None): sys.exit(f"HTTP {e.code} on {method} {path}: {e.read().decode()[:1200]}") pod = rest("POST", "pods", { - "podName": "exp48-emotion-binding", - "containerImage": "pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime", - "gpuTypeIds": [args.gpu], "gpuCount": 1, "cloudType": "SECURE", + # REST v1 PodCreateInput (schema: https://rest.runpod.io/v1/openapi.json) + "name": "exp48-emotion-binding", + "imageName": "pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime", + "gpuTypeIds": [args.gpu, "NVIDIA L40S"], "gpuTypePriority": "custom", + "gpuCount": 1, "cloudType": "SECURE", "ports": ["8000/http"], "volumeInGb": 80, "volumeMountPath": "/workspace", "containerDiskInGb": 40, "env": {"HF_HOME": "/workspace/hf"}, - "args": ["/bin/bash", "-c", BOOTSTRAP], "startSsh": False, + "dockerEntrypoint": ["/bin/bash", "-c"], "dockerStartCmd": [BOOTSTRAP], }) pid = pod.get("id") pathlib.Path("runs/exp48").mkdir(parents=True, exist_ok=True)