Download scripts/r5_testpass2/tp2_a5cpu.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.82 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_testpass2/tp2_a5cpu.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_testpass2/tp2_a5cpu.sbatch
-
curl -L -o tp2_a5cpu.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_testpass2/tp2_a5cpu.sbatch
1.82 kB
| #!/bin/bash | |
| #SBATCH --job-name=tp2_a5cpu | |
| #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 | |
| # Test pass 2, amendment 5 of 26 Nov (plan entry n 6), CPU steps: (1) Qwen az_localdoc script measures from existing predictions; | |
| # (2) PP-OCRv6 medium label-free on the TurkishOCR-Bench handwritten pages with the existing detector boxes, then the page scorer. | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| T=$D/outputs/r5/testpass2 | |
| S=$CODE/scripts/r5_testpass2 | |
| G=$T/GATE_testpass2_started.txt | |
| export OMP_NUM_THREADS=16 MKL_NUM_THREADS=16 | |
| hostname; date -u | |
| if [ ! -f $T/plan_amendment6_copied.txt ]; then echo "REFUSED: amendment not copied"; exit 3; fi | |
| $CODE/.venv_kraken/bin/python -I $S/tp2_qwen_az_script.py --pred $T/preds/q_az_localdoc_test/qwen3_vl_2b/leader/az_localdoc_test.tsv --out $T/qwen_az_script.json | |
| echo "=== qwen az exit $? $(date -u +%FT%TZ)" | |
| $CODE/.venv_kraken/bin/python -I $S/tp2_tob_ppocr.py --pages $T/tob/pages_hand.tsv --det $T/pages/det_hand.jsonl \ | |
| --out-greedy $T/pages/read_hand_ppocr_greedy.jsonl --out-lm $T/pages/read_hand_ppocr_lm.jsonl --gate-file $G | |
| echo "=== ppocr read exit $? $(date -u +%FT%TZ)" | |
| export OMP_NUM_THREADS=1 | |
| $CODE/.venv_kraken/bin/python -I $S/tp2_page_score.py --pages $T/tob/pages_hand.tsv --pred $T/pages/read_hand_ppocr_greedy.jsonl \ | |
| --label tob_hand_ppocr_greedy --gate-file $G --out $T/pages/page_score_tob_hand_ppocr_greedy.json | |
| echo "=== score greedy exit $? $(date -u +%FT%TZ)" | |
| $CODE/.venv_kraken/bin/python -I $S/tp2_page_score.py --pages $T/tob/pages_hand.tsv --pred $T/pages/read_hand_ppocr_lm.jsonl \ | |
| --label tob_hand_ppocr_lm --gate-file $G --out $T/pages/page_score_tob_hand_ppocr_lm.json | |
| echo "=== score lm exit $? $(date -u +%FT%TZ)" | |