File size: 569 Bytes
5a3fcf5
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#SBATCH --job-name=popt-2-preprocess
#SBATCH --cpus-per-task=16
#SBATCH --mem=64G
#SBATCH --time=12:00:00
#SBATCH --output=logs/%x-%A_%a.out
# Submitted as an array (run_all.sh sets --array=0-$((PREP_TASKS-1))); each task takes a share of the datasets.
set -euo pipefail
cd "${SLURM_SUBMIT_DIR:-$(dirname "$0")/..}"
source config.env
uv run --no-sync python scripts/preprocess.py --work "$POPT_WORK" --task "${SLURM_ARRAY_TASK_ID:-0}" \
  --ntasks "${SLURM_ARRAY_TASK_COUNT:-1}" --workers "${SLURM_CPUS_PER_TASK:-8}" --decode-threads 1 ${PREPROCESS_ARGS:-}