-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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] Metrics do-over 03: Switch over Learner
to new MetricsLogger API.
#44995
Merged
sven1977
merged 128 commits into
ray-project:master
from
sven1977:metrics_do_over_03_learner_on_new_metrics_logger
May 1, 2024
Merged
[RLlib] Metrics do-over 03: Switch over Learner
to new MetricsLogger API.
#44995
sven1977
merged 128 commits into
ray-project:master
from
sven1977:metrics_do_over_03_learner_on_new_metrics_logger
May 1, 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
…lete_metrics_and_stats_do_over
…lete_metrics_and_stats_do_over
Signed-off-by: sven1977 <svenmika1977@gmail.com>
…nup_examples_folder_03 # Conflicts: # rllib/examples/multi_agent/multi_agent_pendulum.py and wip Signed-off-by: sven1977 <svenmika1977@gmail.com>
…lete_metrics_and_stats_do_over
…nup_examples_folder_03
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com> Signed-off-by: Sven Mika <sven@anyscale.io>
… cleanup_examples_folder_03
Signed-off-by: sven1977 <svenmika1977@gmail.com>
aslonnie
approved these changes
Apr 28, 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.
approval for docs.
- after additional_update fixes/cleanups Signed-off-by: sven1977 <svenmika1977@gmail.com>
Signed-off-by: sven1977 <svenmika1977@gmail.com>
…ics_do_over_03_learner_on_new_metrics_logger Signed-off-by: sven1977 <svenmika1977@gmail.com> # Conflicts: # rllib/algorithms/dqn/dqn.py # rllib/algorithms/dreamerv3/tf/dreamerv3_tf_learner.py # rllib/algorithms/sac/torch/sac_torch_learner.py # rllib/core/learner/learner.py # rllib/core/learner/tests/test_learner_group.py
…ics_do_over_03_learner_on_new_metrics_logger
- added tensor-mode to MetricsLogger, during which tensors can be logged. - tensor-mode requires to be exited (upon which a tensor dict is returned with the numpy/eager values in the tensors). - these eager/numpy values must then be assigned again into the MetricsLogger, so we can properly reduce. Signed-off-by: sven1977 <svenmika1977@gmail.com>
…ics_do_over_03_learner_on_new_metrics_logger Signed-off-by: sven1977 <svenmika1977@gmail.com> # Conflicts: # rllib/algorithms/ppo/ppo_learner.py # rllib/algorithms/ppo/tf/ppo_tf_learner.py # rllib/algorithms/ppo/torch/ppo_torch_learner.py
…ics_do_over_03_learner_on_new_metrics_logger
…ics_do_over_03_learner_on_new_metrics_logger
Signed-off-by: sven1977 <svenmika1977@gmail.com>
harborn
pushed a commit
to harborn/ray
that referenced
this pull request
May 8, 2024
ryanaoleary
pushed a commit
to ryanaoleary/ray
that referenced
this pull request
Jun 6, 2024
…r API. (ray-project#44995) Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
ryanaoleary
pushed a commit
to ryanaoleary/ray
that referenced
this pull request
Jun 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Metrics do-over 03: Switch over
Learner
to new MetricsLogger API.register_metric(s)
APIs and replace with the new MetricsLogger API, which is also already used by EnvRunners AND Algorithm (if the new stack is activated).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.