Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
porteratzo committed Nov 29, 2023
1 parent 2632b28 commit 0ca51f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openfl-workspace/torch_llm/src/pt_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def save_modelstate(self, col_name, round_num, func_name, kwargs):
)
return state_path, out_path, data_path

def launch_horovod(self, data_path, state_path, out_path, horovod_kwags):
def launch_horovod(self, data_path, state_path, out_path, function_name, horovod_kwags):
result = subprocess.run(
[
"horovodrun",
Expand All @@ -190,7 +190,7 @@ def launch_horovod(self, data_path, state_path, out_path, horovod_kwags):
"--kwargs",
json.dumps(horovod_kwags),
"--func",
"validate",
function_name,
"--out_path",
out_path,
],
Expand Down Expand Up @@ -225,7 +225,7 @@ def validate(
"input_tensor_dict": None,
"use_tqdm": use_tqdm,
}
result = self.launch_horovod(data_path, state_path, out_path, horovod_kwags)
result = self.launch_horovod(data_path, state_path, out_path, 'validate', horovod_kwags, )

if result.returncode != 0:
raise RuntimeError(result.stderr)
Expand Down Expand Up @@ -276,7 +276,7 @@ def train_batches(
"input_tensor_dict": None,
"use_tqdm": use_tqdm,
}
result = self.launch_horovod(data_path, state_path, out_path, horovod_kwags)
result = self.launch_horovod(data_path, state_path, out_path, 'train_batches', horovod_kwags)
if result.returncode != 0:
raise RuntimeError(result.stderr)

Expand Down

0 comments on commit 0ca51f9

Please sign in to comment.