Download framework/scripts/make_day2_full_bundle.sh from idacy/trace-artifact: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/datasets/idacy/trace-artifact/resolve/main/framework/scripts/make_day2_full_bundle.sh
- Command line
-
hf download hf://datasets/idacy/trace-artifact/framework/scripts/make_day2_full_bundle.sh
-
curl -L -o make_day2_full_bundle.sh https://huggingface.co/datasets/idacy/trace-artifact/resolve/main/framework/scripts/make_day2_full_bundle.sh
1.6 kB
| # Build a side-by-side, fully offline day-2 bundle for the five reserved nodes. | |
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| STAMP="${1:-$(date -u +%Y%m%d)}" | |
| WHEELS="${2:-$ROOT/dist/wheels-cu128}" | |
| DEST="$ROOT/dist/trace-study-day2-full-$STAMP.tar.gz" | |
| STAGE_ROOT="$(mktemp -d)" | |
| STAGE="$STAGE_ROOT/trace-study-day2" | |
| trap 'rm -rf "$STAGE_ROOT"' EXIT | |
| [[ -d "$WHEELS" ]] || { echo "wheel directory not found: $WHEELS"; exit 1; } | |
| FILES=( | |
| README-DAY2.md | |
| setup.sh | |
| start_day2.sh | |
| orchestrator.py | |
| run_study.sh | |
| schedule_day2.json | |
| schedule_day2_test.json | |
| verify_day2.py | |
| workloads.py | |
| ) | |
| mkdir -p "$STAGE/collector" "$STAGE/wheels" "$ROOT/dist" | |
| for file in "${FILES[@]}"; do | |
| cp -p "$ROOT/trace-study/$file" "$STAGE/$file" | |
| done | |
| cp -p "$ROOT/trace-study/nodes.day2.conf" "$STAGE/nodes.conf" | |
| cp -p "$ROOT/collector/collect.py" "$ROOT/collector/trace.sh" \ | |
| "$STAGE/collector/" | |
| cp -p "$WHEELS"/*.whl "$STAGE/wheels/" | |
| chmod +x "$STAGE"/*.sh "$STAGE/collector/trace.sh" | |
| ( | |
| cd "$STAGE" | |
| shasum -a 256 \ | |
| README-DAY2.md \ | |
| setup.sh \ | |
| start_day2.sh \ | |
| nodes.conf \ | |
| orchestrator.py \ | |
| run_study.sh \ | |
| schedule_day2.json \ | |
| schedule_day2_test.json \ | |
| verify_day2.py \ | |
| workloads.py \ | |
| collector/collect.py \ | |
| collector/trace.sh \ | |
| > DAY2-CODE-SHA256SUMS | |
| shasum -a 256 wheels/*.whl > WHEELS-SHA256SUMS | |
| ) | |
| COPYFILE_DISABLE=1 tar -czf "$DEST" -C "$STAGE_ROOT" trace-study-day2 | |
| ( | |
| cd "$(dirname "$DEST")" | |
| shasum -a 256 "$(basename "$DEST")" | |
| ) > "$DEST.sha256" | |
| echo "built:" | |
| ls -lh "$DEST" "$DEST.sha256" | |
| cat "$DEST.sha256" | |