opus-max-record / harness /scripts /finalize_ckpt.sh
simonycl's picture
Upload folder using huggingface_hub
b2ebc95 verified
Raw History Blame Contribute Delete
401 Bytes
#!/bin/bash
# finalize_ckpt.sh <ckpt_dir> — add the files prime-rl's trainer does not save but that
# prime-rl's own inference server (and any processor-loading path) needs.
set -uo pipefail
B=/var/lib/agentptb-cache/a/models/base
D="${1:?checkpoint dir}"
for f in preprocessor_config.json video_preprocessor_config.json merges.txt vocab.json; do
[ -f "$D/$f" ] || cp "$B/$f" "$D/$f"
done
ls "$D"