turkic-ocr-code / scripts /r5_ktrain_scratch.sbatch
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
837 Bytes
#!/bin/bash
#SBATCH --job-name=r5_ktrain_scratch
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=4
#SBATCH --mem=48G
#SBATCH --time=01:00:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# R5 EVALCODE: time and size check of build_ktrain.py on the real TRAIN manifests (scratch mix, not mix_v1) and the generator's train text.
# Reads training text only. Output under DATA/tmp/evalcode_ktrain_scratch; then loads it back and prints sizes, time and a slice-flag example.
C=/path/to/TURKIC_OCR_CODE
D=/path/to/TURKIC_OCR_DATA
S=$C/.venv_kraken/bin/python
date -u
$S -I $C/scripts/r5eval/build_ktrain.py --mix $C/config_r5eval/mix_scratch.yaml --out $D/tmp/evalcode_ktrain_scratch
date -u
ls -la $D/tmp/evalcode_ktrain_scratch
sacct -j $SLURM_JOB_ID --format=JobID,Elapsed,MaxRSS,State