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
8291172f
Unverified
Commit
8291172f
authored
Aug 05, 2025
by
Chi
Committed by
GitHub
Aug 05, 2025
Browse files
fix: Move register_llm_block down (#2316)
parent
12fe3551
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
components/backends/vllm/src/dynamo/vllm/main.py
components/backends/vllm/src/dynamo/vllm/main.py
+10
-10
No files found.
components/backends/vllm/src/dynamo/vllm/main.py
View file @
8291172f
...
...
@@ -145,16 +145,6 @@ async def init(runtime: DistributedRuntime, config: Config):
.
client
()
)
if
not
config
.
engine_args
.
data_parallel_rank
:
# if rank is 0 or None then register
await
register_llm
(
ModelType
.
Backend
,
generate_endpoint
,
config
.
model
,
config
.
served_model_name
,
kv_cache_block_size
=
config
.
engine_args
.
block_size
,
migration_limit
=
config
.
migration_limit
,
)
factory
=
StatLoggerFactory
(
component
,
config
.
engine_args
.
data_parallel_rank
or
0
)
engine_client
,
vllm_config
,
default_sampling_params
=
setup_vllm_engine
(
config
,
factory
...
...
@@ -190,6 +180,16 @@ async def init(runtime: DistributedRuntime, config: Config):
handler
.
kv_publisher
=
kv_publisher
if
not
config
.
engine_args
.
data_parallel_rank
:
# if rank is 0 or None then register
await
register_llm
(
ModelType
.
Backend
,
generate_endpoint
,
config
.
model
,
config
.
served_model_name
,
kv_cache_block_size
=
config
.
engine_args
.
block_size
,
migration_limit
=
config
.
migration_limit
,
)
try
:
await
asyncio
.
gather
(
# for decode, we want to transfer the in-flight requests to other decode engines,
...
...
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