#!/bin/bash #SBATCH --job-name=r5_linedet_gpu #SBATCH --partition=H100 #SBATCH --qos=nu-h100 #SBATCH --gres=gpu:h100:1 #SBATCH --cpus-per-task=32 #SBATCH --mem=160G #SBATCH --time=16:00:00 #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out # Stage LINEDET, round R5: the one GPU job of slot L. A task driver runs, as separate processes: timing at batch 1, the five # line recognizers (A1, A2, A3, A4, A1s) concurrently on mix_v1, their validation predictions, and the detectors. The task list # (LD_OUT/tasks.json) is re-read while the job runs. Stop time is inside the file (stop_utc). CODE=/path/to/TURKIC_OCR_CODE DATA=/path/to/TURKIC_OCR_DATA unset HF_TOKEN HUGGING_FACE_HUB_TOKEN LD=$DATA/outputs/r5/linedet mkdir -p $LD/driver_logs echo "job $SLURM_JOB_ID on $(hostname) started $(date -u)" nvidia-smi --query-gpu=name,memory.total,memory.used --format=csv export OMP_NUM_THREADS=4 MKL_NUM_THREADS=4 PYTHONUNBUFFERED=1 $CODE/.venv_kraken/bin/python -I -m linedet.driver --tasks $LD/tasks.json --status $LD/driver_status.json --logdir $LD/driver_logs echo "driver ended $(date -u)"