Download scripts/r5_ref/ref_after_mix.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_ref/ref_after_mix.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_ref/ref_after_mix.sbatch
-
curl -L -o ref_after_mix.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_ref/ref_after_mix.sbatch
1.16 kB
| #!/bin/bash | |
| #SBATCH --job-name=r5_ref_mixlists | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --qos=nu-zen4 | |
| #SBATCH --gres=none | |
| #SBATCH --cpus-per-task=4 | |
| #SBATCH --mem=64G | |
| #SBATCH --time=01:00:00 | |
| #SBATCH --begin=2026-11-21T11:45:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # R5 REF, run (iii) of the reference arms (clarification H5): builds the 150,016-sample lists from the FROZEN mix_v1.yaml (text only, no image opened). | |
| # --begin is in the cluster's local time (UTC+5): 11:45 local = 06:45 UTC, after the freeze (about 06:00, hard cap 06:30 UTC). | |
| # If mix_v1.yaml does not exist yet the job stops with exit code 2; rerun it by hand: sbatch /path/to/TURKIC_OCR_CODE/scripts/r5_ref/ref_after_mix.sbatch | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN | |
| C=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| MIX=$D/data/processed/r5/mix_v1.yaml | |
| if [ ! -f $MIX ]; then echo "mix_v1.yaml does not exist yet: $MIX"; exit 2; fi | |
| sha256sum $MIX | |
| $C/.venv_kraken/bin/python -I $C/scripts/r5_ref/ref_make_mix_lists.py $MIX $D/data/processed/r5/ref | |
| wc -l $D/data/processed/r5/ref/mix_iii_R1.tsv $D/data/processed/r5/ref/mix_iii_R2.tsv $D/data/processed/r5/ref/ppocr_iii_train.txt | |