turkic-ocr-code / scripts /release2 /rel2_d5_prep.sbatch
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
1.79 kB
#!/bin/bash
#SBATCH --job-name=rel2_d5prep
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=4
#SBATCH --mem=16G
#SBATCH --time=00:40:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# RELEASE2 owner decisions (25 Nov 2026): D5 data preparation and D4 page counts (rel2_d5_prep.py), and the licence texts the packages
# must ship (downloaded as plain text into DATA/tmp/release2/licence_texts/, never executed; sha256 recorded).
set -u
D=/path/to/TURKIC_OCR_DATA
L=$D/tmp/release2/licence_texts
echo "start $(date -u +%FT%TZ) host $(hostname)"
/path/to/TURKIC_OCR_CODE/.venv_gen/bin/python -I /path/to/TURKIC_OCR_CODE/scripts/release2/rel2_d5_prep.py $D/tmp/release2/d5_input/excluded_pages_personal_fonts.tsv
echo "prep exit $?"
mkdir -p $L
curl -sS -L --max-time 60 -o $L/apache-2.0.txt -w "apache %{http_code}\n" https://www.apache.org/licenses/LICENSE-2.0.txt
curl -sS -L --max-time 60 -o $L/agpl-3.0.txt -w "agpl %{http_code}\n" https://www.gnu.org/licenses/agpl-3.0.txt
curl -sS -L --max-time 60 -o $L/paddleocr_vl_1_6_LICENSE -w "paddle %{http_code}\n" https://huggingface.co/PaddlePaddle/PaddleOCR-VL-1.6/resolve/132c45f52c0a26ed5a6b2f6bd8e3985794cc27dd/LICENSE
sha256sum $L/*
wc -l $L/*
head -n 3 $L/apache-2.0.txt $L/agpl-3.0.txt $L/paddleocr_vl_1_6_LICENSE
tail -n 14 $L/paddleocr_vl_1_6_LICENSE
diff <(head -n 176 $L/apache-2.0.txt) <(head -n 176 $L/paddleocr_vl_1_6_LICENSE) > /dev/null && echo "paddle_first_176_lines_equal_apache" || echo "paddle_differs_in_first_176_lines"
cmp $L/agpl-3.0.txt /path/to/TURKIC_OCR_CODE/.venv_kraken/lib/python3.12/site-packages/ultralytics-8.4.216.dist-info/licenses/LICENSE && echo "agpl_equal_ultralytics_copy" || echo "agpl_differs_from_ultralytics_copy"
echo "end $(date -u +%FT%TZ)"