-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: add ReceiverSenderProxy. #168
feat: add ReceiverSenderProxy. #168
Conversation
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 do not get this, why are we adding a ReceiverSendProxy, what is the difference with seperated actors and do we have to keep both of them?
global _SENDER_RECEIVER_PROXY_ACTOR | ||
global _RECEIVER_PROXY_ACTOR_NAME | ||
_SENDER_RECEIVER_PROXY_ACTOR = SenderReceiverProxyActor.options( | ||
name=_RECEIVER_PROXY_ACTOR_NAME, **actor_options |
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.
If this is named with receiver, how send
get the SendProxyActor?
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.
When SenderReceiverProxy
is enabled, actor names of sender and receiver are same.
Since some communication backends are bidirectional, meaning that the proxy can do sending/receiving, e.g. SecretFlow Link, grpc streaming. Now we need to apply SecretFlow link to RayFed. That's why we need this PR, though it's not graceful .
Yea, the default is separated actors still. RayFed does not provide ReceiverSendProxy implementation. |
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.
LGTM
Some ut is flaky, i will open a new PR to fix #153 (comment) |
addresses
param in fed.init