-
Notifications
You must be signed in to change notification settings - Fork 120
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 fed-yogi executor model download #245
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0e918c7
Turn off optimizer in executor model update
EricDinging c06b14d
Turn off optimizer in executor model update
EricDinging 157b17f
Turn off optimizer in each train task at executor
EricDinging ba78059
Add qfedq argument
EricDinging d4306f4
Add qfedq argument
EricDinging 65bedc0
Add qfedq argument
EricDinging d4c482b
Add qfedq argument
EricDinging 0537a95
Add qfedq argument
EricDinging 0c56dd1
Fix key error
EricDinging 2778ae0
Try remove 'to device'
EricDinging 043af94
Make model used in test directly transferred from aggregator
EricDinging f5d487b
Fix yogi init value
EricDinging 5ee6d2a
Fix yogi init value
EricDinging d897370
Fix init bug
EricDinging 442c85c
Fix init bug
EricDinging d889ac8
Fix init bug
EricDinging 7918a28
Validated; change optimizer naming in config
EricDinging File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether we can reverse this as it leads to failures in unit tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see. Actually there seems to be a bug for
q-fedavg
. I am working on a new PR for this, and will address this issue.Have you ever encoutered this error before, in executor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Actually not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ic will spend some time working on that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether we can add
self.client_training_results
to theMockAggregator
, as this attribute is necessary forq-fedavg
to keep track of individual client training result.The reason we have this test error is that I put the
q-fedavg
optimizer logic intomodel_wrapper
for the sake of clean code (I think the original code is doing this optimizer step outside model_wrapper if I remember correctly), and feed inmodel_wrapper
withclient_training_results
(whichMockAggregator
does not have).I forgot to change the API for
tensorflow_model_wrapper
. I will update it accordingly. But let me know whether you think it is a good idea.BTW the error above has been fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. No worries to update it. Just make sure there is consistency across all function calls and unit tests. Thanks.