File size: 1,337 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 26 27 | #!/bin/bash
#SBATCH --job-name=rc1_check
#SBATCH --partition=ZEN4
#SBATCH --cpus-per-task=16
#SBATCH --mem=64G
#SBATCH --time=01:30:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# Release candidate 1: the checks (one ZEN4 CPU job, 16 CPUs, 64 GB). See the docstring of rc1_check.py for the steps.
# Every package is run from its own folder with python -B -I (no bytecode written, no script folder on the path), HF and YOLO folders
# outside the packages. Validation data only. Nothing is uploaded.
set -u
CODE=/path/to/TURKIC_OCR_CODE
D=/path/to/TURKIC_OCR_DATA
W=$D/tmp/rc1_check
unset HF_TOKEN HUGGING_FACE_HUB_TOKEN
echo "job $SLURM_JOB_ID host $(hostname) start $(date -u +%Y-%m-%dT%H:%M:%SZ)"
mkdir -p $W/run $W/hf_home $W/yolo_cfg
rm -f $W/check_results.json
export PYTHONDONTWRITEBYTECODE=1 HF_HOME=$W/hf_home HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 YOLO_OFFLINE=1 YOLO_CONFIG_DIR=$W/yolo_cfg OMP_NUM_THREADS=16 MKL_NUM_THREADS=16
cd $W/run
$CODE/.venv_kraken/bin/python -B -I $CODE/scripts/r5_release/rc1_check.py
echo "check exit $?"
echo "packages: files newer than their SHA256SUMS (must be none):"
find $D/release/rc1 -type f -newer $D/release/rc1/turkic-ocr-paddleocr-vl-1.6/SHA256SUMS ! -name SHA256SUMS | head -n 20
find $D/release/rc1 -name __pycache__ | head -n 5
echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"
|