#!/bin/bash #SBATCH --job-name=r5_freeze_seq2 #SBATCH --partition=ZEN4 #SBATCH --qos=nu-zen4 #SBATCH --gres=none #SBATCH --cpus-per-task=4 #SBATCH --mem=32G #SBATCH --time=01:30:00 #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out # R5 stage FREEZE, part B step 5: the seed-2 sample sequence for the leader runs (amendment 3.3 D2), built with VLMA's own builder # from the frozen mix_v1.yaml, data-order seed 20261122, 6,000,000 rows (the builder's default), beside seed 1's sequence. # leader_runner.py (ensure_seq) uses it as is when .done exists. set -u unset HF_TOKEN HUGGING_FACE_HUB_TOKEN C=/path/to/TURKIC_OCR_CODE D=/path/to/TURKIC_OCR_DATA R5=$D/data/processed/r5 OUT=$R5/seq/mix_v1_seq_s20261122.tsv echo "start $(date -u +%FT%TZ) on $(hostname)" sha256sum $R5/mix_v1.yaml if [ -e $OUT.done ]; then echo "already built"; cat $OUT.done; exit 0; fi $C/.venv_vlm/bin/python -I $C/scripts/r5_vlma/build_sequence.py $R5/mix_v1.yaml $OUT --seed 20261122 RC=$? echo "exit $RC" [ -e $OUT.done ] && cat $OUT.done && sha256sum $OUT $OUT.summary.json echo "end $(date -u +%FT%TZ)" exit $RC