-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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; docs] RLlib documentation do-over (new API stack): Main index page. #48285
Open
sven1977
wants to merge
10
commits into
ray-project:master
Choose a base branch
from
sven1977:documentation_do_over_index_page
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
eb4df7d
wip
sven1977 2eccb2c
wip
sven1977 69c69c0
wip
sven1977 1bc41cf
merge
sven1977 b9f4427
wip
sven1977 1b6c4da
wip
sven1977 5971c33
wip
sven1977 8bc1534
wip
sven1977 37581bb
wip
sven1977 08a4910
Apply suggestions from code review
sven1977 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.. note:: | ||
|
||
Ray 2.10.0 introduces the alpha stage of RLlib's "new API stack". | ||
The Ray Team plans to transition algorithms, example scripts, and documentation to the new code base | ||
thereby incrementally replacing the "old API stack" (e.g., ModelV2, Policy, RolloutWorker) throughout the subsequent minor releases leading up to Ray 3.0. | ||
The team is currently transitioning algorithms, example scripts, and | ||
documentation to the new code base throughout the subsequent minor releases leading up to Ray 3.0. | ||
|
||
:doc:`See here </rllib/rllib-new-api-stack>` for more details on how to use the new API stack. | ||
:doc:`See here </rllib/rllib-new-api-stack>` for more details on how to activate and use the new API stack. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -136,7 +136,10 @@ | |||||
best_result = results.get_best_result( | ||||||
metric=f"{ENV_RUNNER_RESULTS}/{EPISODE_RETURN_MEAN}", mode="max" | ||||||
) | ||||||
# Create new Algorithm and restore its state from the last checkpoint. | ||||||
# Create new RLModule and restore its state from the last algo checkpoint. | ||||||
# Note that the checkpoint for the RLModule can be found deeper inside the algo | ||||||
# checkpoint's sub-directories ([algo dir] -> "learner/" -> "module_state/" -> | ||||||
# "[module ID]): | ||||||
rl_module = RLModule.from_checkpoint( | ||||||
os.path.join( | ||||||
best_result.checkpoint.path, | ||||||
|
@@ -147,7 +150,7 @@ | |||||
) | ||||||
) | ||||||
|
||||||
# Create the env to do inference in. | ||||||
# Create a env to do inference in. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
sven1977 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
env = gym.make(args.env) | ||||||
obs, info = env.reset() | ||||||
|
||||||
|
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.
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.
We should bring in here loading the pipelines from checkpoint, too and using them.
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.
We have another example, where we do that (the LSTM one, which requires the connector pipeline for a more sophisticated inference loop w/ state in/outs).