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

assumption of torch.initial_seed function accepting seed arg in DeepSpeedAccelerator abstract class is incorrect #5569

Merged
merged 13 commits into from
Jun 12, 2024

Conversation

polisettyvarma
Copy link
Contributor

@polisettyvarma polisettyvarma commented May 26, 2024

pytorch API reference - https://pytorch.org/docs/stable/generated/torch.initial_seed.html
fix return value of manual_seed api for hpu

@polisettyvarma
Copy link
Contributor Author

@tjruwase @tohtana @mrwyattii @awan-10 please review this

@loadams
Copy link
Contributor

loadams commented May 28, 2024

Thanks @polisettyvarma - it looks like this function never took the seed as an input so this is a good catch.

@polisettyvarma
Copy link
Contributor Author

Thank you @loadams for the review.
@tjruwase @tohtana @mrwyattii @awan-10 please review this

@polisettyvarma polisettyvarma changed the title assumption of initial_seed function accepting seed arg in DeepSpeedAccelerator abstract class is incorrect assumption of torch.initial_seed function accepting seed arg in DeepSpeedAccelerator abstract class is incorrect Jun 6, 2024
@tohtana
Copy link
Contributor

tohtana commented Jun 6, 2024

This is a great finding, thank you @polisettyvarma!

@polisettyvarma
Copy link
Contributor Author

@loadams @tjruwase @tohtana can someone retrigger CI?

@loadams loadams enabled auto-merge June 12, 2024 15:41
@loadams loadams disabled auto-merge June 12, 2024 16:31
@loadams loadams merged commit ac935c7 into microsoft:master Jun 12, 2024
14 of 15 checks passed
@polisettyvarma polisettyvarma deleted the initial_seed branch June 13, 2024 05:40
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.

4 participants