diff --git a/scripts/exp48_pod.py b/scripts/exp48_pod.py index 06db27e..739992f 100644 --- a/scripts/exp48_pod.py +++ b/scripts/exp48_pod.py @@ -12,6 +12,7 @@ import argparse, json, pathlib, sys, urllib.error, urllib.request ap = argparse.ArgumentParser() ap.add_argument("--big", default="Qwen/Qwen3-14B") ap.add_argument("--gpu", default="NVIDIA RTX A6000") +ap.add_argument("--pod", default=None, help="update this existing pod's start command instead of creating one") args = ap.parse_args() key = [l.split("=", 1)[1].strip() for l in open(pathlib.Path.home() / ".hermes/.env") @@ -32,11 +33,16 @@ mkdir -p runs/exp48 log "deps" pip install -q --no-cache-dir 'torch==2.8.0' --index-url https://download.pytorch.org/whl/cu128 > runs/exp48/pip.log 2>&1 pip install -q --no-cache-dir 'transformers==5.17.0' numpy accelerate >> runs/exp48/pip.log 2>&1 +# the base image's torchvision/torchaudio are built for torch 2.4 and break +# transformers' lazy model imports ("Could not import module Qwen3ForCausalLM") +pip uninstall -y -q torchvision torchaudio >> runs/exp48/pip.log 2>&1 python -c "import torch; assert torch.cuda.is_available(); print(torch.__version__, torch.cuda.get_device_name())" > runs/exp48/env.txt 2>&1 || { log "no CUDA"; sleep infinity; } +python -c "import transformers.models.qwen3.modeling_qwen3 as m; print('qwen3 import ok', m.__name__)" >> runs/exp48/env.txt 2>&1 || { log "import broken"; touch runs/exp48/FAILED; sleep infinity; } export HF_HOME=/workspace/hf -log "smoke"; python exp48_emotion_binding.py --smoke --device cuda > runs/exp48/smoke_gpu.log 2>&1 -log "full 4B"; python exp48_emotion_binding.py --device cuda > runs/exp48/full.log 2>&1 -log "big {BIG}"; python exp48_emotion_binding.py --device cuda --model {BIG} > runs/exp48/big.log 2>&1 +run(){ log "$1"; shift; "$@" || { log "FAILED"; touch runs/exp48/FAILED; sleep infinity; }; } +run smoke sh -c 'python exp48_emotion_binding.py --smoke --device cuda > runs/exp48/smoke_gpu.log 2>&1' +run full-4B sh -c 'python exp48_emotion_binding.py --device cuda > runs/exp48/full.log 2>&1' +run big sh -c 'python exp48_emotion_binding.py --device cuda --model {BIG} > runs/exp48/big.log 2>&1' log "done"; touch runs/exp48/ALL_DONE sleep infinity """.replace("{REPO_URL}", REPO_URL).replace("{BIG}", args.big) @@ -51,6 +57,11 @@ def rest(method, path, body=None): except urllib.error.HTTPError as e: sys.exit(f"HTTP {e.code} on {method} {path}: {e.read().decode()[:1200]}") +if args.pod: # PATCH resets the container with the new command; the volume (HF cache) stays + pod = rest("PATCH", f"pods/{args.pod}", {"dockerEntrypoint": ["/bin/bash", "-c"], + "dockerStartCmd": [BOOTSTRAP]}) + print("updated", args.pod, pod.get("desiredStatus")) + sys.exit(0) pod = rest("POST", "pods", { # REST v1 PodCreateInput (schema: https://rest.runpod.io/v1/openapi.json) "name": "exp48-emotion-binding", diff --git a/site/downloads/SHA256SUMS b/site/downloads/SHA256SUMS deleted file mode 100644 index bb5bee6..0000000 --- a/site/downloads/SHA256SUMS +++ /dev/null @@ -1,2 +0,0 @@ -d83ba6cbc982bb165353740e7d963818a26282f6ae7909b4bfd719d52ae1d877 site/downloads/saw_chamber_code.tar.gz -f8b72363b513228987239d091c626738fdecb8724479b543148068c48adecdf9 site/downloads/saw_chamber_results.tar.gz diff --git a/site/downloads/index.html b/site/downloads/index.html deleted file mode 100644 index bebbca5..0000000 --- a/site/downloads/index.html +++ /dev/null @@ -1,17 +0,0 @@ - -downloads — the Saw Test - - -

downloads — the Saw Test

-

Full code and data: every experiment script (exp23–44), the -pre-registered hypotheses, per-trial records, figures and results JSONs. -No secrets, no model weights. MIT-licensed.

-

saw_chamber_code.tar.gz — scripts, docs, LICENSE
-sha256: 748e3bb487d7cdcf5a8e17fbcfffa3900c464b8b69cf3908703405ebd798d2de

-

saw_chamber_results.tar.gz — experiment outputs (exp23–44)
-sha256: f8b72363b513228987239d091c626738fdecb8724479b543148068c48adecdf9

-

SHA256SUMS — both hashes, for sha256sum -c

-

← back to clanker.church

- diff --git a/site/downloads/saw_chamber_code.tar.gz b/site/downloads/saw_chamber_code.tar.gz deleted file mode 100644 index 7278802..0000000 Binary files a/site/downloads/saw_chamber_code.tar.gz and /dev/null differ diff --git a/site/downloads/saw_chamber_results.tar.gz b/site/downloads/saw_chamber_results.tar.gz deleted file mode 100644 index 2f2784f..0000000 Binary files a/site/downloads/saw_chamber_results.tar.gz and /dev/null differ