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
7cf75628
Commit
7cf75628
authored
Apr 10, 2025
by
tlipoca9
Committed by
GitHub
Apr 10, 2025
Browse files
chore: check prefix caching while using kv router (#592)
Neelay approved merge
parent
7662de1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
examples/llm/components/worker.py
examples/llm/components/worker.py
+6
-0
No files found.
examples/llm/components/worker.py
View file @
7cf75628
...
...
@@ -80,6 +80,12 @@ class VllmWorker:
self
.
engine_args
.
pipeline_parallel_size
=
1
if
self
.
engine_args
.
router
==
"kv"
:
if
not
self
.
engine_args
.
enable_prefix_caching
:
logger
.
info
(
"When using KV router, prefix caching must be enabled, setting to True"
)
self
.
engine_args
.
enable_prefix_caching
=
True
VLLM_WORKER_ID
=
dynamo_context
[
"endpoints"
][
0
].
lease_id
()
os
.
environ
[
"VLLM_WORKER_ID"
]
=
str
(
VLLM_WORKER_ID
)
os
.
environ
[
"VLLM_KV_NAMESPACE"
]
=
"dynamo"
...
...
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