Set 5, phase 1 (step 0): checkpoint verification, ADM FID-4K for SiT, JiT/encoder load checks, report
9d945e1 verified Download set5/code/keepalive.py from LamTNguyen/repa-representation-probing: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/datasets/LamTNguyen/repa-representation-probing/resolve/main/set5/code/keepalive.py
- Command line
-
hf download hf://datasets/LamTNguyen/repa-representation-probing/set5/code/keepalive.py
-
curl -L -o keepalive.py https://huggingface.co/datasets/LamTNguyen/repa-representation-probing/resolve/main/set5/code/keepalive.py
750 Bytes
| # Kernel keep-alive: runs as a cell (colab exec via stdin) while a detached job runs, so Colab sees an active kernel. | |
| # Prints the job's latest progress line once a minute; ends when no process matches PATTERN. | |
| import subprocess | |
| import time | |
| PATTERN = "run_step0.py" | |
| LOG = "/content/set5/logs/chain.log" | |
| while subprocess.run(["pgrep", "-f", PATTERN], capture_output=True).returncode == 0: | |
| 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"), "JOB FINISHED:", PATTERN, flush=True) | |
| print(subprocess.run(f"tail -n 6 {LOG}", shell=True, capture_output=True, text=True).stdout, flush=True) | |