turkic-ocr-code / scripts /r5_print /r5_print_process.sbatch
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
634 Bytes
#!/bin/bash
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=8
#SBATCH --mem=16G
#SBATCH --time=01:00:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# usage: sbatch --job-name=r5_print_<lang> r5_print_process.sbatch <lang>
CODE=/path/to/TURKIC_OCR_CODE
DATA=/path/to/TURKIC_OCR_DATA
unset HF_TOKEN HUGGING_FACE_HUB_TOKEN
hostname; date -u
$CODE/.venv_print/bin/python -I $CODE/scripts/r5_print/r5_print_process.py --lang "$1" \
--raw $DATA/data/raw/r5_print --out $DATA/data/processed/r5/print_real \
--corpus $DATA/data/processed/r5/pagesynth_text_split --workers 8
date -u