-
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] Make the "tiny CNN" example RLModule run with APPO (by implementing TargetNetAPI
)
#49825
[RLlib] Make the "tiny CNN" example RLModule run with APPO (by implementing TargetNetAPI
)
#49825
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.
LGTM. I have a question to the key used for the action logits.
embeddings = self._target_base_cnn_stack(obs) | ||
logits = self._target_logits(embeddings) | ||
return { | ||
OLD_ACTION_DIST_LOGITS_KEY: torch.squeeze(logits, dim=[-1, -2]) |
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.
Why do we have this key? And why is it in the APPO algforithm only. Can this then run with a single-agent setup?
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 point! This should probably not be algo-specific, either.
We should call it "TARGET_ACTION_DIST_INPUTS" to make it generic, and move it somewhere else (in the rl_module/apis folder).
Will change ...
…target_api_to_example_rlms
…enting `TargetNetAPI`) (ray-project#49825)
…enting `TargetNetAPI`) (ray-project#49825) Signed-off-by: Anson Qian <anson627@gmail.com>
…enting `TargetNetAPI`) (#49825)
…enting `TargetNetAPI`) (ray-project#49825) Signed-off-by: Puyuan Yao <williamyao034@gmail.com>
Make the "tiny CNN" example RLModule run with APPO (by implementing
TargetNetAPI
)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.