turkic-ocr-code / scripts /r5_print /r5_print_fetch_all.sh
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
604 Bytes
#!/bin/bash
# Download-only driver (login node, nice'd). Three language groups in parallel; each group sequential.
CODE=/path/to/TURKIC_OCR_CODE
DATA=/path/to/TURKIC_OCR_DATA
RAW=$DATA/data/raw/r5_print
CAND=$RAW/_select
PY=$CODE/.venv_print/bin/python
run() { for cfg in "$@"; do nice -n 10 env -u HF_TOKEN -u HUGGING_FACE_HUB_TOKEN $PY -I $CODE/scripts/r5_print/r5_print_fetch.py cand $CAND $RAW $cfg 100; done; }
run sah_Cyrl bak_Cyrl tuk_Latn &
run tat_Cyrl kir_Cyrl uzn_Cyrl &
nice -n 10 $PY -I $CODE/scripts/r5_print/r5_print_fetch.py tbmm $RAW 28,27,26,25,24 2 20261121 &
wait
echo fetch_all_done