| PY=/var/lib/agentptb-cache/c/prime-rl/.venv/bin/python | |
| cd /tmp/sft_shards | |
| for f in oa_*.jsonl; do | |
| $PY /mnt/pvc/users/simon/agentptb/runs/c/workspace/tools/cap_sft.py "$f" 21000 > "$f.cap.log" 2>&1 & | |
| done | |
| wait | |
| echo "ALL SHARDS DONE" | |
| # merge into output dir | |
| OUT=/mnt/pvc/users/simon/agentptb/runs/c/workspace/sft_data/onthoughts_main_cap.jsonl | |
| : > "$OUT" | |
| for f in oa_*_cap.jsonl; do cat "$f" >> "$OUT"; done | |
| wc -l "$OUT" | |