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
ba274a03
"docs/vscode:/vscode.git/clone" did not exist on "c49a13eb89038ea8336579ffb605b9d41bb385af"
Unverified
Commit
ba274a03
authored
Apr 09, 2026
by
Piotr Marcinkiewicz
Committed by
GitHub
Apr 09, 2026
Browse files
fix(sglang): use served_model_name for video/image model registration (#8035)
parent
a0e41273
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
components/src/dynamo/sglang/register.py
components/src/dynamo/sglang/register.py
+8
-6
No files found.
components/src/dynamo/sglang/register.py
View file @
ba274a03
...
...
@@ -274,8 +274,9 @@ async def register_image_diffusion_model(
by default. When output_modalities is provided, the ModelType is derived
from the given modality names instead.
"""
# Use model_path as the model name (diffusion workers don't have served_model_name)
model_name
=
server_args
.
model_path
model_name
=
(
getattr
(
server_args
,
"served_model_name"
,
None
)
or
server_args
.
model_path
)
model_type
=
ModelType
.
Images
if
output_modalities
:
...
...
@@ -297,7 +298,7 @@ async def register_image_diffusion_model(
ModelInput
.
Text
,
model_type
,
endpoint
,
model_
name
,
server_args
.
model_
path
,
model_name
,
)
logging
.
info
(
f
"Successfully registered diffusion model:
{
model_name
}
"
)
...
...
@@ -329,15 +330,16 @@ async def register_video_generation_model(
Note:
Video generation models use ModelInput.Text (text prompts) and ModelType.Videos.
"""
# Use model_path as the model name (video workers don't have served_model_name)
model_name
=
server_args
.
model_path
model_name
=
(
getattr
(
server_args
,
"served_model_name"
,
None
)
or
server_args
.
model_path
)
try
:
await
register_model
(
ModelInput
.
Text
,
ModelType
.
Videos
,
endpoint
,
model_
name
,
server_args
.
model_
path
,
model_name
,
)
logging
.
info
(
f
"Successfully registered video generation model:
{
model_name
}
"
)
...
...
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