Download scripts/r5_linedet/ref_finish.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_linedet/ref_finish.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_linedet/ref_finish.sbatch
-
curl -L -o ref_finish.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_linedet/ref_finish.sbatch
1.47 kB
| #SBATCH --job-name=r5_ref_finish_L | |
| #SBATCH --partition=H100 | |
| #SBATCH --qos=nu-h100 | |
| #SBATCH --gres=gpu:h100:1 | |
| #SBATCH --cpus-per-task=32 | |
| #SBATCH --mem=160G | |
| #SBATCH --time=03:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # Clarification H12: resume the reference runs (stage REF) that were cut short or never started in the line block 51128, from REF's saved state, up to the | |
| # paper's stopping rule or the 3 h limit of this job. Exits at once when every reference run reached its stopping rule. Slot L chain: | |
| # 50971 -> 51128 (line block) -> this job -> 51277 (leader job on slot L). | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN | |
| LD=$DATA/outputs/r5/linedet | |
| PY=$CODE/.venv_kraken/bin/python | |
| mkdir -p $LD/ref_finish/driver_logs | |
| echo "job $SLURM_JOB_ID on $(hostname) started $(date -u)" | |
| $PY -I -m linedet.ref_finish_make --out $LD/ref_finish/tasks_ref_finish.json --count_file $LD/ref_finish/n_unfinished.txt --job_seconds 10200 --reserve_s 2400 | |
| N=$(cat $LD/ref_finish/n_unfinished.txt) | |
| if [ "$N" = "0" ]; then | |
| echo "every reference run reached its stopping rule in the line block: nothing to do, exiting at $(date -u)" | |
| exit 0 | |
| fi | |
| export OMP_NUM_THREADS=4 MKL_NUM_THREADS=4 PYTHONUNBUFFERED=1 | |
| $PY -I -m linedet.driver --tasks $LD/ref_finish/tasks_ref_finish.json --status $LD/ref_finish/driver_status.json --logdir $LD/ref_finish/driver_logs --max_seconds 10200 | |
| echo "driver ended $(date -u)" | |