Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
6b432625
"deploy/operator/vscode:/vscode.git/clone" did not exist on "0f47842ac7037b246ce1eebc064cec261b0767c4"
Unverified
Commit
6b432625
authored
Nov 20, 2025
by
ishandhanani
Committed by
GitHub
Nov 20, 2025
Browse files
fix: set `SGLANG_BLOCK_NONZERO_RANK_CHILDREN` to be no-op (#4527)
parent
36f58e36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
components/src/dynamo/sglang/main.py
components/src/dynamo/sglang/main.py
+8
-2
No files found.
components/src/dynamo/sglang/main.py
View file @
6b432625
...
@@ -102,8 +102,11 @@ async def init(runtime: DistributedRuntime, config: Config):
...
@@ -102,8 +102,11 @@ async def init(runtime: DistributedRuntime, config: Config):
server_args
,
dynamo_args
=
config
.
server_args
,
config
.
dynamo_args
server_args
,
dynamo_args
=
config
.
server_args
,
config
.
dynamo_args
# Prevent SGLang from blocking on non-leader nodes
# Prevent SGLang from blocking on non-leader nodes
# We can switch this to 0 and leverage our own metrics
# after https://github.com/sgl-project/sglang/pull/13686
# is merged in
if
server_args
.
node_rank
>=
1
:
if
server_args
.
node_rank
>=
1
:
os
.
environ
[
"SGLANG_BLOCK_NONZERO_RANK_CHILDREN"
]
=
"
0
"
os
.
environ
[
"SGLANG_BLOCK_NONZERO_RANK_CHILDREN"
]
=
"
1
"
engine
=
sgl
.
Engine
(
server_args
=
server_args
)
engine
=
sgl
.
Engine
(
server_args
=
server_args
)
...
@@ -188,8 +191,11 @@ async def init_prefill(runtime: DistributedRuntime, config: Config):
...
@@ -188,8 +191,11 @@ async def init_prefill(runtime: DistributedRuntime, config: Config):
server_args
,
dynamo_args
=
config
.
server_args
,
config
.
dynamo_args
server_args
,
dynamo_args
=
config
.
server_args
,
config
.
dynamo_args
# Prevent SGLang from blocking on non-leader nodes
# Prevent SGLang from blocking on non-leader nodes
# We can switch this to 0 and leverage our own metrics
# after https://github.com/sgl-project/sglang/pull/13686
# is merged in
if
server_args
.
node_rank
>=
1
:
if
server_args
.
node_rank
>=
1
:
os
.
environ
[
"SGLANG_BLOCK_NONZERO_RANK_CHILDREN"
]
=
"
0
"
os
.
environ
[
"SGLANG_BLOCK_NONZERO_RANK_CHILDREN"
]
=
"
1
"
engine
=
sgl
.
Engine
(
server_args
=
server_args
)
engine
=
sgl
.
Engine
(
server_args
=
server_args
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment