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

Log communication cost #120

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Log communication cost #120

merged 2 commits into from
Oct 22, 2024

Conversation

rishi-s8
Copy link
Collaborator

A first attempt at logging the up and down communication costs in GRPC. A decorator on the sender's end and inside callback_fn at the receiver.

@rishi-s8 rishi-s8 requested a review from tremblerz October 21, 2024 18:34
@rishi-s8 rishi-s8 marked this pull request as draft October 21, 2024 21:01
@tremblerz
Copy link
Contributor

Why not GRPC's interceptor?

@rishi-s8
Copy link
Collaborator Author

It is doing the same thing, so this was just easier and more intuitive. grpc interceptor on the requestor's end is gonna have the same lines of code. On the sender's end, it still makes sense, but having a similar structure on both ends makes more sense.

@rishi-s8
Copy link
Collaborator Author

Also, given the structure of the algorithms, after each round, only the received communication cost will be reliable because of asynchrony.

@rishi-s8 rishi-s8 marked this pull request as ready for review October 22, 2024 00:30
@rishi-s8
Copy link
Collaborator Author

Tested with fl_static.py and fl.py

@tremblerz tremblerz merged commit 93833a0 into aidecentralized:main Oct 22, 2024
0 of 2 checks passed
@rishi-s8 rishi-s8 deleted the commCost branch October 24, 2024 18:54
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