Skip to content

Commit

Permalink
[RLlib] Fix test case: Multi-agent CartPole IMPALA (needed 1 more CPU…
Browse files Browse the repository at this point in the history
…). (#46292)
  • Loading branch information
sven1977 authored Jun 27, 2024
1 parent 9a2f2c2 commit 9e1d4fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rllib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ py_test(
tags = ["team:rllib", "exclusive", "learning_tests", "learning_tests_cartpole", "learning_tests_discrete", "torch_only"],
size = "large",
srcs = ["tuned_examples/impala/multi_agent_cartpole_impala.py"],
args = ["--as-test", "--enable-new-api-stack", "--num-agents=2", "--num-gpus=1", "--num-cpus=5"]
args = ["--as-test", "--enable-new-api-stack", "--num-agents=2", "--num-gpus=1", "--num-cpus=6"]
)
py_test(
name = "learning_tests_multi_agent_cartpole_impala_gpu",
Expand Down
4 changes: 2 additions & 2 deletions rllib/tuned_examples/impala/multi_agent_cartpole_impala.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
)
.environment("multi_cart", env_config={"num_agents": args.num_agents})
.training(
train_batch_size_per_learner=750,
train_batch_size_per_learner=1000,
grad_clip=30.0,
grad_clip_by="global_norm",
lr=0.00065,
lr=0.0005,
vf_loss_coeff=0.01,
entropy_coeff=0.0,
)
Expand Down

0 comments on commit 9e1d4fe

Please sign in to comment.