Skip to content

Conversation

@pseudo-rnd-thoughts
Copy link
Member

@pseudo-rnd-thoughts pseudo-rnd-thoughts commented Nov 21, 2025

Description

RLlib has a tuned-examples and examples folder however we believe this is a confusing structure which this PR merges

Therefore, this PR moves all tuned-example scripts into examples/algorithms for the new stack api and examples/_old_api_stack/algorithms for the old stack api.

@pseudo-rnd-thoughts pseudo-rnd-thoughts requested a review from a team as a code owner November 21, 2025 17:17
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the repository by merging the tuned_examples directory into the examples directory, aiming for a simpler project structure. The changes primarily consist of moving files and updating their paths in the rllib/BUILD.bazel file. While most of the path updates are correct, I've identified a critical issue where one of the test configurations points to an incorrect file path, which will cause the test to fail. Additionally, I've found a minor, pre-existing issue in a commented-out test that could be addressed now to prevent future problems. Overall, this is a positive structural change for the repository.

Mark Towers added 2 commits November 21, 2025 18:12
Signed-off-by: Mark Towers <[email protected]>
# Conflicts:
#	rllib/BUILD.bazel
@pseudo-rnd-thoughts pseudo-rnd-thoughts added rllib RLlib related issues go add ONLY when ready to merge, run all tests labels Nov 21, 2025
Mark Towers added 2 commits November 24, 2025 11:06
Signed-off-by: Mark Towers <[email protected]>
Signed-off-by: Mark Towers <[email protected]>
@kamil-kaczmarek kamil-kaczmarek changed the title [rllib] Merge tuned examples [RLlib] Merge tuned examples into examples Nov 25, 2025
#
# This will test python/yaml config files
# inside rllib/tuned_examples/[algo-name] for actual learning success.
# inside rllib/examples/algorithm/[algo-name] for actual learning success.
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
# inside rllib/examples/algorithm/[algo-name] for actual learning success.
# inside rllib/examples/algorithms/[algo-name] for actual learning success.

Copy link
Contributor

@kamil-kaczmarek kamil-kaczmarek left a comment

Choose a reason for hiding this comment

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

Great!

I left few minor requests for edits.

Mark Towers added 4 commits November 26, 2025 11:12
# Conflicts:
#	rllib/BUILD.bazel
#	rllib/examples/algorithms/bc/cartpole_bc.py
#	rllib/examples/algorithms/bc/cartpole_bc_with_offline_evaluation.py
#	rllib/examples/algorithms/bc/pendulum_bc.py
#	rllib/examples/algorithms/iql/pendulum_iql.py
#	rllib/examples/algorithms/marwil/cartpole_marwil.py
Signed-off-by: Mark Towers <[email protected]>
Signed-off-by: Mark Towers <[email protected]>
Copy link
Contributor

@kamil-kaczmarek kamil-kaczmarek left a comment

Choose a reason for hiding this comment

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

LGTM!

@ArturNiederfahrenhorst ArturNiederfahrenhorst merged commit f533bf3 into ray-project:master Nov 27, 2025
6 checks passed
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
## Description
RLlib has a tuned-examples and examples folder however we believe this
is a confusing structure which this PR merges

Therefore, this PR moves all tuned-example scripts into
`examples/algorithms` for the new stack api and
`examples/_old_api_stack/algorithms` for the old stack api.

---------

Signed-off-by: Mark Towers <[email protected]>
Co-authored-by: Mark Towers <[email protected]>
Co-authored-by: Kamil Kaczmarek <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants