[codex] Add experimental Dynamo backend#2472
Draft
samsja wants to merge 1 commit into
Draft
Conversation
ca27140 to
d552750
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
prime-rl[dynamo]dependency extra andinference.backend = "dynamo"config surface.prime_rl.experimental.dynamolauncher and worker patch: generation goes through Dynamo's/v1/chat/completionsfrontend/router, while the worker only exposes/engine/*admin routes for liveness, NCCL setup, and weight updates.cache_salt,return_token_ids, and generation logprob request parameters on Dynamo runs.Validation
uv run ruff check packages/prime-rl-configs/src/prime_rl/configs/inference.py packages/prime-rl-configs/src/prime_rl/configs/rl.py src/prime_rl/experimental/dynamo/server.py src/prime_rl/experimental/dynamo/worker.py src/prime_rl/utils/client.py src/prime_rl/entrypoints/rl.py tests/unit/test_configs.pyuv run ruff check packages/prime-rl-configs/src/prime_rl/configs/orchestrator.py src/prime_rl/orchestrator/envs.py src/prime_rl/orchestrator/orchestrator.py src/prime_rl/orchestrator/scheduler.py src/prime_rl/utils/client.pyuv run pytest tests/unit/test_configs.py -quv run --extra dynamo rl @ configs/experimental/dynamo/hendrycks_math_qwen4b_aime25.toml --dry-run --output-dir /tmp/prime-rl-dynamo-router-dryrunuv run --extra dynamo inference @ /tmp/prime-rl-dynamo-router-dryrun/configs/inference.toml --dry-runCUDA_VISIBLE_DEVICES=0,1 uv run --extra dynamo rl @ examples/reverse_text/rl.toml --inference.backend dynamo --max-steps 1 --orchestrator.batch-size 8 --orchestrator.rollouts-per-example 2 --orchestrator.max-inflight-rollouts 8 --wandb.name reverse-text-dynamo-smoke-no-logprobs --output-dir /tmp/prime-rl-reverse-dynamo-smoke-no-logprobsW&B: https://wandb.ai/primeintellect/reverse-text/runs/5f46beef5ff941abbd65a16b1c412417