-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[RLlib] Add tags option to actor manager #31803
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
Conversation
Signed-off-by: Avnish <avnishnarayan@gmail.com>
Signed-off-by: Avnish <avnishnarayan@gmail.com>
Signed-off-by: Avnish <avnishnarayan@gmail.com>
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.
some nit picking pure programming comments
Signed-off-by: Avnish <avnishnarayan@gmail.com>
Signed-off-by: Avnish <avnishnarayan@gmail.com>
rllib/utils/actor_manager.py
Outdated
@@ -599,6 +605,7 @@ def foreach_actor( | |||
def foreach_actor_async( | |||
self, | |||
func: Union[Callable[[Any], Any], List[Callable[[Any], Any]]], | |||
tag: str = "default", |
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.
so thinking about this a bit more, it would be the best if we can attach multiple tags to an async all, like basically this parameter should be tags:
for sync alls, tags would be ()
for async call users, they can attached multiple tags for a single call, like ("rollout_worker", "sync_weight")
for async fetch result, we can also specify a single, or list of tags. for example, ("eval", "sample") will fetch all the sample() calls on eval workers.
I understand this is back & forth a few times, not sure if you are interested in making the changes.
if not, we can merge and unblock. you for now, and I can make these updates later today.
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.
actually can I add a todo here and we punt on this?
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.
We need this pr to implement the async trainer runner and I am falling behind atm
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've added a todo as a comment for now
Signed-off-by: Avnish <avnishnarayan@gmail.com>
Signed-off-by: Avnish <avnishnarayan@gmail.com>
Signed-off-by: Avnish <avnishnarayan@gmail.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Avnish avnishnarayan@gmail.com
Add named tags for actor manager async requests.
that way async requests can be grouped and requested together.
Why are these changes needed?
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.