#!/bin/bash #SBATCH --job-name=r5_gen_prod2 #SBATCH --partition=ZEN4 #SBATCH --qos=nu-zen4 #SBATCH --gres=none #SBATCH --cpus-per-task=2 #SBATCH --mem=8G #SBATCH --time=00:40:00 #SBATCH --array=0-9 #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%A_%a.out # R5 GEN production, small variant: same work list and claiming as r5_production.sbatch (the two arrays share the chunks), 2 CPUs and 25 minutes of # work per task, because the scheduler places small short jobs earlier on the full ZEN4 partition. CODE=/path/to/TURKIC_OCR_CODE/src/pagesynth D=/path/to/TURKIC_OCR_DATA CHUNKS=${CHUNKS:-$D/tmp/r5_chunks_stage1.tsv} export OMP_NUM_THREADS=1 export PAGESYNTH_FONTS=$CODE/assets/fonts /path/to/TURKIC_OCR_CODE/.venv_gen/bin/python $CODE/scripts/run_chunks.py --chunks $CHUNKS --out-root $D/data/processed/r5/synth --text-root $D/data/processed/r5/pagesynth_text_split \ --workers $SLURM_CPUS_PER_TASK --budget-seconds 1500 --est-seconds-per-chunk 420 --expect-fonts 73