Datasets:
Download scripts/t2b-bench/explore_b.sh from DrumsRL/drums-benchmarks: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/datasets/DrumsRL/drums-benchmarks/resolve/main/scripts/t2b-bench/explore_b.sh
- Command line
-
hf download hf://datasets/DrumsRL/drums-benchmarks/scripts/t2b-bench/explore_b.sh
-
curl -L -o explore_b.sh https://huggingface.co/datasets/DrumsRL/drums-benchmarks/resolve/main/scripts/t2b-bench/explore_b.sh
1.46 kB
| # explore_b.sh: EXPLORATORY (does not count). Arm B with the clean origin re-made by arm B's own binaries (bench/arm.sh's | |
| # re-provision commands), then the same W1p. Output in out/explore/. | |
| set -uo pipefail | |
| HERE=$(cd "$(dirname "$0")/.." && pwd); B=$HERE/bench; OUT=$HERE/out/explore; mkdir -p $OUT/raw | |
| log() { echo "$(date -u +%FT%TZ) $*" | tee -a $OUT/reproduce.log; } | |
| bash $B/closeall.sh; sleep 5 | |
| log "re-provision origin with arm B binaries" | |
| sudo sh -c 'curl -sf -X DELETE -H "Authorization: Bearer $(cat /etc/drums/token)" "http://127.0.0.1:7070/v1/checkpoints/osworld-ubuntu?installed=true"' > $OUT/delete-origin.out 2>&1; echo "delete rc=$?" | tee -a $OUT/reproduce.log | |
| sudo /opt/drums/boot.sh origin > $OUT/origin.out 2>&1; echo "origin rc=$?" | tee -a $OUT/reproduce.log | |
| sudo sha256sum /opt/drums/bin/drumsd /opt/drums/criu/bin/criu | tee -a $OUT/reproduce.log | |
| export DRUMS_SDK=/opt/drums/arms/B/sdk | |
| log "W1p explore-B" | |
| sudo -E python3 $B/t2prof.py --forks 30 --n 4 --resets 0 --gap 2.0 --prefork --label explore-B --out $OUT/raw/rep-new-w1p.jsonl > $OUT/rep-new-w1p.out 2>&1; log "W1p rc=$?" | |
| sudo sh -c 'curl -s -H "Authorization: Bearer $(cat /etc/drums/token)" http://127.0.0.1:7070/v1/health' > $OUT/raw/health-end.json 2>&1 | |
| bash $B/closeall.sh | |
| python3 $B/analyze.py $OUT/raw > $OUT/tables.md | |
| (cd $OUT/raw && sha256sum *.jsonl > SHA256SUMS) | |
| sudo journalctl -u drumsd --no-pager --since "-30min" > $OUT/drumsd-journal.txt 2>&1 | |
| log done | |