mirror of
https://github.com/wassname/ray.git
synced 2026-09-10 12:38:43 +08:00
[rllib] clarify train batch size for PPO (#2793)
It's possible to configure PPO in a way that ends up discarding most of the samples (they are treated as "stragglers"). Add a warning when this happens, and raise an exception if the waste is particularly egregious.
This commit is contained in:
@@ -107,15 +107,16 @@ class ModelSupportedSpaces(unittest.TestCase):
|
||||
"PPO", {
|
||||
"num_workers": 1,
|
||||
"num_sgd_iter": 1,
|
||||
"timesteps_per_batch": 1,
|
||||
"sgd_batchsize": 1
|
||||
"train_batch_size": 10,
|
||||
"sample_batch_size": 10,
|
||||
"sgd_minibatch_size": 1
|
||||
}, stats)
|
||||
check_support(
|
||||
"ES", {
|
||||
"num_workers": 1,
|
||||
"noise_size": 10000000,
|
||||
"episodes_per_batch": 1,
|
||||
"timesteps_per_batch": 1
|
||||
"train_batch_size": 1
|
||||
}, stats)
|
||||
check_support(
|
||||
"ARS", {
|
||||
|
||||
Reference in New Issue
Block a user