Skip to content

Commit 67bd298

Browse files
committed
Minor fixes
Signed-off-by: Kaiyu Xie <26294424+kaiyux@users.noreply.github.com>
1 parent 64fc022 commit 67bd298

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/disaggregated/slurm/benchmark/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ slurm:
55
account: "<account>"
66
job_time: "02:00:00"
77
job_name: "<job_name>"
8-
extra_args: ""
8+
extra_args: "" # Cluster specific arguments, e.g. "--gres=gpu:4 --exclude=node1,node2"
99
numa_bind: true # Only enable for GB200 NVL72
1010

1111
# Benchmark Mode

examples/disaggregated/slurm/benchmark/submit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,14 @@ def submit_job(config):
130130
cmd = [
131131
'sbatch',
132132
f'--partition={slurm_config["partition"]}',
133-
f'--gres=gpu:{hw_config["gpus_per_node"]}',
134133
f'--account={slurm_config["account"]}',
135134
f'--time={slurm_config["job_time"]}',
136135
f'--job-name={slurm_config["job_name"]}',
137136
f'--nodes={total_nodes}',
138137
f'--ntasks={total_tasks}',
139138
f'--ntasks-per-node={hw_config["gpus_per_node"]}',
140139
f'--segment={total_nodes}',
141-
slurm_config['extra_args'],
140+
*([arg for arg in slurm_config['extra_args'].split() if arg]),
142141
slurm_config['script_file'],
143142
# Hardware configuration
144143
str(hw_config['gpus_per_node']),

0 commit comments

Comments
 (0)