turkic-ocr-code / scripts /r5_vlmb /queue_V_extra.sbatch
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
1.63 kB
#!/bin/bash
#SBATCH --job-name=r5_vlmb_extraV
#SBATCH --partition=H100
#SBATCH --qos=nu-h100
#SBATCH --gres=gpu:h100:1
#SBATCH --cpus-per-task=16
#SBATCH --mem=96G
#SBATCH --time=24:00:00
#SBATCH --signal=B:TERM@300
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# R5 VLMC for VLMB's harness, GPU slot V's idle window (decision of 21 Nov): submitted with
# --dependency=afterany:50942 (VLMA's short queue); VLMA's leader job 51276 is re-pointed to follow this job. Runs VLMB's
# runner on queue_V_extra.json (slot Vextra, own runner_state_Vextra.json and STOP_Vextra): youtu_parsing, jina_ocr_v1,
# unlimited_ocr_2 in that order, each claimed so it runs once across slots L and Vextra. Per arm: GPU check + smoke, the
# equal short fine-tune of amendment 3.2 C1, validation predictions. Clarification H3: no new task after 13:00Z, training
# stops 13:55Z, everything stops 13:58Z on 2026-11-22 (the runner's own clock; --time is only an outer bound because
# the start time is unknown). Rule 0.11: every task in its own subprocess with the model's pinned venv, no credentials.
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_V_extra.json &
PID=$!
trap 'kill -TERM $PID; wait $PID' TERM
wait $PID
echo "[r5_vlmb_extraV] end $(date -u +%FT%TZ)"