Download scripts/r5_onemodel/om_build.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 971 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_onemodel/om_build.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_onemodel/om_build.sbatch
-
curl -L -o om_build.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_onemodel/om_build.sbatch
971 Bytes
| #!/bin/bash | |
| #SBATCH --job-name=om_build | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --qos=nu-zen4 | |
| #SBATCH --gres=none | |
| #SBATCH --cpus-per-task=16 | |
| #SBATCH --mem=48G | |
| #SBATCH --time=01:30:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # ONEMODEL pilot (records/R5/ONEMODEL/design.json): page records, resized page images, spotting targets with round-trip checks, the | |
| # page and crop sequence files and the frozen page max_new_tokens -> DATA/data/processed/r6_onemodel/build_report.json. | |
| # Validation and training splits only. CPU only. | |
| set -uo pipefail | |
| C=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN | |
| export HF_HOME=$D/hf_cache/r5_vlmb_home HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 TOKENIZERS_PARALLELISM=false PYTHONDONTWRITEBYTECODE=1 | |
| export OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 | |
| hostname; date -u +%FT%TZ | |
| $C/.venv_vlm/bin/python -I $C/scripts/r5_onemodel/om_build_pages.py --workers 16 "$@" | |
| echo "=== exit $? $(date -u +%FT%TZ)" | |