Skip to content

Unseeded vLLM rollout workers draw from non-deterministic PRNGs across runs, while passing a single constant seed across multi-replica deployments causes every replica to generate correlated rollout streams. - #3498

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1017535113

Conversation

@copybara-service

Copy link
Copy Markdown

Unseeded vLLM rollout workers draw from non-deterministic PRNGs across runs, while passing a single constant seed across multi-replica deployments causes every replica to generate correlated rollout streams.

  • Add rollout_config.seed: 42 to base_dist_config.yaml with non-negative int | null validation in resolve_config (leaving null to opt out).
  • Extract node_utils.rollout_replica_index(hp) from worker_id and derive each rollout replica's 32-bit seed via tunix.common.configs.replica_seed in dist_rl/launch/nodes/rollout.py (plus "seed" in _FORBIDDEN_ROLLOUT_KWARGS and updated rollout constructor goldens).

…s runs, while passing a single constant seed across multi-replica deployments causes every replica to generate correlated rollout streams.

- Add `rollout_config.seed: 42` to `base_dist_config.yaml` with non-negative `int | null` validation in `resolve_config` (leaving `null` to opt out).
- Extract `node_utils.rollout_replica_index(hp)` from `worker_id` and derive each rollout replica's 32-bit seed via `tunix.common.configs.replica_seed` in `dist_rl/launch/nodes/rollout.py` (plus `"seed"` in `_FORBIDDEN_ROLLOUT_KWARGS` and updated rollout constructor goldens).

PiperOrigin-RevId: 1017535113

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants