ShayManor commited on
Commit
1c77b8f
·
verified ·
1 Parent(s): 522c70f

results: jobs/20261010-004932-large-base-pp/** index/episodes.jsonl leaderboard/*

Browse files
Files changed (35) hide show
  1. .gitattributes +1 -0
  2. results/index/episodes.jsonl +2 -2
  3. results/jobs/20261010-004932-large-base-pp/breakdown.json +0 -0
  4. results/jobs/20261010-004932-large-base-pp/episodes.jsonl +3 -0
  5. results/jobs/20261010-004932-large-base-pp/gautschi/0/done.txt +0 -0
  6. results/jobs/20261010-004932-large-base-pp/gautschi/0/episodes.json +0 -0
  7. results/jobs/20261010-004932-large-base-pp/gautschi/0/gautschi_launch.py +145 -0
  8. results/jobs/20261010-004932-large-base-pp/gautschi/0/sbatch.sh +5 -0
  9. results/jobs/20261010-004932-large-base-pp/gautschi/1/done.txt +0 -0
  10. results/jobs/20261010-004932-large-base-pp/gautschi/1/episodes.json +0 -0
  11. results/jobs/20261010-004932-large-base-pp/gautschi/1/gautschi_launch.py +145 -0
  12. results/jobs/20261010-004932-large-base-pp/gautschi/1/sbatch.sh +5 -0
  13. results/jobs/20261010-004932-large-base-pp/gautschi/2/done.txt +0 -0
  14. results/jobs/20261010-004932-large-base-pp/gautschi/2/episodes.json +0 -0
  15. results/jobs/20261010-004932-large-base-pp/gautschi/2/gautschi_launch.py +145 -0
  16. results/jobs/20261010-004932-large-base-pp/gautschi/2/sbatch.sh +5 -0
  17. results/jobs/20261010-004932-large-base-pp/gautschi/3/done.txt +0 -0
  18. results/jobs/20261010-004932-large-base-pp/gautschi/3/episodes.json +0 -0
  19. results/jobs/20261010-004932-large-base-pp/gautschi/3/gautschi_launch.py +145 -0
  20. results/jobs/20261010-004932-large-base-pp/gautschi/3/sbatch.sh +5 -0
  21. results/jobs/20261010-004932-large-base-pp/gautschi/4/done.txt +0 -0
  22. results/jobs/20261010-004932-large-base-pp/gautschi/4/episodes.json +0 -0
  23. results/jobs/20261010-004932-large-base-pp/gautschi/4/gautschi_launch.py +145 -0
  24. results/jobs/20261010-004932-large-base-pp/gautschi/4/sbatch.sh +5 -0
  25. results/jobs/20261010-004932-large-base-pp/gautschi/5/done.txt +0 -0
  26. results/jobs/20261010-004932-large-base-pp/gautschi/5/episodes.json +0 -0
  27. results/jobs/20261010-004932-large-base-pp/gautschi/5/gautschi_launch.py +145 -0
  28. results/jobs/20261010-004932-large-base-pp/gautschi/5/sbatch.sh +5 -0
  29. results/jobs/20261010-004932-large-base-pp/gautschi/6/done.txt +74 -0
  30. results/jobs/20261010-004932-large-base-pp/gautschi/6/episodes.json +0 -0
  31. results/jobs/20261010-004932-large-base-pp/gautschi/6/gautschi_launch.py +145 -0
  32. results/jobs/20261010-004932-large-base-pp/gautschi/6/sbatch.sh +5 -0
  33. results/jobs/20261010-004932-large-base-pp/job.json +43 -0
  34. results/jobs/20261010-004932-large-base-pp/summary.json +156 -0
  35. results/leaderboard/large-3__ded6f8168dff.json +46 -0
.gitattributes CHANGED
@@ -69,3 +69,4 @@ results/jobs/20261009-100135-large-ilqr-fast/gautschi/1/episodes.json filter=lfs
69
  results/jobs/20261009-100135-large-ilqr-fast/gautschi/3/episodes.json filter=lfs diff=lfs merge=lfs -text
70
  results/jobs/20261009-100135-large-ilqr-fast/gautschi/2/episodes.json filter=lfs diff=lfs merge=lfs -text
71
  results/index/episodes.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
69
  results/jobs/20261009-100135-large-ilqr-fast/gautschi/3/episodes.json filter=lfs diff=lfs merge=lfs -text
70
  results/jobs/20261009-100135-large-ilqr-fast/gautschi/2/episodes.json filter=lfs diff=lfs merge=lfs -text
71
  results/index/episodes.jsonl filter=lfs diff=lfs merge=lfs -text
72
+ results/jobs/20261010-004932-large-base-pp/episodes.jsonl filter=lfs diff=lfs merge=lfs -text
results/index/episodes.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f197aa385821a73d4027f90b988070076dd3fdbfd507b9dadcb33b99a45579f
3
- size 17149774
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea45e36706d978ccfbf4646b1b2ed12264bc3140bdb049e1352e8a0a27677bf0
3
+ size 22078010
results/jobs/20261010-004932-large-base-pp/breakdown.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/episodes.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e85410e1b6cc60ea8331df173e28ed7102f05ceea5392630ce7e13a6a79cdca
3
+ size 42247742
results/jobs/20261010-004932-large-base-pp/gautschi/0/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/0/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/0/gautschi_launch.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ if gpu is None and os.path.exists(os.path.join(stack, "mpc_cuda", "libmpc_cuda.so")):
24
+ cuda = ["--env", f"MPC_CUDA_LIB={CUDA_LIB}"] # CPU node: the library's native iLQR solve still loads; its MPPI falls back to numpy
25
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
26
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
27
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
28
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
29
+
30
+
31
+ def parse_smi(text):
32
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
33
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
34
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
35
+
36
+
37
+ def _solver(logdir):
38
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
39
+ lines = []
40
+ for dp, _, fns in os.walk(logdir):
41
+ for fn in fns:
42
+ try:
43
+ with open(os.path.join(dp, fn), errors="replace") as f:
44
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
45
+ except OSError:
46
+ pass
47
+ return "\n".join(dict.fromkeys(lines))
48
+
49
+
50
+ def main(argv=None):
51
+ p = argparse.ArgumentParser()
52
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
53
+ p.add_argument("--" + a, required=True)
54
+ p.add_argument("--workers", type=int, required=True)
55
+ p.add_argument("--gpus", type=int, default=0)
56
+ a = p.parse_args(argv)
57
+ with open(a.episodes) as f:
58
+ q = queue.Queue()
59
+ for e in json.load(f): # the host already ordered them, longest first
60
+ q.put(e)
61
+ os.makedirs(a.out, exist_ok=True)
62
+ lock, t0 = threading.Lock(), time.time()
63
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
64
+
65
+ def log(**ev):
66
+ with lock, open(a.timeline, "a") as f:
67
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
68
+
69
+ def worker(i):
70
+ time.sleep(i * STAGGER_S)
71
+ while True:
72
+ try:
73
+ e = q.get_nowait()
74
+ except queue.Empty:
75
+ return
76
+ key, work = e["key"], os.path.join(a.work, e["key"])
77
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
78
+ os.makedirs(stage)
79
+ with open(ep, "w") as f:
80
+ json.dump([e], f)
81
+ log(ev="start", key=key, worker=i)
82
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
83
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
84
+ try:
85
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
86
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
87
+ except subprocess.TimeoutExpired:
88
+ rc = "timeout"
89
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
90
+ if solver and os.path.isdir(os.path.join(stage, key)):
91
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
92
+ f.write(solver + "\n")
93
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
94
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
95
+ shutil.rmtree(tmp, ignore_errors=True)
96
+ shutil.copytree(os.path.join(stage, key), tmp)
97
+ shutil.rmtree(dst, ignore_errors=True)
98
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
99
+ with lock, open(a.done, "a") as f:
100
+ f.write(key + "\n")
101
+ shutil.rmtree(work, ignore_errors=True)
102
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
103
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
104
+
105
+ def sampler(stop):
106
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
107
+ try:
108
+ with open("/proc/self/cgroup") as f:
109
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
110
+ prev = None
111
+ while not stop.wait(SAMPLE_S if prev else 0):
112
+ with open(path) as f:
113
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
114
+ now = time.time()
115
+ if prev:
116
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
117
+ prev = (use, now)
118
+ except (OSError, StopIteration, ValueError):
119
+ pass
120
+
121
+ def gpu_sampler(stop):
122
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
123
+ while not stop.wait(SAMPLE_S):
124
+ try:
125
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
126
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
127
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
128
+ except Exception: # no driver or a hung query: skip this sample
129
+ pass
130
+
131
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
132
+ log(ev="launch", workers=a.workers, cores=cores)
133
+ stop = threading.Event()
134
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
135
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
136
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
137
+ t.start()
138
+ for t in threads:
139
+ t.join()
140
+ stop.set()
141
+ log(ev="done")
142
+
143
+
144
+ if __name__ == "__main__":
145
+ main()
results/jobs/20261010-004932-large-base-pp/gautschi/0/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 160 -J AutoSim-large-large-base-pp-1 --comment 20261010-004932-large-base-pp -o AutoSim/jobs/20261010-004932-large-base-pp/0/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261010-004932-large-base-pp/0/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261010-004932-large-base-pp/0/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261010-004932-large-base-pp --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8 --stack $HOME/AutoSim/stacks/6a151d28cddda9c8df227e423881bdf39602629d6b4bb56085c692d72a9a8858 --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261010-004932-large-base-pp/0/timeline.jsonl --done $HOME/AutoSim/jobs/20261010-004932-large-base-pp/0/done.txt
results/jobs/20261010-004932-large-base-pp/gautschi/1/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/1/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/1/gautschi_launch.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ if gpu is None and os.path.exists(os.path.join(stack, "mpc_cuda", "libmpc_cuda.so")):
24
+ cuda = ["--env", f"MPC_CUDA_LIB={CUDA_LIB}"] # CPU node: the library's native iLQR solve still loads; its MPPI falls back to numpy
25
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
26
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
27
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
28
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
29
+
30
+
31
+ def parse_smi(text):
32
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
33
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
34
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
35
+
36
+
37
+ def _solver(logdir):
38
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
39
+ lines = []
40
+ for dp, _, fns in os.walk(logdir):
41
+ for fn in fns:
42
+ try:
43
+ with open(os.path.join(dp, fn), errors="replace") as f:
44
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
45
+ except OSError:
46
+ pass
47
+ return "\n".join(dict.fromkeys(lines))
48
+
49
+
50
+ def main(argv=None):
51
+ p = argparse.ArgumentParser()
52
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
53
+ p.add_argument("--" + a, required=True)
54
+ p.add_argument("--workers", type=int, required=True)
55
+ p.add_argument("--gpus", type=int, default=0)
56
+ a = p.parse_args(argv)
57
+ with open(a.episodes) as f:
58
+ q = queue.Queue()
59
+ for e in json.load(f): # the host already ordered them, longest first
60
+ q.put(e)
61
+ os.makedirs(a.out, exist_ok=True)
62
+ lock, t0 = threading.Lock(), time.time()
63
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
64
+
65
+ def log(**ev):
66
+ with lock, open(a.timeline, "a") as f:
67
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
68
+
69
+ def worker(i):
70
+ time.sleep(i * STAGGER_S)
71
+ while True:
72
+ try:
73
+ e = q.get_nowait()
74
+ except queue.Empty:
75
+ return
76
+ key, work = e["key"], os.path.join(a.work, e["key"])
77
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
78
+ os.makedirs(stage)
79
+ with open(ep, "w") as f:
80
+ json.dump([e], f)
81
+ log(ev="start", key=key, worker=i)
82
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
83
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
84
+ try:
85
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
86
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
87
+ except subprocess.TimeoutExpired:
88
+ rc = "timeout"
89
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
90
+ if solver and os.path.isdir(os.path.join(stage, key)):
91
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
92
+ f.write(solver + "\n")
93
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
94
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
95
+ shutil.rmtree(tmp, ignore_errors=True)
96
+ shutil.copytree(os.path.join(stage, key), tmp)
97
+ shutil.rmtree(dst, ignore_errors=True)
98
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
99
+ with lock, open(a.done, "a") as f:
100
+ f.write(key + "\n")
101
+ shutil.rmtree(work, ignore_errors=True)
102
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
103
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
104
+
105
+ def sampler(stop):
106
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
107
+ try:
108
+ with open("/proc/self/cgroup") as f:
109
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
110
+ prev = None
111
+ while not stop.wait(SAMPLE_S if prev else 0):
112
+ with open(path) as f:
113
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
114
+ now = time.time()
115
+ if prev:
116
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
117
+ prev = (use, now)
118
+ except (OSError, StopIteration, ValueError):
119
+ pass
120
+
121
+ def gpu_sampler(stop):
122
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
123
+ while not stop.wait(SAMPLE_S):
124
+ try:
125
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
126
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
127
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
128
+ except Exception: # no driver or a hung query: skip this sample
129
+ pass
130
+
131
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
132
+ log(ev="launch", workers=a.workers, cores=cores)
133
+ stop = threading.Event()
134
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
135
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
136
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
137
+ t.start()
138
+ for t in threads:
139
+ t.join()
140
+ stop.set()
141
+ log(ev="done")
142
+
143
+
144
+ if __name__ == "__main__":
145
+ main()
results/jobs/20261010-004932-large-base-pp/gautschi/1/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 160 -J AutoSim-large-large-base-pp-2 --comment 20261010-004932-large-base-pp -o AutoSim/jobs/20261010-004932-large-base-pp/1/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261010-004932-large-base-pp/1/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261010-004932-large-base-pp/1/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261010-004932-large-base-pp --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8 --stack $HOME/AutoSim/stacks/6a151d28cddda9c8df227e423881bdf39602629d6b4bb56085c692d72a9a8858 --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261010-004932-large-base-pp/1/timeline.jsonl --done $HOME/AutoSim/jobs/20261010-004932-large-base-pp/1/done.txt
results/jobs/20261010-004932-large-base-pp/gautschi/2/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/2/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/2/gautschi_launch.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ if gpu is None and os.path.exists(os.path.join(stack, "mpc_cuda", "libmpc_cuda.so")):
24
+ cuda = ["--env", f"MPC_CUDA_LIB={CUDA_LIB}"] # CPU node: the library's native iLQR solve still loads; its MPPI falls back to numpy
25
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
26
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
27
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
28
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
29
+
30
+
31
+ def parse_smi(text):
32
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
33
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
34
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
35
+
36
+
37
+ def _solver(logdir):
38
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
39
+ lines = []
40
+ for dp, _, fns in os.walk(logdir):
41
+ for fn in fns:
42
+ try:
43
+ with open(os.path.join(dp, fn), errors="replace") as f:
44
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
45
+ except OSError:
46
+ pass
47
+ return "\n".join(dict.fromkeys(lines))
48
+
49
+
50
+ def main(argv=None):
51
+ p = argparse.ArgumentParser()
52
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
53
+ p.add_argument("--" + a, required=True)
54
+ p.add_argument("--workers", type=int, required=True)
55
+ p.add_argument("--gpus", type=int, default=0)
56
+ a = p.parse_args(argv)
57
+ with open(a.episodes) as f:
58
+ q = queue.Queue()
59
+ for e in json.load(f): # the host already ordered them, longest first
60
+ q.put(e)
61
+ os.makedirs(a.out, exist_ok=True)
62
+ lock, t0 = threading.Lock(), time.time()
63
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
64
+
65
+ def log(**ev):
66
+ with lock, open(a.timeline, "a") as f:
67
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
68
+
69
+ def worker(i):
70
+ time.sleep(i * STAGGER_S)
71
+ while True:
72
+ try:
73
+ e = q.get_nowait()
74
+ except queue.Empty:
75
+ return
76
+ key, work = e["key"], os.path.join(a.work, e["key"])
77
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
78
+ os.makedirs(stage)
79
+ with open(ep, "w") as f:
80
+ json.dump([e], f)
81
+ log(ev="start", key=key, worker=i)
82
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
83
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
84
+ try:
85
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
86
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
87
+ except subprocess.TimeoutExpired:
88
+ rc = "timeout"
89
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
90
+ if solver and os.path.isdir(os.path.join(stage, key)):
91
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
92
+ f.write(solver + "\n")
93
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
94
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
95
+ shutil.rmtree(tmp, ignore_errors=True)
96
+ shutil.copytree(os.path.join(stage, key), tmp)
97
+ shutil.rmtree(dst, ignore_errors=True)
98
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
99
+ with lock, open(a.done, "a") as f:
100
+ f.write(key + "\n")
101
+ shutil.rmtree(work, ignore_errors=True)
102
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
103
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
104
+
105
+ def sampler(stop):
106
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
107
+ try:
108
+ with open("/proc/self/cgroup") as f:
109
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
110
+ prev = None
111
+ while not stop.wait(SAMPLE_S if prev else 0):
112
+ with open(path) as f:
113
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
114
+ now = time.time()
115
+ if prev:
116
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
117
+ prev = (use, now)
118
+ except (OSError, StopIteration, ValueError):
119
+ pass
120
+
121
+ def gpu_sampler(stop):
122
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
123
+ while not stop.wait(SAMPLE_S):
124
+ try:
125
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
126
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
127
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
128
+ except Exception: # no driver or a hung query: skip this sample
129
+ pass
130
+
131
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
132
+ log(ev="launch", workers=a.workers, cores=cores)
133
+ stop = threading.Event()
134
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
135
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
136
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
137
+ t.start()
138
+ for t in threads:
139
+ t.join()
140
+ stop.set()
141
+ log(ev="done")
142
+
143
+
144
+ if __name__ == "__main__":
145
+ main()
results/jobs/20261010-004932-large-base-pp/gautschi/2/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 160 --dependency=afterany:16935259 -J AutoSim-large-large-base-pp-3 --comment 20261010-004932-large-base-pp -o AutoSim/jobs/20261010-004932-large-base-pp/2/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261010-004932-large-base-pp/2/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261010-004932-large-base-pp/2/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261010-004932-large-base-pp --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8 --stack $HOME/AutoSim/stacks/6a151d28cddda9c8df227e423881bdf39602629d6b4bb56085c692d72a9a8858 --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261010-004932-large-base-pp/2/timeline.jsonl --done $HOME/AutoSim/jobs/20261010-004932-large-base-pp/2/done.txt
results/jobs/20261010-004932-large-base-pp/gautschi/3/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/3/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/3/gautschi_launch.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ if gpu is None and os.path.exists(os.path.join(stack, "mpc_cuda", "libmpc_cuda.so")):
24
+ cuda = ["--env", f"MPC_CUDA_LIB={CUDA_LIB}"] # CPU node: the library's native iLQR solve still loads; its MPPI falls back to numpy
25
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
26
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
27
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
28
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
29
+
30
+
31
+ def parse_smi(text):
32
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
33
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
34
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
35
+
36
+
37
+ def _solver(logdir):
38
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
39
+ lines = []
40
+ for dp, _, fns in os.walk(logdir):
41
+ for fn in fns:
42
+ try:
43
+ with open(os.path.join(dp, fn), errors="replace") as f:
44
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
45
+ except OSError:
46
+ pass
47
+ return "\n".join(dict.fromkeys(lines))
48
+
49
+
50
+ def main(argv=None):
51
+ p = argparse.ArgumentParser()
52
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
53
+ p.add_argument("--" + a, required=True)
54
+ p.add_argument("--workers", type=int, required=True)
55
+ p.add_argument("--gpus", type=int, default=0)
56
+ a = p.parse_args(argv)
57
+ with open(a.episodes) as f:
58
+ q = queue.Queue()
59
+ for e in json.load(f): # the host already ordered them, longest first
60
+ q.put(e)
61
+ os.makedirs(a.out, exist_ok=True)
62
+ lock, t0 = threading.Lock(), time.time()
63
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
64
+
65
+ def log(**ev):
66
+ with lock, open(a.timeline, "a") as f:
67
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
68
+
69
+ def worker(i):
70
+ time.sleep(i * STAGGER_S)
71
+ while True:
72
+ try:
73
+ e = q.get_nowait()
74
+ except queue.Empty:
75
+ return
76
+ key, work = e["key"], os.path.join(a.work, e["key"])
77
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
78
+ os.makedirs(stage)
79
+ with open(ep, "w") as f:
80
+ json.dump([e], f)
81
+ log(ev="start", key=key, worker=i)
82
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
83
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
84
+ try:
85
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
86
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
87
+ except subprocess.TimeoutExpired:
88
+ rc = "timeout"
89
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
90
+ if solver and os.path.isdir(os.path.join(stage, key)):
91
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
92
+ f.write(solver + "\n")
93
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
94
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
95
+ shutil.rmtree(tmp, ignore_errors=True)
96
+ shutil.copytree(os.path.join(stage, key), tmp)
97
+ shutil.rmtree(dst, ignore_errors=True)
98
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
99
+ with lock, open(a.done, "a") as f:
100
+ f.write(key + "\n")
101
+ shutil.rmtree(work, ignore_errors=True)
102
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
103
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
104
+
105
+ def sampler(stop):
106
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
107
+ try:
108
+ with open("/proc/self/cgroup") as f:
109
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
110
+ prev = None
111
+ while not stop.wait(SAMPLE_S if prev else 0):
112
+ with open(path) as f:
113
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
114
+ now = time.time()
115
+ if prev:
116
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
117
+ prev = (use, now)
118
+ except (OSError, StopIteration, ValueError):
119
+ pass
120
+
121
+ def gpu_sampler(stop):
122
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
123
+ while not stop.wait(SAMPLE_S):
124
+ try:
125
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
126
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
127
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
128
+ except Exception: # no driver or a hung query: skip this sample
129
+ pass
130
+
131
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
132
+ log(ev="launch", workers=a.workers, cores=cores)
133
+ stop = threading.Event()
134
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
135
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
136
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
137
+ t.start()
138
+ for t in threads:
139
+ t.join()
140
+ stop.set()
141
+ log(ev="done")
142
+
143
+
144
+ if __name__ == "__main__":
145
+ main()
results/jobs/20261010-004932-large-base-pp/gautschi/3/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 160 --dependency=afterany:16935260 -J AutoSim-large-large-base-pp-4 --comment 20261010-004932-large-base-pp -o AutoSim/jobs/20261010-004932-large-base-pp/3/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261010-004932-large-base-pp/3/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261010-004932-large-base-pp/3/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261010-004932-large-base-pp --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8 --stack $HOME/AutoSim/stacks/6a151d28cddda9c8df227e423881bdf39602629d6b4bb56085c692d72a9a8858 --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261010-004932-large-base-pp/3/timeline.jsonl --done $HOME/AutoSim/jobs/20261010-004932-large-base-pp/3/done.txt
results/jobs/20261010-004932-large-base-pp/gautschi/4/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/4/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/4/gautschi_launch.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ if gpu is None and os.path.exists(os.path.join(stack, "mpc_cuda", "libmpc_cuda.so")):
24
+ cuda = ["--env", f"MPC_CUDA_LIB={CUDA_LIB}"] # CPU node: the library's native iLQR solve still loads; its MPPI falls back to numpy
25
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
26
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
27
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
28
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
29
+
30
+
31
+ def parse_smi(text):
32
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
33
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
34
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
35
+
36
+
37
+ def _solver(logdir):
38
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
39
+ lines = []
40
+ for dp, _, fns in os.walk(logdir):
41
+ for fn in fns:
42
+ try:
43
+ with open(os.path.join(dp, fn), errors="replace") as f:
44
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
45
+ except OSError:
46
+ pass
47
+ return "\n".join(dict.fromkeys(lines))
48
+
49
+
50
+ def main(argv=None):
51
+ p = argparse.ArgumentParser()
52
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
53
+ p.add_argument("--" + a, required=True)
54
+ p.add_argument("--workers", type=int, required=True)
55
+ p.add_argument("--gpus", type=int, default=0)
56
+ a = p.parse_args(argv)
57
+ with open(a.episodes) as f:
58
+ q = queue.Queue()
59
+ for e in json.load(f): # the host already ordered them, longest first
60
+ q.put(e)
61
+ os.makedirs(a.out, exist_ok=True)
62
+ lock, t0 = threading.Lock(), time.time()
63
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
64
+
65
+ def log(**ev):
66
+ with lock, open(a.timeline, "a") as f:
67
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
68
+
69
+ def worker(i):
70
+ time.sleep(i * STAGGER_S)
71
+ while True:
72
+ try:
73
+ e = q.get_nowait()
74
+ except queue.Empty:
75
+ return
76
+ key, work = e["key"], os.path.join(a.work, e["key"])
77
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
78
+ os.makedirs(stage)
79
+ with open(ep, "w") as f:
80
+ json.dump([e], f)
81
+ log(ev="start", key=key, worker=i)
82
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
83
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
84
+ try:
85
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
86
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
87
+ except subprocess.TimeoutExpired:
88
+ rc = "timeout"
89
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
90
+ if solver and os.path.isdir(os.path.join(stage, key)):
91
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
92
+ f.write(solver + "\n")
93
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
94
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
95
+ shutil.rmtree(tmp, ignore_errors=True)
96
+ shutil.copytree(os.path.join(stage, key), tmp)
97
+ shutil.rmtree(dst, ignore_errors=True)
98
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
99
+ with lock, open(a.done, "a") as f:
100
+ f.write(key + "\n")
101
+ shutil.rmtree(work, ignore_errors=True)
102
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
103
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
104
+
105
+ def sampler(stop):
106
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
107
+ try:
108
+ with open("/proc/self/cgroup") as f:
109
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
110
+ prev = None
111
+ while not stop.wait(SAMPLE_S if prev else 0):
112
+ with open(path) as f:
113
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
114
+ now = time.time()
115
+ if prev:
116
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
117
+ prev = (use, now)
118
+ except (OSError, StopIteration, ValueError):
119
+ pass
120
+
121
+ def gpu_sampler(stop):
122
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
123
+ while not stop.wait(SAMPLE_S):
124
+ try:
125
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
126
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
127
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
128
+ except Exception: # no driver or a hung query: skip this sample
129
+ pass
130
+
131
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
132
+ log(ev="launch", workers=a.workers, cores=cores)
133
+ stop = threading.Event()
134
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
135
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
136
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
137
+ t.start()
138
+ for t in threads:
139
+ t.join()
140
+ stop.set()
141
+ log(ev="done")
142
+
143
+
144
+ if __name__ == "__main__":
145
+ main()
results/jobs/20261010-004932-large-base-pp/gautschi/4/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 160 --dependency=afterany:16935261 -J AutoSim-large-large-base-pp-5 --comment 20261010-004932-large-base-pp -o AutoSim/jobs/20261010-004932-large-base-pp/4/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261010-004932-large-base-pp/4/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261010-004932-large-base-pp/4/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261010-004932-large-base-pp --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8 --stack $HOME/AutoSim/stacks/6a151d28cddda9c8df227e423881bdf39602629d6b4bb56085c692d72a9a8858 --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261010-004932-large-base-pp/4/timeline.jsonl --done $HOME/AutoSim/jobs/20261010-004932-large-base-pp/4/done.txt
results/jobs/20261010-004932-large-base-pp/gautschi/5/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/5/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/5/gautschi_launch.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ if gpu is None and os.path.exists(os.path.join(stack, "mpc_cuda", "libmpc_cuda.so")):
24
+ cuda = ["--env", f"MPC_CUDA_LIB={CUDA_LIB}"] # CPU node: the library's native iLQR solve still loads; its MPPI falls back to numpy
25
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
26
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
27
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
28
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
29
+
30
+
31
+ def parse_smi(text):
32
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
33
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
34
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
35
+
36
+
37
+ def _solver(logdir):
38
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
39
+ lines = []
40
+ for dp, _, fns in os.walk(logdir):
41
+ for fn in fns:
42
+ try:
43
+ with open(os.path.join(dp, fn), errors="replace") as f:
44
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
45
+ except OSError:
46
+ pass
47
+ return "\n".join(dict.fromkeys(lines))
48
+
49
+
50
+ def main(argv=None):
51
+ p = argparse.ArgumentParser()
52
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
53
+ p.add_argument("--" + a, required=True)
54
+ p.add_argument("--workers", type=int, required=True)
55
+ p.add_argument("--gpus", type=int, default=0)
56
+ a = p.parse_args(argv)
57
+ with open(a.episodes) as f:
58
+ q = queue.Queue()
59
+ for e in json.load(f): # the host already ordered them, longest first
60
+ q.put(e)
61
+ os.makedirs(a.out, exist_ok=True)
62
+ lock, t0 = threading.Lock(), time.time()
63
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
64
+
65
+ def log(**ev):
66
+ with lock, open(a.timeline, "a") as f:
67
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
68
+
69
+ def worker(i):
70
+ time.sleep(i * STAGGER_S)
71
+ while True:
72
+ try:
73
+ e = q.get_nowait()
74
+ except queue.Empty:
75
+ return
76
+ key, work = e["key"], os.path.join(a.work, e["key"])
77
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
78
+ os.makedirs(stage)
79
+ with open(ep, "w") as f:
80
+ json.dump([e], f)
81
+ log(ev="start", key=key, worker=i)
82
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
83
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
84
+ try:
85
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
86
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
87
+ except subprocess.TimeoutExpired:
88
+ rc = "timeout"
89
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
90
+ if solver and os.path.isdir(os.path.join(stage, key)):
91
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
92
+ f.write(solver + "\n")
93
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
94
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
95
+ shutil.rmtree(tmp, ignore_errors=True)
96
+ shutil.copytree(os.path.join(stage, key), tmp)
97
+ shutil.rmtree(dst, ignore_errors=True)
98
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
99
+ with lock, open(a.done, "a") as f:
100
+ f.write(key + "\n")
101
+ shutil.rmtree(work, ignore_errors=True)
102
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
103
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
104
+
105
+ def sampler(stop):
106
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
107
+ try:
108
+ with open("/proc/self/cgroup") as f:
109
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
110
+ prev = None
111
+ while not stop.wait(SAMPLE_S if prev else 0):
112
+ with open(path) as f:
113
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
114
+ now = time.time()
115
+ if prev:
116
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
117
+ prev = (use, now)
118
+ except (OSError, StopIteration, ValueError):
119
+ pass
120
+
121
+ def gpu_sampler(stop):
122
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
123
+ while not stop.wait(SAMPLE_S):
124
+ try:
125
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
126
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
127
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
128
+ except Exception: # no driver or a hung query: skip this sample
129
+ pass
130
+
131
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
132
+ log(ev="launch", workers=a.workers, cores=cores)
133
+ stop = threading.Event()
134
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
135
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
136
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
137
+ t.start()
138
+ for t in threads:
139
+ t.join()
140
+ stop.set()
141
+ log(ev="done")
142
+
143
+
144
+ if __name__ == "__main__":
145
+ main()
results/jobs/20261010-004932-large-base-pp/gautschi/5/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 160 --dependency=afterany:16935262 -J AutoSim-large-large-base-pp-6 --comment 20261010-004932-large-base-pp -o AutoSim/jobs/20261010-004932-large-base-pp/5/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261010-004932-large-base-pp/5/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261010-004932-large-base-pp/5/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261010-004932-large-base-pp --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8 --stack $HOME/AutoSim/stacks/6a151d28cddda9c8df227e423881bdf39602629d6b4bb56085c692d72a9a8858 --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261010-004932-large-base-pp/5/timeline.jsonl --done $HOME/AutoSim/jobs/20261010-004932-large-base-pp/5/done.txt
results/jobs/20261010-004932-large-base-pp/gautschi/6/done.txt ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2b2a36cfdf36d3a2dadd53adb140ada168677b93f31bde05fa2ed9c4e4c0540e
2
+ 1229754def0dfd2455692ce517ecc5c2d713414d8248fc0cf66f887722bbcaeb
3
+ 8ea413382661ca6a17b78f96741c49efeee965a053e9708a2d79cccdd3bcba99
4
+ 5ee4be4ca8f246ce42557086965d0c1fe2cc5b587782cff446b5e613e52b5d79
5
+ 664fe3b03b9b67cdd55f11ac1119569594a1e83b11209bcbb8134de0236a3f86
6
+ 99157b39e7c300effec89ce74a2c86a699c2b4db68b181a13c776261a7f6c8f0
7
+ 2ac094352cceb12b9ebd39679de205421400e8108cece977559b691f0be77b6d
8
+ 7b22d154c03e3dd6430fba5e2a7a6a1b78d885d8909e17f83457fcafff43b0b4
9
+ 725316674a5da1c1969528e49995eb3cd56d7ee69fce4ed85ac7605d27b61f65
10
+ c89ad49f600b31f4a1e66e5355101a16a4c31a453a2ee1de6d7626889b1d80c0
11
+ 7ae31779989b754095c0292c6a9d236ab4f72b8aafe0152171d6ba996fb3e8b7
12
+ 22c3114388caa5a0da6200f40bef68b998e657493b033714fe54671bcd121d66
13
+ ef0caf869bdb04b6c35f737f3e9570e91bcb1169baf738b07e8b683efea60f48
14
+ c59deeb0fa7c5cd22476db7e3bc7d45991ef659fee484dae08d1f036063e386b
15
+ c60b5638937e5c6e3383da163ab14b9727b0f3e22db2865a3ccf68b2d9eb37ab
16
+ e7c7a5cae547adffd85ab8dd6d9eff77106ca4c40e49452a92156633350bc737
17
+ 9005e089c20cf382336851e0e5d2781807c0bbd25d3a2a49302c60c5c4892bab
18
+ f4cb2f40765322df1d66c1abfccff2411adbfcb6ea3cf0e88f0c02221fc37881
19
+ 79a7ac58db214d009118d5e2f007576f2b0abcb5d881326f7cc36dbf3097fb9f
20
+ 6f9784f49444ec2cf99868f1bf661aab61c4b9f2a57a4738e980acfae766ccc3
21
+ 158afd377def08e598fd9ee7b1cd727f2d1f063e837096010f83fceecf30ee2c
22
+ 4ea4764676b02c94f352869d608c33009adc7bb63a6b97e801fb4078d66c074b
23
+ 104f74aeb5282bd798ab5568143dd50b76260f25c3e24e0428e315597651be9a
24
+ ce0d632f51422b82ee7c7a094ff2b46f4d246a333a2a65e9a503573a449c27e6
25
+ 4fd3b190b96c7ccb51ae48aa6cf7d2539968a3017ed3528cb61bb6ce4074621f
26
+ 2bc34509921e66f1c1b7338ba7c37eacc979635e9bd5a0ee803d257859d22be7
27
+ da9cfde3b5ca896631bac4800a25e7eb871f6806ccf3f78374f9108700a1db61
28
+ 3634651042b54e78c0ae07565f4fef707b414b9459d45361c0ac3e1d974ce9e7
29
+ 557c788aac207eed6d4ee8e30f5c8fb19f89129401f34c5cee73ecc3d6fa6c7d
30
+ fe1928288710c221f4910aee78fff862b794338f7370ad29e8fab04685f1ade1
31
+ 3ccfa0d4ae70e3ec037a1fbf346a64428d1c4bb0a08ee8458e2e02e03795390f
32
+ 6e9daae1fd72593fa647f67586c98b8a696b890787fa4c57f5bb6de6f483ee39
33
+ c0e785ac7c8ff946f3f0f3c3cc4b325471ca39cb1cfddfceeb6dfa125c88be9a
34
+ 2d71ea4f409eab814bced7d43b4cb5b5d0bcd399487f0e543ff6d5a046923e49
35
+ dc2e5fbcc2b56b5f98af77d3eaa98084f6f749509663c739428034d473ac136e
36
+ bb9e5477916686b1097d6b013eca82e38a769a7a3fb54e949d9b5218eb919d71
37
+ bce585562d61d058db18eb9d8057f42e98796c0e08ee0aa03011911b5dbb4d76
38
+ 3fbc252cb1570a9f8baf17be88fd9ce0937a87dde93f6b1e39fc1c311bd4aa7b
39
+ 4b11646c3b3ed5b9aef077f5a55b15c240539ac1884764689bc959584b8d0607
40
+ afee91cd3d60a5cdd8dfffa7e5bcf9599112dd5ea1c4e0549669e3297423832e
41
+ 4451591f40e86be32267e9dcace9a0291e519f28afd3c0e82a99bff508e7b7bc
42
+ 2c409a32d6e7000021c9352713624313b0ed6cab93d1c2f3ee65fe6422199588
43
+ d31a9e6ec1325cec8d10bae8c9b1587b91de46fc48b07c928be7eee988bd4f9d
44
+ 512319f47306075b1c95300409fb60db05ad6d1dd71a8f8a133c1c32bd3b991b
45
+ 46301a5ff7f5fc790edab4db39edc3acf3a4a17f265f6cef500c2c3d83dae806
46
+ e9928b63548393244c7324c1101c39117ff38b5256894f203e2cb21ae58d8e3b
47
+ 163edec3e568fa214e41181a36089ae73903b69e003cdabbbc0e30aad7c2e2d0
48
+ b8a35a59ae463d8f450b1ebd765010a054f968f8c0937d5ec2cb4d15192337e0
49
+ 98fd223f46e73d3f47cb3634eda5a7fa859982a730cb361a475fdc73b827e218
50
+ 14667dac539804e59280857be0a30a550e1bdba60dc4526c48e598f525ba79a5
51
+ 406f64ab9ffa5a48171e5c51570d8069c472e807472ca80bca77be752e95b108
52
+ c7f3ab7859d26566049073f0d940cba4cd048c778462103851cd4d91392e76a7
53
+ e1e9eafef5399eb6b4f7a62158a3cf596f2401f43a4f44f84d8af3fb215a9e4c
54
+ d22b61a27c325b7f460340be6a1b987c0876f8a63da2a3bbecd7aa4dc9807c46
55
+ 96e24bd6d4efe175bea773247651f3b1e4881b31713a746cc87c0435d310a03c
56
+ 763356d25fb3329ec3127063c220ff0ab5411e3704db814604f98abec50012cd
57
+ 40b8824f9a06cd6e640cb6b440d361ff1ff056ecb0b43e8fdf181013731c48fe
58
+ 33206dad235e25e67442ad727ee53daa096b8d143fc81ccce93e43c73a6ed103
59
+ 8b4255f5b252feedf56e1c7f05f639bf5e5e1439288ba3729b7013a9206bf9d6
60
+ 6dba0a2503b169a6c7ae55dad47fcab7fbc21a8eaac05bf869de224bee004f9f
61
+ b85a006132992bc9d681fb05dbcde8bcfdd575452ed44020c25b5c4689055760
62
+ 6cc6555ea29e64461325459623a8e5aa425970c40b38ef31a671fc5c833f0b16
63
+ ae8f51d0447114029d44fa914a8d3a262e298350fb54eed98d80dafe77ddb8b9
64
+ 16e09adf55d183fb6e58ff5971dfb9f898568774c4eed83e3b187d79c0e77ae0
65
+ abcc8640186e5657084ee85bf352551483b70a42f79b44978ba185d5739162a1
66
+ 614d9373a83fd822de4bc212f123f534d9a66f0a48633eb70002753aaeca5ee8
67
+ bb3355a5737c7056314fb7bac9612838ae68cd7931b82ff4286b026e9e87ca5b
68
+ a445198e40f590424cf24a3e9943b1cf3361ef388b089fb05420a3505b75d04a
69
+ 42655f5b1b9a224f749dfd813995ce8fdbdcf5875ab594f0bc200dc1ca54b4e5
70
+ dee0a4a34a5a6114bf2cef93d65a794678bc26e8fd70668f826a0bfd5ee7e265
71
+ 10cc54f80022304301ea4c0a04a1ed17ba7d182eaaaaed65b35bf3a90408dee7
72
+ 63c8de0be7f36ba50693d7b228800b89eac3294340b018826c79d4a0c5558559
73
+ 12bfa6c96d2f753518ff55d0faae99181d34d2deb4524319bf2b17579110507f
74
+ 7b46a60ea518ccad25ce2b98e6d653c40d4beee1968b1de092624e93ba3ac978
results/jobs/20261010-004932-large-base-pp/gautschi/6/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261010-004932-large-base-pp/gautschi/6/gautschi_launch.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ if gpu is None and os.path.exists(os.path.join(stack, "mpc_cuda", "libmpc_cuda.so")):
24
+ cuda = ["--env", f"MPC_CUDA_LIB={CUDA_LIB}"] # CPU node: the library's native iLQR solve still loads; its MPPI falls back to numpy
25
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
26
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
27
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
28
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
29
+
30
+
31
+ def parse_smi(text):
32
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
33
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
34
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
35
+
36
+
37
+ def _solver(logdir):
38
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
39
+ lines = []
40
+ for dp, _, fns in os.walk(logdir):
41
+ for fn in fns:
42
+ try:
43
+ with open(os.path.join(dp, fn), errors="replace") as f:
44
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
45
+ except OSError:
46
+ pass
47
+ return "\n".join(dict.fromkeys(lines))
48
+
49
+
50
+ def main(argv=None):
51
+ p = argparse.ArgumentParser()
52
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
53
+ p.add_argument("--" + a, required=True)
54
+ p.add_argument("--workers", type=int, required=True)
55
+ p.add_argument("--gpus", type=int, default=0)
56
+ a = p.parse_args(argv)
57
+ with open(a.episodes) as f:
58
+ q = queue.Queue()
59
+ for e in json.load(f): # the host already ordered them, longest first
60
+ q.put(e)
61
+ os.makedirs(a.out, exist_ok=True)
62
+ lock, t0 = threading.Lock(), time.time()
63
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
64
+
65
+ def log(**ev):
66
+ with lock, open(a.timeline, "a") as f:
67
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
68
+
69
+ def worker(i):
70
+ time.sleep(i * STAGGER_S)
71
+ while True:
72
+ try:
73
+ e = q.get_nowait()
74
+ except queue.Empty:
75
+ return
76
+ key, work = e["key"], os.path.join(a.work, e["key"])
77
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
78
+ os.makedirs(stage)
79
+ with open(ep, "w") as f:
80
+ json.dump([e], f)
81
+ log(ev="start", key=key, worker=i)
82
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
83
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
84
+ try:
85
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
86
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
87
+ except subprocess.TimeoutExpired:
88
+ rc = "timeout"
89
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
90
+ if solver and os.path.isdir(os.path.join(stage, key)):
91
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
92
+ f.write(solver + "\n")
93
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
94
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
95
+ shutil.rmtree(tmp, ignore_errors=True)
96
+ shutil.copytree(os.path.join(stage, key), tmp)
97
+ shutil.rmtree(dst, ignore_errors=True)
98
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
99
+ with lock, open(a.done, "a") as f:
100
+ f.write(key + "\n")
101
+ shutil.rmtree(work, ignore_errors=True)
102
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
103
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
104
+
105
+ def sampler(stop):
106
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
107
+ try:
108
+ with open("/proc/self/cgroup") as f:
109
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
110
+ prev = None
111
+ while not stop.wait(SAMPLE_S if prev else 0):
112
+ with open(path) as f:
113
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
114
+ now = time.time()
115
+ if prev:
116
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
117
+ prev = (use, now)
118
+ except (OSError, StopIteration, ValueError):
119
+ pass
120
+
121
+ def gpu_sampler(stop):
122
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
123
+ while not stop.wait(SAMPLE_S):
124
+ try:
125
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
126
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
127
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
128
+ except Exception: # no driver or a hung query: skip this sample
129
+ pass
130
+
131
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
132
+ log(ev="launch", workers=a.workers, cores=cores)
133
+ stop = threading.Event()
134
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
135
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
136
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
137
+ t.start()
138
+ for t in threads:
139
+ t.join()
140
+ stop.set()
141
+ log(ev="done")
142
+
143
+
144
+ if __name__ == "__main__":
145
+ main()
results/jobs/20261010-004932-large-base-pp/gautschi/6/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 96 --time 43 -J AutoSim-large --comment 20261010-004932-large-base-pp -o AutoSim/jobs/20261010-004932-large-base-pp/6/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261010-004932-large-base-pp/6/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261010-004932-large-base-pp/6/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261010-004932-large-base-pp --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8 --stack $HOME/AutoSim/stacks/6a151d28cddda9c8df227e423881bdf39602629d6b4bb56085c692d72a9a8858 --workers 48 --work $W --timeline $HOME/AutoSim/jobs/20261010-004932-large-base-pp/6/timeline.jsonl --done $HOME/AutoSim/jobs/20261010-004932-large-base-pp/6/done.txt
results/jobs/20261010-004932-large-base-pp/job.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "20261010-004932-large-base-pp",
3
+ "tier": "large",
4
+ "tier_version": 3,
5
+ "recipe": {
6
+ "name": "large-base-pp",
7
+ "source": {
8
+ "repo": "AutonomousKart",
9
+ "ref": "worktree:base"
10
+ },
11
+ "params": {
12
+ "pathfinder_node": {
13
+ "planner": "pure_pursuit",
14
+ "mpc.num_samples": 16
15
+ }
16
+ },
17
+ "sim": {},
18
+ "notes": "Base kart stack (main + sim plumbing), pure pursuit; telemetry MPPI at 16 samples (pure pursuit never reads it)"
19
+ },
20
+ "user": "shay",
21
+ "notes": "large v3: base kart stack, pure pursuit; telemetry MPPI at 16 samples",
22
+ "where": "gautschi",
23
+ "status": "done",
24
+ "submitted_at": "2026-10-10T07:49:32.884+00:00",
25
+ "started_at": "2026-10-10T07:49:32.887+00:00",
26
+ "finished_at": "2026-10-10T11:07:15.186+00:00",
27
+ "total": 32076,
28
+ "done": 32076,
29
+ "errors": 0,
30
+ "build_log": null,
31
+ "workers": 96,
32
+ "slurm_id": "16937439",
33
+ "slurm_ids": [
34
+ "16935259",
35
+ "16935260",
36
+ "16935261",
37
+ "16935262",
38
+ "16935263",
39
+ "16935264",
40
+ "16937439"
41
+ ],
42
+ "engine_version": "ded6f8168dff9c052caad6fa1d16ca257ed3716e49b4cd161aa09ae1c01f4af8"
43
+ }
results/jobs/20261010-004932-large-base-pp/summary.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cte_p50": {
3
+ "value": 0.20565471936067686,
4
+ "worst_kart": null,
5
+ "per_kart": {
6
+ "kart1": 0.1898834728712325,
7
+ "kart2": 0.2768902336333262,
8
+ "kart3": 0.16406644335089404
9
+ }
10
+ },
11
+ "cte_p90": {
12
+ "value": 0.9635387754101902,
13
+ "worst_kart": null,
14
+ "per_kart": {
15
+ "kart1": 0.7848562080683432,
16
+ "kart2": 1.3700147221026526,
17
+ "kart3": 0.7846854665459303
18
+ }
19
+ },
20
+ "cte_p99": {
21
+ "value": 2.804877485802955,
22
+ "worst_kart": null,
23
+ "per_kart": {
24
+ "kart1": 2.2731121753260966,
25
+ "kart2": 3.183635606183875,
26
+ "kart3": 2.5797542921543437
27
+ }
28
+ },
29
+ "recovery_rate": {
30
+ "value": 0.67955666227235,
31
+ "worst_kart": null,
32
+ "per_kart": {
33
+ "kart1": 0.6944908180300501,
34
+ "kart2": 0.6173279833556249,
35
+ "kart3": 0.7269957343083485
36
+ }
37
+ },
38
+ "recovery_s_median": {
39
+ "value": 1.4499999999999993,
40
+ "worst_kart": null,
41
+ "per_kart": {
42
+ "kart1": 1.5417499999999995,
43
+ "kart2": 1.3000000000000007,
44
+ "kart3": 1.5667499999999999
45
+ }
46
+ },
47
+ "safety": {
48
+ "value": 0.6025979219033603,
49
+ "worst_kart": null,
50
+ "per_kart": {
51
+ "kart1": 0.6456645819393636,
52
+ "kart2": 0.5281777623427075,
53
+ "kart3": 0.6309927830539249
54
+ }
55
+ },
56
+ "unsafe_lat": {
57
+ "value": 0.0010049864888014358,
58
+ "worst_kart": null,
59
+ "per_kart": {
60
+ "kart1": 0.001716471609186446,
61
+ "kart2": 9.379175679449877e-06,
62
+ "kart3": 0.0012545715102572096
63
+ }
64
+ },
65
+ "unsafe_rate": {
66
+ "value": 0.2971438285827366,
67
+ "worst_kart": null,
68
+ "per_kart": {
69
+ "kart1": 0.24780852461581263,
70
+ "kart2": 0.3733912036299106,
71
+ "kart3": 0.27306880468287714
72
+ }
73
+ },
74
+ "unsafe_travel": {
75
+ "value": 0.0,
76
+ "worst_kart": null,
77
+ "per_kart": {
78
+ "kart1": 0.0,
79
+ "kart2": 0.0,
80
+ "kart3": 0.0
81
+ }
82
+ },
83
+ "unsafe_spin": {
84
+ "value": 7.995099629596404e-05,
85
+ "worst_kart": null,
86
+ "per_kart": {
87
+ "kart1": 0.00016779202871435711,
88
+ "kart2": 0.0,
89
+ "kart3": 7.043197625332553e-05
90
+ }
91
+ },
92
+ "unsafe_off": {
93
+ "value": 0.14749416833141615,
94
+ "worst_kart": null,
95
+ "per_kart": {
96
+ "kart1": 0.14809511447718166,
97
+ "kart2": 0.15778324447377667,
98
+ "kart3": 0.13725752291009716
99
+ }
100
+ },
101
+ "osc_10": {
102
+ "value": 26.18430644531543,
103
+ "worst_kart": null,
104
+ "per_kart": {
105
+ "kart1": 28.982701015917673,
106
+ "kart2": 20.457527276926637,
107
+ "kart3": 28.86579783493766
108
+ }
109
+ },
110
+ "osc_20": {
111
+ "value": 11.721327407270053,
112
+ "worst_kart": null,
113
+ "per_kart": {
114
+ "kart1": 13.932371186257976,
115
+ "kart2": 6.694048206287416,
116
+ "kart3": 14.311674730409129
117
+ }
118
+ },
119
+ "osc_30": {
120
+ "value": 6.226702731202782,
121
+ "worst_kart": null,
122
+ "per_kart": {
123
+ "kart1": 7.8751441159666316,
124
+ "kart2": 2.3952218359208803,
125
+ "kart3": 8.236217208707775
126
+ }
127
+ },
128
+ "laps_pct": {
129
+ "value": 43.18244170096022,
130
+ "worst_kart": null,
131
+ "per_kart": {
132
+ "kart1": 38.43621399176955,
133
+ "kart2": 44.44444444444444,
134
+ "kart3": 46.666666666666664
135
+ }
136
+ },
137
+ "failures": {
138
+ "value": 8711,
139
+ "worst_kart": null,
140
+ "per_kart": {
141
+ "kart1": 2991,
142
+ "kart2": 3559,
143
+ "kart3": 2161
144
+ }
145
+ },
146
+ "n": {
147
+ "value": 32076,
148
+ "worst_kart": null,
149
+ "per_kart": {}
150
+ },
151
+ "errors": {
152
+ "value": 0,
153
+ "worst_kart": null,
154
+ "per_kart": {}
155
+ }
156
+ }
results/leaderboard/large-3__ded6f8168dff.json CHANGED
@@ -44,5 +44,51 @@
44
  "n": 32076,
45
  "errors": 0
46
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
  ]
 
44
  "n": 32076,
45
  "errors": 0
46
  }
47
+ },
48
+ {
49
+ "job_id": "20261010-004932-large-base-pp",
50
+ "recipe": "large-base-pp",
51
+ "notes": "large v3: base kart stack, pure pursuit; telemetry MPPI at 16 samples",
52
+ "user": "shay",
53
+ "ran_at": "2026-10-10T11:07:15.186+00:00",
54
+ "duration_s": 11862.299,
55
+ "cte_p50": 0.20565471936067686,
56
+ "cte_p90": 0.9635387754101902,
57
+ "cte_p99": 2.804877485802955,
58
+ "recovery_rate": 0.67955666227235,
59
+ "recovery_s_median": 1.4499999999999993,
60
+ "safety": 0.6025979219033603,
61
+ "unsafe_lat": 0.0010049864888014358,
62
+ "unsafe_rate": 0.2971438285827366,
63
+ "unsafe_travel": 0.0,
64
+ "unsafe_spin": 7.995099629596404e-05,
65
+ "unsafe_off": 0.14749416833141615,
66
+ "osc_10": 26.18430644531543,
67
+ "osc_20": 11.721327407270053,
68
+ "osc_30": 6.226702731202782,
69
+ "laps_pct": 43.18244170096022,
70
+ "failures": 8711,
71
+ "n": 32076,
72
+ "errors": 0,
73
+ "worst": {
74
+ "cte_p50": 0.2768902336333262,
75
+ "cte_p90": 1.3700147221026526,
76
+ "cte_p99": 3.183635606183875,
77
+ "recovery_rate": 0.6173279833556249,
78
+ "recovery_s_median": 1.5667499999999999,
79
+ "safety": 0.5281777623427075,
80
+ "unsafe_lat": 0.001716471609186446,
81
+ "unsafe_rate": 0.3733912036299106,
82
+ "unsafe_travel": 0.0,
83
+ "unsafe_spin": 0.00016779202871435711,
84
+ "unsafe_off": 0.15778324447377667,
85
+ "osc_10": 28.982701015917673,
86
+ "osc_20": 14.311674730409129,
87
+ "osc_30": 8.236217208707775,
88
+ "laps_pct": 38.43621399176955,
89
+ "failures": 3559,
90
+ "n": 32076,
91
+ "errors": 0
92
+ }
93
  }
94
  ]