verl icon indicating copy to clipboard operation
verl copied to clipboard

[QQ about fully_async] Why each rollout server is hardcoded to be allowed to handle only 16 active samples?

Open BiboyQG opened this issue 6 months ago • 2 comments

At https://github.com/verl-project/verl/blob/5a506cc58c4cb6aaf5bff908726e55378eb42867/verl/experimental/fully_async_policy/fully_async_rollouter.py#L238

self.max_concurrent_samples = len(self.async_rollout_manager.server_handles) * 16

meaning each rollout server can handle only 16 active samples. Is there a reason behind this?

Thanks for any explanation in advance!

BiboyQG avatar May 10 '26 04:05 BiboyQG

Hey, I think it's just a backpressure default to avoid overwhelming the KV cache on the inference server, nothing too principled from what I can tell, just a "works okay in practice" kind of value. Could be wrong though.

Probably should be a config param at some point.

matdou avatar May 11 '26 13:05 matdou

Hey, I think it's just a backpressure default to avoid overwhelming the KV cache on the inference server, nothing too principled from what I can tell, just a "works okay in practice" kind of value. Could be wrong though.

Probably should be a config param at some point.

Thanks for your explanation! Closing this now.

BiboyQG avatar May 14 '26 04:05 BiboyQG