File size: 957 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 | #!/bin/bash
#SBATCH --job-name=r5_vlma_draftmix
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=4
#SBATCH --mem=32G
#SBATCH --time=00:40:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# R5 VLMA: dry run of build_sequence.py on the REAL train manifests with a DRAFT yaml (not the frozen mix), 2,000,000
# rows, timed, into a scratch folder that is deleted afterwards (summary kept).
set -u
CODE=/path/to/TURKIC_OCR_CODE
DATA=/path/to/TURKIC_OCR_DATA
S=$CODE/scripts/r5_vlma
O=$DATA/outputs/r5/vlma/check_mix_draft
rm -rf $O; mkdir -p $O
$CODE/.venv_vlm/bin/python -I $S/make_draft_mix.py $DATA/data/processed/r5/manifests $O/draft_mix.yaml
T0=$(date +%s)
$CODE/.venv_vlm/bin/python -I $S/build_sequence.py $O/draft_mix.yaml $O/draft_seq.tsv --rows 2000000
echo "exit $? seconds $(( $(date +%s) - T0 ))"
ls -la $O
rm -f $O/draft_seq.tsv $O/draft_seq.tsv.tmp $O/draft_seq.tsv.done
echo "[draftmix] done"
|