label workers by logical_resources to constrain deployment#129
Merged
dongwang218 merged 1 commit intomainfrom Feb 12, 2026
Merged
label workers by logical_resources to constrain deployment#129dongwang218 merged 1 commit intomainfrom
dongwang218 merged 1 commit intomainfrom
Conversation
yangli5t
approved these changes
Feb 12, 2026
Contributor
|
curious in test plan command, why it is |
Contributor
Author
each node counted as 1, so if you have two nodes labeled with small_model, then the system has 2 such resource. Each replica will use at least 2 * 0.01, so 8 replica will be using 0.16. That is why 0.01 is safe, but eg 0.1 is not, as it ask for 1.6 per node. |
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.
Why ?
for #58 and #111 , small models ocuppy multiple nodes, causing fragmentation.
How ?
Test plan
// request a node and label it with small_model
matrix --cluster_id rllm start_cluster --add_workers 1 --slurm '{"account": data, "qos": h100_data_high}' --logical_resources "{'small_model': 1}"
// deploying models only on the nodes labeled with "small_model"
matrix deploy_applications --cluster_id rllm --action add --applications "[{'model_name': '/datasets/pretrained-llms/Llama-3.1-8B-Instruct', 'min_replica': 8, 'model_size': '8B', 'name': '8B', 'use_grpc': 'false', 'ray_resources': {'resources': {'small_model': 0.01}}}]"