File size: 974 Bytes
24aaa76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#SBATCH --job-name=r5_gen_prod
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=8
#SBATCH --mem=24G
#SBATCH --time=01:00:00
#SBATCH --array=0-9
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%A_%a.out
# R5 GEN production: each array task works through the chunk list (CHUNKS) until its 50-minute budget is used up; tasks share the work by
# claiming chunks (scripts/run_chunks.py). Short jobs on purpose: the ZEN4 partition is full and only small, short jobs get backfilled.
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 3000 --expect-fonts 73