-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[RLlib] Issue 42396: Fix Algorithm.training_step() default implementation (multi-agent ALL_MODULES key causing error). #43316
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.
Thanks for the fix.
Would be nice for users if you tested this path too!
self.workers.sync_weights( | ||
from_worker_or_learner_group=from_worker_or_trainer, | ||
policies=list(train_results.keys()), | ||
policies=set(train_results.keys()) - {ALL_MODULES}, |
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.
Crying out for a comment at least.
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.
Great catch @sven1977 !
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
self.workers.sync_weights( | ||
from_worker_or_learner_group=from_worker_or_trainer, | ||
policies=list(train_results.keys()), | ||
policies=set(train_results.keys()) - {ALL_MODULES}, |
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.
Great catch @sven1977 !
Issue 42396: Fix Algorithm.training_step() default implementation (multi-agent ALL_MODULES key causing error).
Why are these changes needed?
Closes #42396
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.