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 #115] Use deterministic optimizer parameters #116

Merged
merged 1 commit into from
May 25, 2022

Conversation

nousr
Copy link
Collaborator

@nousr nousr commented May 25, 2022

caught this in the PyTorch source code when digging a little deeper into #115

warning: Parameters need to be specified as collections that have a deterministic
ordering that is consistent between runs. Examples of objects that don't
satisfy those properties are sets and iterators over values of dictionaries.


If there's concern that there are a lot of duplicate key/value pairs in the model parameters, perhaps we can look into some other deterministic iterable that's both deterministic and unique, but this seems to solve the issue that I was running into...

@lucidrains
Copy link
Owner

@nousr boss

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.

2 participants