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; offline RL; docs] Docs do-over (new API stack): Offline RL. #48818

Merged
merged 83 commits into from
Jan 3, 2025

Conversation

simonsays1980
Copy link
Collaborator

@simonsays1980 simonsays1980 commented Nov 20, 2024

Why are these changes needed?

With the new Offline RL API soon to be released the corresponding docs need an overhaul. This PR includes all these changes with:

  • An introduction to the new API and its key principles
  • Examples of how to record expert data, train on expert data, convert external data and old SampleBatch data.
  • Hints and notes about data formats, underlying procedures, etc.
  • Scaling and tuning guides (to come) and descriptions about internals

These docs should enable old and new RLlib users to implement offline RL on their data fast and smoothly. Furthermore, it should apply to real industry use cases which need to digest peta-bytes of offline data to train policies for highly-complex tasks.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • 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 added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • 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 :(

…ptions, hints, notes, and testcode.

Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
@simonsays1980 simonsays1980 marked this pull request as ready for review November 20, 2024 13:08
@simonsays1980 simonsays1980 added rllib RLlib related issues rllib-docs-or-examples Issues related to RLlib documentation or rllib/examples labels Nov 20, 2024
@sven1977 sven1977 changed the title [RLlib; Offline RL] - Overhaul Offline RL Docs [RLlib; Offline RL] Documentation do-over: Offline RL. Nov 20, 2024
@sven1977
Copy link
Contributor

One warning, which breaks the readthedocs build. I think it's this one:

/home/docs/checkouts/readthedocs.org/user_builds/anyscale-ray/checkouts/48818/doc/source/rllib/rllib-offline.rst:666: WARNING: Enumerated list ends without a blank line; unexpected unindent.

Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
Comment on lines 422 to 426
# Make sure you use the new API stack.
.api_stack(
enable_rl_module_and_learner=True,
enable_env_runner_and_connector_v2=True,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Make sure you use the new API stack.
.api_stack(
enable_rl_module_and_learner=True,
enable_env_runner_and_connector_v2=True,
)

…issing docstrings in 'AlgorithmConfig'.

Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
simonsays1980 and others added 22 commits December 16, 2024 14:58
…ll in there.

Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
…t, which produces an error in the docs tests.§

Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
…bute.

Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
…mote_args (ray-project#48955)

Per request from @GokuMohandas, add link to runtime_env API ref for all
commands with the `ray_remote_args` parameter to improve usability.

## Related issue number

<!-- For example: "Closes ray-project#1234" -->

## Checks

- [x] I've signed off every commit(by using the -s flag, i.e., `git
commit -s`) in this PR.
- [ ] 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 added any new APIs to the API Reference. For example, if I
added a
method in Tune, I've added it in `doc/source/tune/api/` under the
           corresponding `.rst` file.
- [ ] 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 :(

---------

Signed-off-by: angelinalg <angelina@anyscale.com>
Signed-off-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Signed-off-by: hjiang <hjiang@anyscale.com>
Signed-off-by: hjiang <dentinyhao@gmail.com>
Signed-off-by: dentiny <dentinyhao@gmail.com>
Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
…ng a bug.

Signed-off-by: simonsays1980 <simon.zehnder@gmail.com>
@sven1977 sven1977 enabled auto-merge (squash) January 2, 2025 12:02
@github-actions github-actions bot disabled auto-merge January 3, 2025 11:51
@sven1977 sven1977 merged commit 59a8cb9 into ray-project:master Jan 3, 2025
5 checks passed
@sven1977 sven1977 changed the title [RLlib; Offline RL] Documentation do-over: Offline RL. [RLlib; offline RL; docs] Docs do-over (new API stack): Offline RL. Jan 3, 2025
roshankathawate pushed a commit to roshankathawate/ray that referenced this pull request Jan 7, 2025
roshankathawate pushed a commit to roshankathawate/ray that referenced this pull request Jan 9, 2025
…8818)

Signed-off-by: Roshan Kathawate <roshankathawate@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-docs-or-examples Issues related to RLlib documentation or rllib/examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.