Download slurm/gpu_array.sbatch.in from velvet-pine-22/PULSE-code: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/velvet-pine-22/PULSE-code/resolve/main/slurm/gpu_array.sbatch.in
- Command line
-
hf download hf://velvet-pine-22/PULSE-code/slurm/gpu_array.sbatch.in
-
curl -L -o gpu_array.sbatch.in https://huggingface.co/velvet-pine-22/PULSE-code/resolve/main/slurm/gpu_array.sbatch.in
887 Bytes
| # Generated by scripts/run_table.py from slurm/gpu_array.sbatch.in. | |
| # GPU jobs target partition ex03A800 only; the array throttle (%N) keeps the | |
| # user's running+pending GPUs on that partition within the cap. | |
| #SBATCH --job-name=@@JOB_NAME@@ | |
| #SBATCH --partition=ex03A800 | |
| #SBATCH --account=@@ACCOUNT@@ | |
| #SBATCH --gres=gpu:@@GPUS_PER_TASK@@ | |
| #SBATCH --nodes=1 | |
| #SBATCH --ntasks=1 | |
| #SBATCH --cpus-per-task=@@CPUS@@ | |
| #SBATCH --mem=@@MEM@@ | |
| #SBATCH --time=@@TIME@@ | |
| #SBATCH --array=0-@@LAST_INDEX@@%@@THROTTLE@@ | |
| @@SBATCH_EXTRA@@ | |
| #SBATCH --output=@@LOG_DIR@@/%x_%A_%a.out | |
| #SBATCH --error=@@LOG_DIR@@/%x_%A_%a.out | |
| set -euo pipefail | |
| ulimit -n 51200 | |
| cd "@@REPO_DIR@@" | |
| export PULSE_ROOT="@@PULSE_ROOT@@" | |
| @@EXTRA_ENV@@ | |
| export PYTHONUNBUFFERED=1 | |
| CMD=$(sed -n "$((SLURM_ARRAY_TASK_ID + 1))p" "@@COMMANDS@@") | |
| echo "[$(date -Is)] host $(hostname) task ${SLURM_ARRAY_TASK_ID}: ${CMD}" | |
| eval "${CMD}" | |