-
Notifications
You must be signed in to change notification settings - Fork 359
Add Ray Serve gateway for multi-instance vLLM spanning multiple nodes per instance #3168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
98370fb
Add ray serve for multi node span with multiple instances
oyilmaz-nvidia 365b850
Fix ray serve issues
oyilmaz-nvidia 370954f
Fixing ray serve issue
oyilmaz-nvidia 36dacb9
fix _build_vllm_ray_serve_command's
oyilmaz-nvidia 71cc920
Fix git not found error
oyilmaz-nvidia 60f870e
Simplify the code
oyilmaz-nvidia 3e33828
Merge branch 'main' into onur/ray-service-multi-node
oyilmaz-nvidia 9b5190e
Remove the second guard which is not needed
oyilmaz-nvidia 8b2ec77
Fix the _escape_for_double_quoted_bash issue in the build command
oyilmaz-nvidia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| compute: | ||
| cluster: | ||
| type: slurm | ||
| hostname: myslurmcluster | ||
| walltime: "01:00:00" | ||
| account: myaccount | ||
| node_pools: | ||
| compute: | ||
| partition: batch | ||
| nodes: 4 | ||
| ntasks_per_node: 1 | ||
| gpus_per_node: 8 | ||
|
|
||
| services: | ||
| vllm_model: | ||
| container: vllm/vllm-openai:v0.9.0 | ||
| type: vllm | ||
| model: Qwen/Qwen2.5-72B-Instruct | ||
| trust_remote_code: true | ||
| tensor_parallel_size: 8 # TP is capped at gpus_per_node (8); PP crosses node boundaries. | ||
| pipeline_parallel_size: 2 # TP8 x PP2 = 16 GPUs/instance, spans 2 nodes/instance (16 / 8). | ||
| number_of_instances: 2 # 2 instances x 2 nodes/instance = 4 nodes = the whole allocation. | ||
| port: 8000 | ||
| health_check: | ||
| timeout_seconds: 1200 | ||
| mounts: | ||
| - /lustre/datasets:/data | ||
|
|
||
| driver: | ||
| policy_model: vllm_model | ||
| container: python:3.13 | ||
| gym_install: | ||
| ref: main | ||
| benchmarks: | ||
| gpqa: | ||
| run: | ||
| split: benchmark | ||
| config_paths: | ||
| - benchmarks/gpqa/config.yaml | ||
|
|
||
| job: | ||
| output_path: /lustre/fsw/my-path |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should not be required. Orchestration (including how we route between instances) should be strictly self-contained. I also suppose a case where users will use container without a gym install might be common