Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi-gpu seeds #162

Merged
merged 1 commit into from
May 24, 2022
Merged

Fix multi-gpu seeds #162

merged 1 commit into from
May 24, 2022

Conversation

vwxyzjn
Copy link
Contributor

@vwxyzjn vwxyzjn commented May 23, 2022

This PR properly fixes the multi-GPU seeds.

It's a simple fix but quite ugly: a better fix probably would involved a larger refactoring such as putting horovod stuff into the main runner.py

@vwxyzjn vwxyzjn marked this pull request as ready for review May 23, 2022 15:19
@vwxyzjn vwxyzjn mentioned this pull request May 23, 2022
2 tasks
if 'env_config' in params['config']:
if not 'seed' in params['config']['env_config']:
params['config']['env_config']['seed'] = self.seed
else:
if params["config"].get('multi_gpu', False):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean true here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume by default multi_gpu is False?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes. I read it in the wrong way like if multi gpu is false then.

@ViktorM ViktorM merged commit 47b9f62 into Denys88:master May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants