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
f0041782
Unverified
Commit
f0041782
authored
Sep 30, 2025
by
Yan Ru Pei
Committed by
GitHub
Sep 30, 2025
Browse files
fix: KV Router bindings docs (#3308)
Signed-off-by:
PeaBrane
<
yanrpei@gmail.com
>
parent
889e7f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/architecture/kv_cache_routing.md
docs/architecture/kv_cache_routing.md
+4
-4
No files found.
docs/architecture/kv_cache_routing.md
View file @
f0041782
...
@@ -330,8 +330,8 @@ from dynamo._core import DistributedRuntime, KvPushRouter, KvRouterConfig
...
@@ -330,8 +330,8 @@ from dynamo._core import DistributedRuntime, KvPushRouter, KvRouterConfig
async
def
main
():
async
def
main
():
# Get runtime and create endpoint
# Get runtime and create endpoint
runtime
=
DistributedRuntime
.
detached
()
runtime
=
DistributedRuntime
.
detached
()
namespace
=
runtime
.
namespace
(
"
inference
"
)
namespace
=
runtime
.
namespace
(
"
dynamo
"
)
component
=
namespace
.
component
(
"
vllm
"
)
component
=
namespace
.
component
(
"
backend
"
)
endpoint
=
component
.
endpoint
(
"generate"
)
endpoint
=
component
.
endpoint
(
"generate"
)
# Create KV router
# Create KV router
...
@@ -396,8 +396,8 @@ from dynamo._core import DistributedRuntime, KvPushRouter, KvRouterConfig
...
@@ -396,8 +396,8 @@ from dynamo._core import DistributedRuntime, KvPushRouter, KvRouterConfig
async
def
minimize_ttft_routing
():
async
def
minimize_ttft_routing
():
# Setup router
# Setup router
runtime
=
DistributedRuntime
.
detached
()
runtime
=
DistributedRuntime
.
detached
()
namespace
=
runtime
.
namespace
(
"
inference
"
)
namespace
=
runtime
.
namespace
(
"
dynamo
"
)
component
=
namespace
.
component
(
"
vllm
"
)
component
=
namespace
.
component
(
"
backend
"
)
endpoint
=
component
.
endpoint
(
"generate"
)
endpoint
=
component
.
endpoint
(
"generate"
)
router
=
KvPushRouter
(
router
=
KvPushRouter
(
...
...
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