Download scripts/r5_showcase/showcase_gen.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 924 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_showcase/showcase_gen.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_showcase/showcase_gen.sbatch
-
curl -L -o showcase_gen.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_showcase/showcase_gen.sbatch
924 Bytes
| #SBATCH --job-name=showcase_gen | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --cpus-per-task=16 | |
| #SBATCH --mem=64G | |
| #SBATCH --time=01:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # Showcase job A: rebuild the typed "_T" validation pages and dump the generator stages of two handwritten validation pages | |
| # (scripts/r5_showcase/showcase_gen.py). Validation data only. Same generator environment and font folder as r5_production.sbatch. | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| O=/path/to/TURKIC_OCR_DATA/outputs/r5/showcase | |
| echo "job $SLURM_JOB_ID host $(hostname) start $(date -u +%Y-%m-%dT%H:%M:%SZ)" | |
| mkdir -p $O/gen | |
| export OMP_NUM_THREADS=1 PAGESYNTH_FONTS=$CODE/src/pagesynth/assets/fonts PYTHONDONTWRITEBYTECODE=1 | |
| $CODE/.venv_gen/bin/python -I $CODE/scripts/r5_showcase/showcase_gen.py --selection $O/selection.json --out $O/gen --stage_pages kk:1,uz_latn:11 | |
| echo "=== exit $? $(date -u +%Y-%m-%dT%H:%M:%SZ)" | |