Repository navigation
feat(runtime): add hierarchical Model/WorkerSet architecture for multi-namespace support #6054
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e42826b
implement hierarchical level models
tmonty12 74fbb4c
add plan doc
tmonty12 e5caee7
add prefix mode to frontend
tmonty12 907273d
fix compilation errors
tmonty12 4b20406
update comments
tmonty12 ad07335
helper for model namespace key
tmonty12 9b28293
use client instance count instead
tmonty12 47a10a2
filter out 0 worker sets
tmonty12 13b9bbe
add back comments and address bug for in-process vs dynamic mode
tmonty12 8910601
fix edge cases and race conditions
tmonty12 493822f
add unit tests
tmonty12 53aed43
use DYN_NAMESPACE_WORKER_SUFFIX for backwards compatibility
tmonty12 f2ec432
revert global namespace to dynamo
tmonty12 18852f0
prefill router worker monitor selection is ns scoped
tmonty12 a6b21e1
use ns filter for common
tmonty12 d1c3dd7
get_worker_namespace method name is more accurate
tmonty12 f132e67
separate out prefill and decode registration
tmonty12 f893b61
fix test
tmonty12 7d3cea8
add comment
tmonty12 ad4c6c5
remove dupl condition
tmonty12 24b1fd7
fix pre-merge checks
tmonty12 32671da
remove unused import
tmonty12 b2d5a35
fix cargo check
tmonty12 2672c37
fix compilation error
tmonty12 aca6f0d
fix error
tmonty12 a85b8bd
consolidate dynamo namespace calculation for worker
tmonty12 54edc9d
fix clippy error
tmonty12 0e6103b
only emit Removed event only when model type list is empty
tmonty12 de60a75
updates to get_worker_namespace
tmonty12 2aba4ab
fix anthropic api issue
tmonty12 492e565
enforce mdc checksum across WorkerSets
tmonty12 ddaff5d
fix cargo checks
tmonty12 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import os | ||
| from typing import Optional | ||
|
|
||
|
|
||
| def get_worker_namespace(namespace: Optional[str] = None) -> str: | ||
| """Get the Dynamo namespace for a worker. | ||
|
|
||
| Uses the provided namespace, or falls back to the DYN_NAMESPACE environment | ||
| variable (defaulting to "dynamo"). If DYN_NAMESPACE_WORKER_SUFFIX is set, | ||
| it is appended as "{namespace}-{suffix}" to support multiple sets of workers | ||
| for the same model. | ||
| """ | ||
| if not namespace: | ||
| namespace = os.environ.get("DYN_NAMESPACE", "dynamo") | ||
|
|
||
| suffix = os.environ.get("DYN_NAMESPACE_WORKER_SUFFIX") | ||
| if suffix: | ||
| namespace = f"{namespace}-{suffix}" | ||
| return namespace | ||
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
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
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.