Download scripts/j2/finalize.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/j2/finalize.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/j2/finalize.sbatch
-
curl -L -o finalize.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/j2/finalize.sbatch
1.15 kB
| #SBATCH --job-name=j2_finalize | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --qos=nu-zen4 | |
| #SBATCH --gres=none | |
| #SBATCH --cpus-per-task=2 | |
| #SBATCH --mem=16G | |
| #SBATCH --time=00:30:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # J2: gather everything that has finished (CPU only, no model): results.tsv, raw_samples.tsv, positive_control.tsv (cpu and gpu roots), | |
| # controls_2.tsv. Safe to run again at any time. | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| PY=$CODE/.venv/bin/python | |
| S=$CODE/scripts/j2 | |
| DS=$DATA/outputs/j11_stage1_kohtd | |
| DC=$DATA/outputs/j11_positive_control | |
| $PY -I $S/collect.py $DS $DS/screen_set_v1.tsv $S/scorelib.py $DS/results.tsv | |
| $PY -I $S/raw_samples.py $DS $DS/screen_set_v1.tsv $S/scorelib.py $DS/raw_samples.tsv | |
| ARGS="cpu=$DC/out_cpu" | |
| [ -d $DC/out_gpu ] && ARGS="$ARGS gpu=$DC/out_gpu" | |
| $PY -I $S/control_report.py $DC/positive_control_screen_set_v1.tsv $S/scorelib.py $DC/positive_control.tsv $ARGS | |
| $PY -I $S/controls2_report.py $DATA/outputs/j11_controls_2 $DC/positive_control_screen_set_v1.tsv $DC/out_cpu $S/scorelib.py $DATA/outputs/j11_controls_2/controls_2.tsv | |
| echo "[j2_finalize] done" | |