Download scripts/r5_vlma/draft_mix_test.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 957 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_vlma/draft_mix_test.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_vlma/draft_mix_test.sbatch
-
curl -L -o draft_mix_test.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_vlma/draft_mix_test.sbatch
957 Bytes
| #SBATCH --job-name=r5_vlma_draftmix | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --qos=nu-zen4 | |
| #SBATCH --gres=none | |
| #SBATCH --cpus-per-task=4 | |
| #SBATCH --mem=32G | |
| #SBATCH --time=00:40:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # R5 VLMA: dry run of build_sequence.py on the REAL train manifests with a DRAFT yaml (not the frozen mix), 2,000,000 | |
| # rows, timed, into a scratch folder that is deleted afterwards (summary kept). | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| S=$CODE/scripts/r5_vlma | |
| O=$DATA/outputs/r5/vlma/check_mix_draft | |
| rm -rf $O; mkdir -p $O | |
| $CODE/.venv_vlm/bin/python -I $S/make_draft_mix.py $DATA/data/processed/r5/manifests $O/draft_mix.yaml | |
| T0=$(date +%s) | |
| $CODE/.venv_vlm/bin/python -I $S/build_sequence.py $O/draft_mix.yaml $O/draft_seq.tsv --rows 2000000 | |
| echo "exit $? seconds $(( $(date +%s) - T0 ))" | |
| ls -la $O | |
| rm -f $O/draft_seq.tsv $O/draft_seq.tsv.tmp $O/draft_seq.tsv.done | |
| echo "[draftmix] done" | |