feat: add Dynamo vLLM inference backend#2465
Draft
samsja wants to merge 1 commit into
Draft
Conversation
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
dynamoinference backend alongside vLLM and SGLang, backed by Dynamo's vLLM worker.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 packages/prime-rl-configs/src/prime_rl/configs/shared.py src/prime_rl/inference/dynamo src/prime_rl/inference/server.py src/prime_rl/entrypoints/inference.py src/prime_rl/utils/client.py tests/unit/test_configs.pyuv run pytest tests/unit/test_configs.py -q(81 passed, 46 warnings)uv run rl @ /tmp/prime-rl-hendrycks-aime25-bs64.toml --dry-run --inference.backend vllm --wandb.name dryrun-vllm-qwen4b-aime25-500-bs64 --output-dir /tmp/prime-rl-vllm-qwen4b-aime25-500-bs64-dryrunuv run rl @ /tmp/prime-rl-hendrycks-aime25-bs64.toml --dry-run --inference.backend dynamo --wandb.name dryrun-dynamo-qwen4b-aime25-500-bs64 --output-dir /tmp/prime-rl-dynamo-qwen4b-aime25-500-bs64-dryrunmax_steps=500,batch_size=64,max_inflight_rollouts=64,rollouts_per_example=4, and AIME2025 eval with 30 examples x 4 rollouts:Avg@4 / Pass@4):0.0333 / 0.0667, Dynamo0.0667 / 0.10000.0667 / 0.1000, Dynamo0.0583 / 0.10000.0833 / 0.1333, Dynamo0.0833 / 0.13330.0667 / 0.1333, Dynamo0.0917 / 0.1000max_steps=500): vLLM0.1333 / 0.2333, Dynamo0.1167 / 0.1667Evaluated aime2025 in 12.19s (Avg@4=0.1333, Pass@1=0.1333, Pass@2=0.1889, Pass@4=0.2333, No-response: 0.0%, Completion Length: 982.02, Truncated: 85.0%)Evaluated aime2025 in 13.31s (Avg@4=0.1167, Pass@1=0.1167, Pass@2=0.1444, Pass@4=0.1667, No-response: 0.0%, Completion Length: 968.05, Truncated: 81.7%)RL training finished!andOrchestrator finished.; no matching vLLM/Dynamo run processes remained afterward.Note: Dynamo/vLLM logs an
EngineDeadErrorduring process termination after the RL job sends SIGTERM at shutdown; the final eval, orchestrator shutdown, trainer exit, and W&B sync had already completed successfully.