| cd /mnt/pvc/users/simon/agentptb/runs/c/workspace/sft_data | |
| PY=/var/lib/agentptb-cache/c/prime-rl/.venv/bin/python | |
| # split onthoughts into 16 shards | |
| mkdir -p shards | |
| rm -f shards/oa_*.jsonl | |
| awk '{f="shards/oa_" int((NR-1)*16/74502) ".jsonl"; print > f}' onthoughts_main.jsonl | |
| # parallel cap each shard | |
| for f in shards/oa_*.jsonl; do | |
| $PY ../tools/cap_sft.py "$f" 21000 > "shards/$(basename $f .jsonl).cap.log" 2>&1 & | |
| done | |
| wait | |
| echo "ALL SHARDS DONE" | |
| ls -la shards/ | |