sahiljagtap's picture
Drums launch benchmarks reproduction + paired Drums/Prime/E2B re-run (scrubbed)
4ef198a
Raw History Blame Contribute Delete
530 Bytes
import sys, json, time
sys.path.insert(0, "/tmp"); sys.path.insert(0, "/opt/drums/src/drumsd/python")
import drums, t2prof
c = drums.connect("http://127.0.0.1:7070", open("/etc/drums/token").read().strip())
log = open("/tmp/keep1.jsonl", "a")
env = t2prof.build_parent(c, log)
time.sleep(2)
k = env.fork(1)
print(json.dumps({"parent": env.record.get("num"), "parent_id": env.id, "child": k[0].id, "child_rec": {x: k[0].record.get(x) for x in ("num","checkpoint","timings")}, "ckpt": k.state}, default=str))
import os; os._exit(0)