-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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] APPO enhancements (new API stack) vol 03: Fix target network update setting and logic. #48802
Merged
sven1977
merged 20 commits into
ray-project:master
from
sven1977:appo_enhancements_03_fix_target_net_update_freq
Nov 21, 2024
Merged
[RLlib] APPO enhancements (new API stack) vol 03: Fix target network update setting and logic. #48802
sven1977
merged 20 commits into
ray-project:master
from
sven1977:appo_enhancements_03_fix_target_net_update_freq
Nov 21, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simonsays1980
approved these changes
Nov 19, 2024
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.
and `train_batch_size_per_learner=500`, then the target net is updated | ||
every 2*4*2*500=8000 trained env steps (every 16 batch updates on each | ||
learner). | ||
The authors in [1] suggests that this setting is robust to a range of |
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.
Awesome. These comments are so helpful!
…_freq Signed-off-by: Sven Mika <svenmika1977@gmail.com>
…net_update_freq' into appo_enhancements_03_fix_target_net_update_freq
…ments_03_fix_target_net_update_freq # Conflicts: # rllib/algorithms/appo/appo.py
…_enhancements_01_circular_buffer
…ments_03_fix_target_net_update_freq
jecsand838
pushed a commit
to jecsand838/ray
that referenced
this pull request
Dec 4, 2024
…update setting and logic. (ray-project#48802) Signed-off-by: Connor Sanders <connor@elastiflow.com>
dentiny
pushed a commit
to dentiny/ray
that referenced
this pull request
Dec 7, 2024
…update setting and logic. (ray-project#48802) Signed-off-by: hjiang <dentinyhao@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
go
add ONLY when ready to merge, run all tests
rllib
RLlib related issues
rllib-algorithms
An RLlib algorithm/Trainer is not learning.
rllib-newstack
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
APPO enhancements (new API stack) vol 03: Fix target network update setting and logic.
NUM_ENV_STEPS_TRAINED_LIFETIME
metrics, not SAMPLED(!)n
from the paper, where n=N [number of batches in buffer] * K [max iterations per batch] * [train batch size].target_network_update_freq
from 1 to 2. The current setting of 1 makes it such that the network gets updated after each batch update, b/c the unit used (individual timesteps) is wrong.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.