turkic-ocr-code / scripts /r5_linedet /timing_cpu.sbatch
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
610 Bytes
#!/bin/bash
#SBATCH --job-name=r5_ld_cputime
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=16
#SBATCH --mem=32G
#SBATCH --time=01:00:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# Lines per second of A1, A2, A3 on 16 ZEN4 CPU threads (random weights; speed does not depend on them).
CODE=/path/to/TURKIC_OCR_CODE
unset HF_TOKEN HUGGING_FACE_HUB_TOKEN
export OMP_NUM_THREADS=16 MKL_NUM_THREADS=16
hostname; nproc; uptime
for ARM in A1 A2 A3; do
$CODE/.venv_kraken/bin/python -I -m linedet.timing --arm $ARM --device cpu --threads 16 --iters 60
done