-
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|New API|Inconsistency] LSTM Encoder lacks the output Linear, but stated in the docstring (#47625) #47626
base: master
Are you sure you want to change the base?
[RLlib|New API|Inconsistency] LSTM Encoder lacks the output Linear, but stated in the docstring (#47625) #47626
Conversation
Signed-off-by: Brieyla <[email protected]>
@brieyla1 Thanks a lot for your PR and the great catch! Because we are rethinking the design of encoders and their configs to make implementation of modules easier for users, we are reluctant to changes in the encoders themselves at this moment and opt for a change of all docstrings. This PR is great as it is in its code implementation. |
Interesting, I wonder what's the impact on the action processing of directly using an LSTM connected to a head, some of that knowledge may be making the training easier when the VF layers are not shared because of the extra linear processing of the data & their relationships before splitting it. At the same time, I understand the reluctance to modify the Catalog & Encoder, as models built with it may have issues.. e.g. when reinitializing the RLModule and migrating the weights. We should do some benchmarks to weigh the benefits of such an "improvement" since we already know the downsides. |
Benchmarking can be done already without adding the linear layer to the encoder but to the head(s): using |
I don't know who to add for review
Why are these changes needed?
Fixes an inconsistency between the docstring and the implementation of the TorchLSTMEncoder class in the RLlib new API.
See Issue for more info
Related issue number
Closes #47625
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.