Download scripts/j2/smoke_gpu.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/j2/smoke_gpu.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/j2/smoke_gpu.sbatch
-
curl -L -o smoke_gpu.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/j2/smoke_gpu.sbatch
1.22 kB
| #SBATCH --job-name=j2_gpusmoke | |
| #SBATCH --partition=H100 | |
| #SBATCH --qos=nu-h100 | |
| #SBATCH --gres=gpu:h100:1 | |
| #SBATCH --cpus-per-task=16 | |
| #SBATCH --mem=96G | |
| #SBATCH --time=00:30:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # J2 step 6, GPU part: 16 crops per model at 1x and 2x on one H100 (checks the CUDA code path, memory counter and speed | |
| # bookkeeping), offline, separate output folder. usage: sbatch smoke_gpu.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 | |
| OUT=$DATA/outputs/j11_smoke_gpu | |
| mkdir -p $OUT | |
| echo "job $SLURM_JOB_ID on $(hostname)" | |
| nvidia-smi --query-gpu=name,driver_version,memory.total --format=csv | |
| 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 \ | |
| $DATA/outputs/j11_stage1_kohtd/screen_set_v1.tsv $DATA/data/processed/kohtd_words_raw/KOHTD_dataset/HK_dataset/img $OUT \ | |
| --device cuda --batch-size 16 --scales 1,2 --limit 16 2>&1 | grep -v -E "Loading weights|^\s*$" | tail -12 | |
| done | |
| echo "[j2_gpusmoke] done $(date -u +%H:%M:%S)" | |