#!/bin/bash #SBATCH --job-name=r5_vlmb_L #SBATCH --partition=H100 #SBATCH --qos=nu-h100 #SBATCH --gres=gpu:h100:1 #SBATCH --cpus-per-task=16 #SBATCH --mem=96G #SBATCH --time=44:00:00 #SBATCH --signal=B:TERM@300 #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out # R5 VLMB, GPU slot L (after LINEDET's job, submitted with --dependency=afterany:): one long job that # runs the task list of queue_L.json (per model: GPU check + smoke, then the equal short fine-tune of amendment 3.2 C1 # and its validation predictions; a leader continuation only if the leaders file names one for slot L). Every task # in its own subprocess, with the model's own pinned venv (rule 0.11: compute node, pinned code, no credentials). # The runner stops everything by 2026-11-22 18:58 UTC whatever the job's start time. set -u CODE=/path/to/TURKIC_OCR_CODE export HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 TOKENIZERS_PARALLELISM=false PYTHONDONTWRITEBYTECODE=1 unset HF_TOKEN HUGGING_FACE_HUB_TOKEN || true echo "job $SLURM_JOB_ID on $(hostname) start $(date -u +%FT%TZ)" nvidia-smi --query-gpu=name,driver_version,memory.total --format=csv $CODE/.venv_vlm_oxr_1_0/bin/python -I $CODE/scripts/r5_vlmb/vlmb_runner.py $CODE/scripts/r5_vlmb/queue_L.json & PID=$! trap 'kill -TERM $PID; wait $PID' TERM wait $PID echo "[r5_vlmb_L] end $(date -u +%FT%TZ)"