TensorRT-LLMs/examples/layer_wise_benchmarks/slurm_alloc.sh
Tailing Yuan f9c7786dc8
[None][feat] Add layer wise benchmarks (#8777)
Signed-off-by: Tailing Yuan <yuantailing@gmail.com>
2025-10-30 20:29:34 +08:00

21 lines
338 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# ACCOUNT=
# PARTITION=
# EXTRA_ARGS="--gres gpu:4"
TIME=${TIME:-01:00:00}
set -x
salloc -A "$ACCOUNT" \
-p "$PARTITION" \
-N "$NODES" \
--segment "$NODES" \
$EXTRA_ARGS \
-t "$TIME" \
--no-shell \
2>&1 \
| tee >(cat >&2) \
| awk '/Granted job allocation/ {print $NF}'