-
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] Incorporate VectorEncoder into PPORLModule and tests #31238
[RLlib] Incorporate VectorEncoder into PPORLModule and tests #31238
Conversation
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
pi_encoder_config: ModelConfig = None | ||
vf_encoder_config: ModelConfig = None |
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.
nit: Maybe these should be EncoderConfig
?
hidden_layers=self.config.pi_config.hidden_layers, | ||
activation=self.config.pi_config.activation, | ||
obs_spec = ModelSpec( | ||
{ # bxt is just a name for better readability to indicated padded batch |
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.
👍
input_spec=obs_spec | ||
) | ||
self.pi_encoder = self.config.pi_encoder_config.build( | ||
self.shared_encoder.output_spec |
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.
You might want to call spec.filter
here, not sure.
@@ -13,6 +13,9 @@ | |||
|
|||
# TODO (Kourosh): Find a better / more straight fwd approach for sub-components | |||
|
|||
ENCODER_OUT = "embedding" | |||
STATE_IN = "state_in" |
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.
state
is super overloaded. Is it possible to call these recurrent_state
or something?
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
|
Closing in favour of #31469 |
Why are these changes needed?
This PR matches @smorad 's VectorEncoder to the current PPORLModule code.
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.