Download scripts/r5_ktrain_scratch.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_ktrain_scratch.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_ktrain_scratch.sbatch
-
curl -L -o r5_ktrain_scratch.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_ktrain_scratch.sbatch
837 Bytes
| #SBATCH --job-name=r5_ktrain_scratch | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --qos=nu-zen4 | |
| #SBATCH --gres=none | |
| #SBATCH --cpus-per-task=4 | |
| #SBATCH --mem=48G | |
| #SBATCH --time=01:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # R5 EVALCODE: time and size check of build_ktrain.py on the real TRAIN manifests (scratch mix, not mix_v1) and the generator's train text. | |
| # Reads training text only. Output under DATA/tmp/evalcode_ktrain_scratch; then loads it back and prints sizes, time and a slice-flag example. | |
| C=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| S=$C/.venv_kraken/bin/python | |
| date -u | |
| $S -I $C/scripts/r5eval/build_ktrain.py --mix $C/config_r5eval/mix_scratch.yaml --out $D/tmp/evalcode_ktrain_scratch | |
| date -u | |
| ls -la $D/tmp/evalcode_ktrain_scratch | |
| sacct -j $SLURM_JOB_ID --format=JobID,Elapsed,MaxRSS,State | |