Download scripts/r5_testpass2/tp2_kzb_fetch.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_testpass2/tp2_kzb_fetch.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_testpass2/tp2_kzb_fetch.sbatch
-
curl -L -o tp2_kzb_fetch.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_testpass2/tp2_kzb_fetch.sbatch
1.37 kB
| #SBATCH --job-name=tp2_kzb_fetch | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --cpus-per-task=4 | |
| #SBATCH --mem=8G | |
| #SBATCH --time=01:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # Owner-approved (25 Nov 2026): download the handwritten config of Omar-2002/kz_benchmark_data at the pinned revision (no token) into | |
| # DATA/data/raw/kz_benchmark_hw, sha256 of every file, checksum file; then the page list and 1280 px detector copies (no model). | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| K=$D/outputs/r5/testpass2/kzb | |
| export HF_HOME=$D/hf_cache/kzb_home HF_HUB_DISABLE_TELEMETRY=1 | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN HF_HUB_OFFLINE | |
| cd $D/tmp | |
| hostname; date -u | |
| $CODE/.venv_dl/bin/python -I $CODE/scripts/r5_testpass2/tp2_kzb_fetch.py fetch --dest $D/data/raw/kz_benchmark_hw --out $K/fetch.json \ | |
| --listing $K/listing.json --pattern "real_handwritten_data/data.csv" --pattern "real_handwritten_data/images/*" | |
| echo "=== fetch exit $?" | |
| cd $D/data/raw/kz_benchmark_hw && sha256sum README.md real_handwritten_data/data.csv real_handwritten_data/images/*.jpg > $D/checksums/kz_benchmark_hw.sha256 | |
| echo "=== sha256 exit $? files $(wc -l < $D/checksums/kz_benchmark_hw.sha256)" | |
| cd $D/tmp | |
| $CODE/.venv_kraken/bin/python -I $CODE/scripts/r5_testpass2/tp2_kzb_prep.py --src $D/data/raw/kz_benchmark_hw --outdir $K | |
| echo "=== prep exit $? $(date -u)" | |