Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
6ce428a5
"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "bce7d0c3c0c724be1edd14d1919ebbadcb4a34ca"
Unverified
Commit
6ce428a5
authored
Apr 25, 2025
by
Alec
Committed by
GitHub
Apr 25, 2025
Browse files
fix: wrong lease_id (#833)
parent
04e892d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
examples/llm/components/worker.py
examples/llm/components/worker.py
+2
-3
No files found.
examples/llm/components/worker.py
View file @
6ce428a5
...
@@ -89,11 +89,10 @@ class VllmWorker:
...
@@ -89,11 +89,10 @@ class VllmWorker:
)
)
self
.
engine_args
.
enable_prefix_caching
=
True
self
.
engine_args
.
enable_prefix_caching
=
True
VLLM_WORKER_ID
=
dynamo_context
[
"endpoints"
][
0
].
lease_id
()
os
.
environ
[
"VLLM_WORKER_ID"
]
=
str
(
dynamo_context
.
get
(
"lease"
).
id
())
os
.
environ
[
"VLLM_WORKER_ID"
]
=
str
(
VLLM_WORKER_ID
)
os
.
environ
[
"VLLM_KV_NAMESPACE"
]
=
"dynamo"
os
.
environ
[
"VLLM_KV_NAMESPACE"
]
=
"dynamo"
os
.
environ
[
"VLLM_KV_COMPONENT"
]
=
class_name
os
.
environ
[
"VLLM_KV_COMPONENT"
]
=
class_name
logger
.
info
(
f
"Generate endpoint ID:
{
VLLM_WORKER_ID
}
"
)
self
.
metrics_publisher
=
KvMetricsPublisher
()
self
.
metrics_publisher
=
KvMetricsPublisher
()
signal
.
signal
(
signal
.
SIGTERM
,
self
.
shutdown_vllm_engine
)
signal
.
signal
(
signal
.
SIGTERM
,
self
.
shutdown_vllm_engine
)
...
...
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