Download scripts/r5_rq2/rq2_gate_a.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_rq2/rq2_gate_a.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_rq2/rq2_gate_a.sbatch
-
curl -L -o rq2_gate_a.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_rq2/rq2_gate_a.sbatch
1.02 kB
| #!/bin/bash | |
| #SBATCH --job-name=rq2_a | |
| #SBATCH --partition=H100 | |
| #SBATCH --qos=nu-h100 | |
| #SBATCH --gres=gpu:h100:1 | |
| #SBATCH --cpus-per-task=16 | |
| #SBATCH --mem=96G | |
| #SBATCH --time=04:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| #SBATCH --dependency=singleton | |
| set -u | |
| C=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| READY=$D/outputs/rq2/READY | |
| hostname; date -u; nvidia-smi --query-gpu=name,memory.total --format=csv,noheader | |
| if [ ! -f "$READY" ]; then | |
| echo "NOT STARTED: no READY file (code review not finished); exit 3" | |
| exit 3 | |
| fi | |
| cd "$C" || exit 3 | |
| for F in scripts/r5_rq2/run_gpu.sh scripts/r5_rq2/rq2_gate_a.sbatch scripts/r5_rq2/tasks_A.json; do | |
| if ! grep -q " $F$" "$READY"; then | |
| echo "NOT STARTED: READY does not list $F; exit 3" | |
| exit 3 | |
| fi | |
| done | |
| if ! sha256sum -c --quiet "$READY"; then | |
| echo "NOT STARTED: a reviewed file changed after the review; exit 3" | |
| exit 3 | |
| fi | |
| echo "review check passed; resubmission ${RQ2_RESUBMIT:-0}" | |
| export RQ2_JOB=A | |
| exec bash "$C/scripts/r5_rq2/run_gpu.sh" | |