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
c65f1ac0
Unverified
Commit
c65f1ac0
authored
Nov 19, 2025
by
Vladislav Nosivskoy
Committed by
GitHub
Nov 18, 2025
Browse files
fix: respect router env vars in frontend configuration (#4431)
Signed-off-by:
Vladislav Nosivskoy
<
vladnosiv@gmail.com
>
parent
81491b39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
components/src/dynamo/frontend/main.py
components/src/dynamo/frontend/main.py
+7
-4
No files found.
components/src/dynamo/frontend/main.py
View file @
c65f1ac0
...
...
@@ -78,7 +78,10 @@ def parse_args():
"-i"
,
"--interactive"
,
action
=
"store_true"
,
help
=
"Interactive text chat"
)
parser
.
add_argument
(
"--kv-cache-block-size"
,
type
=
int
,
help
=
"KV cache block size (u32)."
"--kv-cache-block-size"
,
type
=
int
,
default
=
os
.
environ
.
get
(
"DYN_KV_CACHE_BLOCK_SIZE"
),
help
=
"KV cache block size (u32). Can be set via DYN_KV_CACHE_BLOCK_SIZE env var."
,
)
parser
.
add_argument
(
"--http-host"
,
...
...
@@ -114,20 +117,20 @@ def parse_args():
parser
.
add_argument
(
"--kv-overlap-score-weight"
,
type
=
float
,
default
=
1.0
,
default
=
float
(
os
.
environ
.
get
(
"DYN_KV_OVERLAP_SCORE_WEIGHT"
,
"1.0"
))
,
help
=
"KV Router: Weight for overlap score in worker selection. Higher values prioritize KV cache reuse."
,
)
parser
.
add_argument
(
"--router-temperature"
,
type
=
float
,
default
=
0.0
,
default
=
float
(
os
.
environ
.
get
(
"DYN_ROUTER_TEMPERATURE"
,
"0.0"
))
,
help
=
"KV Router: Temperature for worker sampling via softmax. Higher values promote more randomness, and 0 fallbacks to deterministic."
,
)
parser
.
add_argument
(
"--no-kv-events"
,
action
=
"store_false"
,
dest
=
"use_kv_events"
,
default
=
True
,
default
=
os
.
environ
.
get
(
"DYN_KV_EVENTS"
,
"true"
).
lower
()
!=
"false"
,
help
=
"KV Router: Disable KV events. When set, uses ApproxKvRouter for predicting block creation/deletion based only on incoming requests at a timer. By default, KV events are enabled."
,
)
parser
.
add_argument
(
...
...
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