Download scripts/r5_vlma/gpu_smoke_testmode.sh from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_vlma/gpu_smoke_testmode.sh
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_vlma/gpu_smoke_testmode.sh
-
curl -L -o gpu_smoke_testmode.sh https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_vlma/gpu_smoke_testmode.sh
1.44 kB
| # R5 test pass: GPU smoke of the test-pass code on VALIDATION data marked locked in a scratch registry, with scratch gate | |
| # files and scratch output folders (tptest.py gpu): eval_vlm_test.py (HunyuanOCR leader, 64 V1 words + 40 print_real_val | |
| # lines, batch 16), vlmb_eval_vlm_testpass.py (nemotron short, 32 words), LINEDET's commands through linedet_ckpt_task.sh | |
| # (A2 long2x on 60 lines, cuda, LM decoding) and linedet.lm_gate, all pulled by two testpass_runner.py processes from one | |
| # list; then the J4 partial-set rule. Run before 12:00 UTC 24 Nov as a step of an idle slot job, for example: | |
| # srun --jobid=52335 --overlap bash /path/to/TURKIC_OCR_CODE/scripts/r5_vlma/gpu_smoke_testmode.sh | |
| # (any idle slot job: 52334, 52335, or a testpass job waiting for 12:00) | |
| # Duration about 5-8 min (estimate). Output and result: DATA/outputs/r5/vlma/tptest_gpu/tptest_result.json. | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| export HF_HUB_OFFLINE=1 TOKENIZERS_PARALLELISM=false | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN || true | |
| nvidia-smi --query-compute-apps=pid,used_memory --format=csv,noheader | grep -q . && { echo "REFUSED: the GPU runs a compute process"; exit 2; } | |
| mkdir -p $DATA/logs/r5_vlma | |
| LOG=$DATA/logs/r5_vlma/gpu_smoke_testmode_$(date -u +%Y%m%dT%H%M%SZ).log | |
| $CODE/.venv_vlm/bin/python -I $CODE/scripts/r5_vlma/tptest.py gpu --out $DATA/outputs/r5/vlma/tptest_gpu 2>&1 | tee -a $LOG | |
| echo "log $LOG" | |