Download scripts/r5_vlma/testpass_L.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 3.13 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_vlma/testpass_L.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_vlma/testpass_L.sbatch
-
curl -L -o testpass_L.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_vlma/testpass_L.sbatch
3.13 kB
| #!/bin/bash | |
| #SBATCH --job-name=r5_testpass_L | |
| #SBATCH --partition=H100 | |
| #SBATCH --qos=nu-h100 | |
| #SBATCH --gres=gpu:h100:1 | |
| #SBATCH --cpus-per-task=16 | |
| #SBATCH --mem=96G | |
| #SBATCH --time=10:00:00 | |
| #SBATCH --dependency=afterany:52335 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # R5 test pass, GPU slot L (clarifications J2-J9, 23 Nov 2026). NOT submitted by VLMA; it is submitted by hand. | |
| # Slot L also takes REF's task (J8: REF_DEVICE=gpu on slot L) and, after the runners end, HOLDS this allocation without | |
| # GPU work until 17:58 UTC or until DATA/outputs/r5/testpass/release_L exists, so that score.py --test-pass can run as a | |
| # job step here (J8: srun --jobid=<this job> --overlap ...) when ZEN4 does not start a job within 10 minutes. | |
| # J3: always starts runner workers 0 and 1 on this GPU; worker 1 reads DATA/outputs/r5/vlma/testpass_nproc.txt (written | |
| # by corun_check.sh) when the pass opens and exits unless it starts with "2" (missing file = one process). | |
| # 52334/52335 end when their leader runs are done (possibly well before 11:58); this job then waits idle, holding the | |
| # slot, and the co-run check and GPU smoke may run as steps in it (srun --jobid=<this job> --overlap ...). | |
| # Every runner waits inside the job until 24 Nov 12:00 UTC AND the gate file DATA/outputs/r5/RULE/test_pass_started.txt, | |
| # then the first one builds the ONE shared task list (testpass_build_tasks.py: selection.json if frozen, else J2's | |
| # fallback) and all processes of both slots pull from it in J2 order. J4: no task starts from 16:40 UTC; evaluations stop | |
| # at 16:55 (the runner stops command tasks by process group); this job's backstop kills the runners at 16:57:00 UTC. | |
| # --time 10:00 covers a start as early as 07:58 UTC. | |
| set -u | |
| SLOT=L | |
| HOLD_UNTIL=2026-11-24T17:58:00Z # J8: scoring may run as a step of this allocation | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| S=$CODE/scripts/r5_vlma | |
| CFG=$S/testpass_config.json | |
| NFILE=$DATA/outputs/r5/vlma/testpass_nproc.txt | |
| HARD=2026-11-24T16:57:00Z | |
| export HF_HUB_OFFLINE=1 TOKENIZERS_PARALLELISM=false | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN || true | |
| echo "job $SLURM_JOB_ID slot $SLOT on $(hostname) start $(date -u +%FT%TZ); N file $NFILE now: $(head -c 200 $NFILE 2>/dev/null | head -1) (worker 1 re-reads it when the pass opens); backstop $HARD" | |
| nvidia-smi --query-gpu=name,driver_version,memory.total --format=csv | |
| END=$(date -u -d $HARD +%s) | |
| LEFT=$(( END - $(date -u +%s) )) | |
| if [ $LEFT -gt 60 ]; then | |
| for w in 0 1; do | |
| timeout -k 60 $LEFT $CODE/.venv_vlm/bin/python -I $S/testpass_runner.py --config $CFG --slot $SLOT --worker $w --nfile $NFILE & | |
| sleep 3 | |
| done | |
| wait | |
| else | |
| echo "past the backstop $HARD: no runner started" | |
| fi | |
| echo "[r5_testpass_$SLOT] runners ended $(date -u +%FT%TZ)" | |
| if [ -n "$HOLD_UNTIL" ]; then | |
| REL=$DATA/outputs/r5/testpass/release_$SLOT | |
| HE=$(date -u -d $HOLD_UNTIL +%s) | |
| echo "holding this allocation for score.py --test-pass as a job step (J8) until $HOLD_UNTIL or until $REL exists; no GPU work runs" | |
| while [ $(date -u +%s) -lt $HE ] && [ ! -f $REL ]; do sleep 30; done | |
| fi | |
| echo "[r5_testpass_$SLOT] end $(date -u +%FT%TZ)" | |