#!/bin/bash #SBATCH --job-name=r5_gen_prod4 #SBATCH --partition=ZEN4 #SBATCH --qos=nu-zen4 #SBATCH --gres=none #SBATCH --cpus-per-task=4 #SBATCH --mem=12G #SBATCH --time=00:55:00 #SBATCH --array=0-29 #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%A_%a.out # R5 GEN production, middle variant: 4 CPUs and 45 minutes of work per task; same chunk list and claiming as the other variants (the arrays share the chunks). # Pending tasks cost nothing and exit in seconds when every chunk is claimed. 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 2700 --est-seconds-per-chunk 330 --expect-fonts 73