Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Gitman <[email protected]>
  • Loading branch information
gwarmstrong and Kipok authored Dec 17, 2024
1 parent 145214e commit dc1c3b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nemo_skills/pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_server_command(
num_nodes: int,
model_path: str,
cluster_config: dict,
server_port: int = 5000,
server_port: int,
server_args: str = "",
):
num_tasks = num_gpus
Expand Down Expand Up @@ -776,8 +776,7 @@ def add_task(
executors = []
# assuming server always has the largest resources request, so it needs to go first
if server_config is not None:
server_port = server_config["server_port"]
server_cmd, num_server_tasks = get_server_command(**server_config, server_port=server_port, cluster_config=cluster_config)
server_cmd, num_server_tasks = get_server_command(**server_config, cluster_config=cluster_config)
if 'container' not in server_config:
server_container = cluster_config["containers"][server_config['server_type']]
server_executor = get_executor(
Expand Down

0 comments on commit dc1c3b2

Please sign in to comment.