#!/bin/bash #SBATCH --job-name=tp2_prep #SBATCH --partition=ZEN4 #SBATCH --cpus-per-task=16 #SBATCH --mem=48G #SBATCH --time=02:00:00 #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out # Test pass 2 preparation: hashes and manifest census, overlap and contamination checks, TurkishOCR-Bench page list and # detector copies, smoke inputs (validation only). No model runs, nothing is scored. set -u CODE=/path/to/TURKIC_OCR_CODE D=/path/to/TURKIC_OCR_DATA S=$CODE/scripts/r5_testpass2 T=$D/outputs/r5/testpass2 PY=$CODE/.venv_kraken/bin/python mkdir -p $T/checks $T/tob $T/smoke hostname; date -u $PY -I $S/tp2_hashes.py --out $T/checks/hashes.json; echo "=== hashes exit $?" $PY -I $S/tp2_overlap.py --out $T/checks/overlap.json; echo "=== overlap exit $?" $PY -I $S/tp2_tob_prep.py --outdir $T/tob; echo "=== tob_prep exit $?" $PY -I $S/tp2_smoke_prep.py --outdir $T/smoke; echo "=== smoke_prep exit $?" date -u