Skip to content
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] Aggregate impala learner info #25856

Merged
merged 5 commits into from
Jun 22, 2022

Conversation

avnishn
Copy link
Member

@avnishn avnishn commented Jun 16, 2022

Aggregate learner infos for impala training step fn

Why are these changes needed?

Related issue number

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@@ -795,7 +795,8 @@ def place_processed_samples_on_learner_queue(self) -> None:

def process_trained_results(self) -> ResultDict:
# Get learner outputs/stats from output queue.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is outdated here. Could you explain via some more one-line comments what we do here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ofc

Copy link
Contributor

@sven1977 sven1977 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! thanks for the fix @avnishn . Could you just add a few more one-line comments explaining why we sometimes need to deepcopy the threads infos (when there is nothing to process ...)?

@@ -795,7 +795,8 @@ def place_processed_samples_on_learner_queue(self) -> None:

def process_trained_results(self) -> ResultDict:
# Get learner outputs/stats from output queue.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Get learner outputs/stats from output queue.
# Combine learner stats from the learner queue and update relevant timestep counters

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think of this @sven1977

@sven1977 sven1977 merged commit 871aef8 into ray-project:master Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants