Skip to content

Commit

Permalink
Missing config fields to copy along with gpu allocations
Browse files Browse the repository at this point in the history
- n_nodes
- world_size
- gpu_ranks
  • Loading branch information
Waino committed Dec 11, 2023
1 parent 9d2cc79 commit 42e39a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/config_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,9 @@ def extra_copy_gpu_assignment(opts):
raise Exception(f'Tasks do not match. Missing tasks: {missing_tasks}, Unused tasks: {unused_tasks}')
for task_key, task_opts in opts.in_config[0]['tasks'].items():
task_opts['node_gpu'] = opts.copy_from[0]['tasks'][task_key]['node_gpu']
opts.in_config[0]['n_nodes'] = opts.copy_from[0]['n_nodes']
opts.in_config[0]['world_size'] = opts.copy_from[0]['world_size']
opts.in_config[0]['gpu_ranks'] = opts.copy_from[0]['gpu_ranks']


if __name__ == '__main__':
Expand Down

0 comments on commit 42e39a2

Please sign in to comment.