Skip to content

Commit

Permalink
[rllib] Give rnnsac_stateless cartpole gpu, increase timeout (ray-pro…
Browse files Browse the repository at this point in the history
…ject#21407)

Increase test_preprocessors runtimes.
  • Loading branch information
avnishn authored Jan 6, 2022
1 parent c7b2d54 commit f7a5fc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rllib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ py_test(
py_test(
name = "test_preprocessors",
tags = ["team:ml", "models"],
size = "medium",
size = "large",
srcs = ["models/tests/test_preprocessors.py"]
)

Expand Down
5 changes: 4 additions & 1 deletion rllib/examples/rnnsac_stateless_cartpole.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import os
from pathlib import Path

import ray
Expand All @@ -21,12 +22,14 @@
"checkpoint_score_attr": "episode_reward_mean",
"stop": {
"episode_reward_mean": 65.0,
"timesteps_total": 100000,
"timesteps_total": 50000,
},
"metric": "episode_reward_mean",
"mode": "max",
"verbose": 2,
"config": {
"seed": 42,
"num_gpus": int(os.environ.get("RLLIB_NUM_GPUS", "0")),
"framework": "torch",
"num_workers": 4,
"num_envs_per_worker": 1,
Expand Down
2 changes: 1 addition & 1 deletion rllib/models/tests/test_preprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def tearDownClass(cls) -> None:

def test_preprocessing_disabled(self):
config = ppo.DEFAULT_CONFIG.copy()

config["seed"] = 42
config["env"] = "ray.rllib.examples.env.random_env.RandomEnv"
config["env_config"] = {
"config": {
Expand Down

0 comments on commit f7a5fc3

Please sign in to comment.