-
Notifications
You must be signed in to change notification settings - Fork 6k
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] Cleanup default_resource_request
.
#50475
[RLlib] Cleanup default_resource_request
.
#50475
Conversation
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
…_accelerate_11_fix_multi_node_agg_actors
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
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.
bundles = [driver] + rollout_bundles + evaluation_bundles + learner_bundles | ||
learner_bundles = [] | ||
if config.enable_rl_module_and_learner: | ||
learner_bundles = _get_learner_bundles(config) |
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.
Maybe using
if config.enable_rl_module_and_learner:
learner_bundles = _get_learner_bundles(config)
else:
learner_bundles = []
for better readability.
if worker_index == 0: | ||
return self.env_runner_cls(**kwargs) | ||
|
||
pg_bundle_idx = ( |
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.
Does this assignment per PG order always work?
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.
Let's hope so :D
Yeah, it's indexing into the first n bundles, not counting the 0th bundle for the Trial (Algorithm main process/actor). These are always EnvRunner reserved. The second m bundles - if applicable - are then eval EnvRunners.
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: Sven Mika <[email protected]>
Cleanup
default_resource_request
.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.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.