File size: 1,096 Bytes
24aaa76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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)"