Skip to content

Commit 2b26b50

Browse files
test multinode
1 parent bb5121d commit 2b26b50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/vllm/ec2/infra/setup_ec2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def wait_for_instances(instance_ids):
444444
time.sleep(30)
445445

446446
if resources.get("sg_fsx"):
447-
max_attempts = 5
447+
max_attempts = 10
448448
for attempt in range(max_attempts):
449449
try:
450450
ec2_cli.delete_security_group(GroupId=resources["sg_fsx"])

test/vllm/ec2/test_artifacts/test_ec2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def test_vllm_benchmark_on_multi_node(head_connection, worker_connection, image_
118118

119119
for conn in [head_connection, worker_connection]:
120120
setup_docker_image(conn, image_uri)
121+
setup_env(conn)
121122

122123
head_connection.put(
123124
"vllm/ec2/utils/head_node_setup.sh", "/home/ec2-user/head_node_setup.sh"
@@ -160,10 +161,9 @@ def test_vllm_benchmark_on_multi_node(head_connection, worker_connection, image_
160161
print("Model serving started successfully")
161162

162163
# Run benchmark
163-
setup_env(worker_connection)
164164
print("Running benchmark...")
165165
benchmark_cmd = "source vllm_env/bin/activate" + create_benchmark_command()
166-
benchmark_result = worker_connection.run(benchmark_cmd, timeout=7200)
166+
benchmark_result = head_connection.run(benchmark_cmd, timeout=7200)
167167
print(f"Benchmark completed: {benchmark_result.stdout}")
168168

169169
return benchmark_result

0 commit comments

Comments
 (0)