Download code/scripts/pull_runs.sh from thegovind/weight-space-programming: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/spaces/thegovind/weight-space-programming/resolve/main/code/scripts/pull_runs.sh
- Command line
-
hf download hf://spaces/thegovind/weight-space-programming/code/scripts/pull_runs.sh
-
curl -L -o pull_runs.sh https://huggingface.co/spaces/thegovind/weight-space-programming/resolve/main/code/scripts/pull_runs.sh
542 Bytes
| # Copy finished generation runs from the GPU machines into results/runs. Only the graded records and summaries come | |
| # back (a few MB); the full answer texts (*.texts.jsonl.gz) stay on the machines. | |
| # bash scripts/pull_runs.sh trainer sampler | |
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| mkdir -p results/runs | |
| for h in "$@"; do | |
| rsync -azm --include '*/' --include 'merged.jsonl' --include 'summary.json' --include '*.done.json' \ | |
| --exclude '*' "$h:/nvme/wsp-lab/runs/" results/runs/ </dev/null | |
| echo "pulled $h" | |
| done | |