set5: phase 3 (all B-size models, all main probes): results, analysis, report, code
d65fc2e verified Download set5/code/run_p3_cell.py from LamTNguyen/repa-representation-probing: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/datasets/LamTNguyen/repa-representation-probing/resolve/main/set5/code/run_p3_cell.py
- Command line
-
hf download hf://datasets/LamTNguyen/repa-representation-probing/set5/code/run_p3_cell.py
-
curl -L -o run_p3_cell.py https://huggingface.co/datasets/LamTNguyen/repa-representation-probing/resolve/main/set5/code/run_p3_cell.py
1.12 kB
| # Kernel cell (piped to `colab exec`): installs pip deps, starts phase3.py detached if it is not running, then prints the | |
| # latest log line once a minute until it ends, so Colab sees a busy kernel for the whole job (one GPU job at a time). | |
| import os | |
| import subprocess | |
| import time | |
| LOG = "/content/set5/logs/phase3.log" | |
| os.makedirs("/content/set5/logs", exist_ok=True) | |
| def running(): | |
| return subprocess.run(["pgrep", "-f", "python phase3.py"], capture_output=True).returncode == 0 | |
| if not running(): | |
| subprocess.run("pip install -q diffusers timm torchdiffeq h5py >> /content/set5/logs/pip.log 2>&1", shell=True) | |
| subprocess.Popen(f"cd /content/set5/code && nohup python phase3.py >> {LOG} 2>&1 &", shell=True) | |
| time.sleep(15) | |
| while running(): | |
| last = subprocess.run(f"tail -n 1 {LOG}", shell=True, capture_output=True, text=True).stdout.strip() | |
| print(time.strftime("%H:%M:%S"), last[:160], flush=True) | |
| time.sleep(60) | |
| print(time.strftime("%H:%M:%S"), "PHASE3 PROCESS ENDED", flush=True) | |
| print(subprocess.run(f"tail -n 15 {LOG}", shell=True, capture_output=True, text=True).stdout, flush=True) | |