#!/bin/bash # R5 test pass, clarification J3: the co-run check (corun_check.py), on VALIDATION data only, as a step of job 52335 # after its HunyuanOCR seed-2 validation and before 11:45 UTC 24 Nov. Run by hand: # srun --jobid=52335 --overlap bash /path/to/TURKIC_OCR_CODE/scripts/r5_vlma/corun_check.sh # Any idle slot job works the same way (52334, or a testpass job that has started and waits for 12:00); 52335 ends when # the last leader run of either slot is done, which may be before 11:58. # It refuses (and writes nothing) while the GPU runs another compute process. It writes # DATA/outputs/r5/vlma/testpass_nproc.txt (first line 2 or 1), which testpass_V/L.sbatch read at their start. # Duration about 6-10 min (estimate: 2,560 rows once alone and twice at once, plus three model loads). set -u CODE=/path/to/TURKIC_OCR_CODE DATA=/path/to/TURKIC_OCR_DATA export HF_HUB_OFFLINE=1 TOKENIZERS_PARALLELISM=false unset HF_TOKEN HUGGING_FACE_HUB_TOKEN || true mkdir -p $DATA/logs/r5_vlma LOG=$DATA/logs/r5_vlma/corun_check_$(date -u +%Y%m%dT%H%M%SZ).log $CODE/.venv_vlm/bin/python -I $CODE/scripts/r5_vlma/corun_check.py "$@" 2>&1 | tee -a $LOG echo "log $LOG"