Skip to content

Commit 644b594

Browse files
authored
[CI; RLlib] Increase parallel example scripts processes from 5 to 6. (#49217)
1 parent 195ab40 commit 644b594

22 files changed

+1
-2227
lines changed

.buildkite/rllib.rayci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ steps:
5151

5252
- label: ":brain: rllib: examples"
5353
tags: rllib
54-
parallelism: 5
54+
parallelism: 6
5555
instance_type: large
5656
commands:
5757
- bazel run //ci/ray_ci:test_in_docker -- //rllib/... rllib

.buildkite/rllib_contrib.rayci.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

doc/source/rllib/rllib-models.rst

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -390,29 +390,6 @@ Take a look at this model example that does exactly that:
390390
:end-before: __sphinx_doc_end__
391391

392392

393-
**Using the Trajectory View API: Passing in the last n actions (or rewards or observations) as inputs to a custom Model**
394-
395-
It is sometimes helpful for learning not only to look at the current observation
396-
in order to calculate the next action, but also at the past n observations.
397-
In other cases, you may want to provide the most recent rewards or actions to the model as well
398-
(like our LSTM wrapper does if you specify: ``use_lstm=True`` and ``lstm_use_prev_action/reward=True``).
399-
All this may even be useful when not working with partially observable environments (PO-MDPs)
400-
and/or RNN/Attention models, as for example in classic Atari runs, where we usually use framestacking of
401-
the last four observed images.
402-
403-
The trajectory view API allows your models to specify these more complex "view requirements".
404-
405-
Here is a simple (non-RNN/Attention) example of a Model that takes as input
406-
the last 3 observations (very similar to the recommended "framestacking" for
407-
learning in Atari environments):
408-
409-
.. literalinclude:: ../../../rllib/examples/_old_api_stack/models/trajectory_view_utilizing_models.py
410-
:language: python
411-
:start-after: __sphinx_doc_begin__
412-
:end-before: __sphinx_doc_end__
413-
414-
A PyTorch version of the above model is also `given in the same file <https://github.com/ray-project/ray/blob/master/rllib/examples/_old_api_stack/models/trajectory_view_utilizing_models.py>`__.
415-
416393

417394
Custom Action Distributions
418395
---------------------------

rllib/BUILD

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,13 +1455,6 @@ py_test(
14551455
srcs = ["models/tests/test_lstms.py"]
14561456
)
14571457

1458-
py_test(
1459-
name = "test_models",
1460-
tags = ["team:rllib", "models"],
1461-
size = "medium",
1462-
srcs = ["models/tests/test_models.py"]
1463-
)
1464-
14651458
py_test(
14661459
name = "test_preprocessors",
14671460
tags = ["team:rllib", "models"],
@@ -1978,34 +1971,6 @@ py_test(
19781971
# ----------------------
19791972
# Old API stack examples
19801973
# ----------------------
1981-
# subdirectory: _old_api_stack/
1982-
py_test(
1983-
name = "examples/_old_api_stack/complex_struct_space_tf",
1984-
main = "examples/_old_api_stack/complex_struct_space.py",
1985-
tags = ["team:rllib", "exclusive", "examples", "old_api_stack"],
1986-
size = "small",
1987-
srcs = ["examples/_old_api_stack/complex_struct_space.py"],
1988-
args = ["--framework=tf"],
1989-
)
1990-
1991-
py_test(
1992-
name = "examples/_old_api_stack/complex_struct_space_tf_eager",
1993-
main = "examples/_old_api_stack/complex_struct_space.py",
1994-
tags = ["team:rllib", "exclusive", "examples", "old_api_stack"],
1995-
size = "small",
1996-
srcs = ["examples/_old_api_stack/complex_struct_space.py"],
1997-
args = ["--framework=tf2"],
1998-
)
1999-
2000-
py_test(
2001-
name = "examples/_old_api_stack/complex_struct_space_torch",
2002-
main = "examples/_old_api_stack/complex_struct_space.py",
2003-
tags = ["team:rllib", "exclusive", "examples", "old_api_stack"],
2004-
size = "small",
2005-
srcs = ["examples/_old_api_stack/complex_struct_space.py"],
2006-
args = ["--framework=torch"],
2007-
)
2008-
20091974
# subdirectory: _old_api_stack/connectors/
20101975
py_test(
20111976
name = "examples/_old_api_stack/connectors/run_connector_policy",
@@ -2024,25 +1989,6 @@ py_test(
20241989
args = ["--use-lstm"],
20251990
)
20261991

2027-
py_test(
2028-
name = "examples/_old_api_stack/connectors/adapt_connector_policy",
2029-
main = "examples/_old_api_stack/connectors/adapt_connector_policy.py",
2030-
tags = ["team:rllib", "exclusive", "examples", "old_api_stack"],
2031-
size = "small",
2032-
srcs = ["examples/_old_api_stack/connectors/adapt_connector_policy.py"],
2033-
)
2034-
2035-
# py_test(
2036-
# name = "examples/_old_api_stack/connectors/self_play_with_policy_checkpoint",
2037-
# main = "examples/_old_api_stack/connectors/self_play_with_policy_checkpoint.py",
2038-
# tags = ["team:rllib", "exclusive", "examples", "old_api_stack"],
2039-
# size = "small",
2040-
# srcs = ["examples/_old_api_stack/connectors/self_play_with_policy_checkpoint.py"],
2041-
# args = [
2042-
# "--train_iteration=1" # Smoke test.
2043-
# ]
2044-
# )
2045-
20461992
# ----------------------
20471993
# New API stack
20481994
# Note: This includes to-be-translated-to-new-API-stack examples
@@ -2631,26 +2577,6 @@ py_test(
26312577
args = ["--enable-new-api-stack", "--stop-reward=150.0"]
26322578
)
26332579

2634-
#@OldAPIStack
2635-
py_test(
2636-
name = "examples/inference/policy_inference_after_training_with_attention_tf",
2637-
main = "examples/inference/policy_inference_after_training_with_attention.py",
2638-
tags = ["team:rllib", "exclusive", "examples"],
2639-
size = "medium",
2640-
srcs = ["examples/inference/policy_inference_after_training_with_attention.py"],
2641-
args = ["--stop-iters=2", "--framework=tf"]
2642-
)
2643-
2644-
#@OldAPIStack
2645-
py_test(
2646-
name = "examples/inference/policy_inference_after_training_with_attention_torch",
2647-
main = "examples/inference/policy_inference_after_training_with_attention.py",
2648-
tags = ["team:rllib", "exclusive", "examples"],
2649-
size = "medium",
2650-
srcs = ["examples/inference/policy_inference_after_training_with_attention.py"],
2651-
args = ["--stop-iters=2", "--framework=torch"]
2652-
)
2653-
26542580
#@OldAPIStack
26552581
py_test(
26562582
name = "examples/inference/policy_inference_after_training_with_lstm_tf",
@@ -2897,17 +2823,6 @@ py_test(
28972823
# args = ["--as-test"]
28982824
# )
28992825

2900-
#@OldAPIStack
2901-
# TODO (sven): Doesn't seem to learn at the moment. Uncomment once fixed.
2902-
# py_test(
2903-
# name = "examples/offline_rl/custom_input_api_cql_torch",
2904-
# main = "examples/offline_rl/custom_input_api.py",
2905-
# tags = ["team:rllib", "exclusive", "examples"],
2906-
# size = "medium",
2907-
# srcs = ["examples/offline_rl/custom_input_api.py"],
2908-
# args = ["--as-test", "--stop-reward=-300", "--stop-iters=1"]
2909-
# )
2910-
29112826
#@OldAPIStack
29122827
py_test(
29132828
name = "examples/offline_rl/offline_rl_torch_old_api_stack",

rllib/examples/_old_api_stack/complex_struct_space.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)