Download scripts/j2/control_run_cpu.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/j2/control_run_cpu.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/j2/control_run_cpu.sbatch
-
curl -L -o control_run_cpu.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/j2/control_run_cpu.sbatch
1.11 kB
| #SBATCH --job-name=j2_ctl_cpu | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --qos=nu-zen4 | |
| #SBATCH --gres=none | |
| #SBATCH --cpus-per-task=16 | |
| #SBATCH --mem=64G | |
| #SBATCH --time=06:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # J2 positive control on ZEN4 CPU: the SAME run_screen.py, prompts, batch size 16, 1x, bf16, greedy, 48 new tokens, on the 400 | |
| # printed control images. Output folder: DATA/outputs/j11_positive_control/out_cpu. usage: sbatch control_run_cpu.sbatch short [short ...] | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| export HF_HUB_OFFLINE=1 | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN || true | |
| CT=$DATA/outputs/j11_positive_control | |
| mkdir -p $CT/out_cpu | |
| for M in "$@"; do | |
| echo "=== $M $(date -u +%H:%M:%S)" | |
| $CODE/.venv_vlm/bin/python -I $CODE/scripts/j2/run_screen.py $M $DATA/hf_cache/j2_models $CODE/scripts/j2/prompts.json \ | |
| $CT/positive_control_screen_set_v1.tsv $CT/img $CT/out_cpu --device cpu --threads 16 --batch-size 16 --max-new-tokens 48 --scales 1 2>&1 | grep -v -E "Loading weights|^\s*$" | tail -6 | |
| done | |
| echo "[j2_ctl_cpu] done $(date -u +%H:%M:%S)" | |