TensorRT-LLMs/examples/layer_wise_benchmarks/slurm_alloc.sh
Tailing Yuan 91528365a9
[None][feat] Add performance alignment to layer-wise benchmarks (#11018)
Signed-off-by: Tailing Yuan <yuantailing@gmail.com>
2026-01-29 14:01:51 +08:00

22 lines
393 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" \
-J "$ACCOUNT-tensorrt_llm.layer_wise_benchmarks" \
$EXTRA_ARGS \
-t "$TIME" \
--no-shell \
2>&1 \
| tee >(cat >&2) \
| awk '/Granted job allocation/ {print $NF}'