turkic-ocr-code / scripts /r5_vlma /queue_V.sbatch
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
1.1 kB
#!/bin/bash
#SBATCH --job-name=r5_vlma_V
#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 VLMA, GPU slot V: one long job running the task list of queue_V.json (smoke tests, then the equal short
# fine-tunes of amendment 3.2 C1 in the plan's order, then the slot-V leader continuation of C4). Every task runs in
# its own subprocess; 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
DATA=/path/to/TURKIC_OCR_DATA
export HF_HUB_OFFLINE=1 TOKENIZERS_PARALLELISM=false
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/bin/python -I $CODE/scripts/r5_vlma/runner.py $CODE/scripts/r5_vlma/queue_V.json &
PID=$!
trap 'kill -TERM $PID; wait $PID' TERM
wait $PID
echo "[r5_vlma_V] end $(date -u +%FT%TZ)"