Skip to content

Commit

Permalink
do not run more than r replications even when using --isolated
Browse files Browse the repository at this point in the history
  • Loading branch information
phueb committed Sep 15, 2023
1 parent f468183 commit bedf800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ venv.bak/

# ph
scripts/*.sh # protect password

.idea
5 changes: 2 additions & 3 deletions ludwig/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,12 @@ def submit():
if namespace.local:
job.param2val['project_path'] = str(project_path)
elif namespace.isolated:
job.param2val['project_path'] = str(cwd)
job.param2val['project_path'] = str(project_path)
else:
job.param2val['project_path'] = str(configs.WorkerDirs.ludwig_data / project_name)

# allow exit if requested parameter configuration already exists requested number of times?
# do counting with --local, because behavior when --local should be identical to behavior of Ludwig worker
if namespace.minimal or namespace.isolated or namespace.clear_runs:
if namespace.clear_runs:
num_needed = namespace.reps
else:
num_needed = job.calc_num_needed(runs_path, namespace.reps)
Expand Down

0 comments on commit bedf800

Please sign in to comment.