File size: 1,030 Bytes
24aaa76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/bash
#SBATCH --job-name=r5_select_dryrun
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=4
#SBATCH --mem=48G
#SBATCH --time=00:30:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# Dry run of select_b1b2.py on the validation scores present now, with the same arguments as
# r5_select_verdict.sbatch select. It writes to DATA/tmp, never to DATA/outputs/r5/selection.json, which the
# test-pass runner reads. Validation only, not hashed into records/R5/RULE; it is not the J7 selection.
C=/path/to/TURKIC_OCR_CODE
D=/path/to/TURKIC_OCR_DATA
TSV=$C/scripts/r5_vlma/models_r5.tsv,$C/scripts/r5_vlmb/models_r5_vlmb.tsv
AI=""
if [ -f $D/outputs/r5/arms_info.json ]; then AI="--arms-info $D/outputs/r5/arms_info.json"; fi
O=$D/tmp/selection_dryrun_$(date -u +%Y%m%dT%H%MZ).json
$C/.venv_kraken/bin/python -I $C/scripts/r5eval/select_b1b2.py --scores $D/outputs/r5/scores --preds $D/outputs/r5/preds --out $O \
--models-tsv $TSV --vlm-arms "${VLM_EXTRA:-}" $AI
echo "out $O"
|