Skip to content
Merged
Show file tree
Hide file tree
Changes from 115 commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
ea9d654
feat(planner): add retune.objective to score retune on a DGDR objecti…
tedzhouhk Oct 28, 2026
ae43296
feat(planner): enable live retune through DGDR v1beta2
tedzhouhk Oct 29, 2026
1877356
Merge remote-tracking branch 'origin/main' into hzhou/live-retune
tedzhouhk Oct 29, 2026
8815c8a
pr-17262: squash aggregate GPU discovery
Pranjulcr7 Oct 26, 2026
3669d62
pr-17262: pr-1: separate selected-shape GPU capacity [upstream: Pranj…
sttts Oct 28, 2026
f4a03e2
pr-17262: pr-1: tolerate nominal VRAM discovery [upstream: Pranjulcr7…
sttts Oct 28, 2026
99cb26e
pr-16661: squash v1beta2 DGDR admission
devivasudevan Oct 26, 2026
9f79e53
pr-16661: pr-4: squash operator-owned AISimulate execution
sttts Oct 26, 2026
105feba
pr-16661: pr-4: enforce v1beta2 admission boundaries
sttts Oct 27, 2026
9d90eb0
pr-16661: pr-4: preserve AISimulate override integers
sttts Oct 27, 2026
9af8728
pr-16661: pr-3: squash aggregate v1beta2 GPU budget
sttts Oct 26, 2026
5a38e76
pr-16661: pr-3: cover aggregate GPU verification
sttts Oct 27, 2026
215c47b
pr-16661: pr-3: consolidate hardware discovery tests
sttts Oct 28, 2026
aabbfa7
pr-16661: pr-3: modernize hardware test literals
sttts Oct 28, 2026
d936456
pr-17191: squash align and document v1beta2 defaults
sttts Oct 26, 2026
35cb8ed
pr-17191: pr-4: align model-only objective defaults
sttts Oct 26, 2026
de45db8
pr-17191: satisfy current Go lint
sttts Oct 27, 2026
a152f0c
pr-16661: pr-4: make trial budget explicit
sttts Oct 28, 2026
2204938
pr-16661: pr-4: consolidate DGDR admission tests
sttts Oct 28, 2026
f7af2f7
pr-16661: pr-4: satisfy lint after admission test consolidation
sttts Oct 28, 2026
4bd0782
pr-16661: pr-4: document independent trial budget [upstream: devivasu…
sttts Oct 29, 2026
0b80339
pr-16661: pr-3: preserve external AISimulate hardware SKUs [upstream:…
sttts Oct 28, 2026
20d1abd
pr-16661: pr-3: make SKU catalog copyright-safe [upstream: devivasude…
sttts Oct 28, 2026
fe47d06
pr-16661: pr-3: modernize SKU catalog parser [upstream: devivasudevan…
sttts Oct 28, 2026
c323694
pr-16661: pr-3: use selected-shape GPU capacity [upstream: devivasude…
sttts Oct 28, 2026
7bc8fb4
pr-16661: pr-3: defer SKU catalog smoke test [upstream: devivasudevan…
sttts Oct 29, 2026
188a075
pr-16661: pr-3: synchronize operator SKU catalog [upstream: devivasud…
sttts Oct 29, 2026
390c89c
pr-16661: pr-3: persist selected node topology [upstream: devivasudev…
sttts Oct 29, 2026
093779d
pr-16661: pr-3: verify hardware admission semantics [upstream: deviva…
sttts Oct 29, 2026
48ba217
pr-16661: pr-3: bound discovered node width [upstream: devivasudevan/…
sttts Oct 29, 2026
bc6257e
pr-15895: squash DGDR live output adapter
devivasudevan Oct 26, 2026
048bffc
pr-15895: pr-7: bound AIC resource names [upstream: devivasudevan/dyn…
sttts Oct 27, 2026
a9b5a91
pr-15895: pr-7: require AISimulate lifecycle callbacks [upstream: dev…
sttts Oct 27, 2026
5e12670
pr-15894: squash DGDR Run publisher sidecar
devivasudevan Oct 26, 2026
eceeec6
pr-15894: pr-5: squash publisher terminal snapshot contract
sttts Oct 26, 2026
396fcdd
pr-15894: satisfy current Go lint
sttts Oct 27, 2026
f44ee5b
pr-15894: pr-5: consolidate Run publisher tests
sttts Oct 28, 2026
44c519f
pr-15894: pr-5: retry terminal publication [upstream: devivasudevan/d…
sttts Oct 28, 2026
b540fb0
pr-15894: pr-5: wait for publication cache echoes [upstream: devivasu…
sttts Oct 28, 2026
d3af812
pr-17097: squash v1beta2 DGDR Request controller
devivasudevan Oct 26, 2026
9a0c776
pr-17097: satisfy current Go lint
sttts Oct 27, 2026
e9aac60
pr-17097: pr-8: remove duplicate Request controller tests
sttts Oct 28, 2026
3a5cc85
pr-17097: pr-8: cancel superseded Request runs [upstream: devivasudev…
sttts Oct 28, 2026
455ec68
pr-17097: pr-8: retain superseded Request runs [upstream: devivasudev…
sttts Oct 28, 2026
ac6ca9b
pr-17097: pr-8: satisfy current operator lint [upstream: devivasudeva…
sttts Oct 28, 2026
cee8fce
pr-17407: squash derive sibling images from release tags
sttts Oct 27, 2026
e00a9ea
pr-17195: align shared image helper with pr-17407
sttts Oct 28, 2026
711a4ae
pr-17195: squash execute v1beta2 DGDR runs
sttts Oct 26, 2026
96d3dda
pr-17195: freeze v1beta2 Run execution contract
sttts Oct 27, 2026
3c2f3b6
pr-17195: satisfy current Go lint
sttts Oct 27, 2026
c79b97f
pr-17195: complete Run execution boundaries
sttts Oct 27, 2026
8f6bad5
pr-17195: grant Run owner-reference permissions
sttts Oct 28, 2026
078f9ec
pr-17195: simplify Run RBAC envtest literals
sttts Oct 28, 2026
cd9f3fa
pr-17195: harden immutable Run execution
sttts Oct 28, 2026
684261d
pr-17195: resolve publisher Run fixture [upstream: #17195]
sttts Oct 29, 2026
1a0e03c
pr-17195: finish review test hygiene [upstream: #17195]
sttts Oct 28, 2026
0ce597f
pr-17195: close retained Run failure boundaries [upstream: #17195]
sttts Oct 28, 2026
315da92
pr-17195: satisfy current operator lint [upstream: #17195]
sttts Oct 28, 2026
5052117
pr-17195: pin sweeper numeric non-root UID [upstream: #17195]
sttts Oct 28, 2026
71ea042
pr-15895: pr-7: consolidate output adapter tests [upstream: devivasud…
sttts Oct 28, 2026
61e0e58
pr-15895: pr-7: resolve candidate topology [upstream: devivasudevan/d…
sttts Oct 29, 2026
b9f0139
pr-17195: harden frozen Run execution [upstream: #17195]
sttts Oct 29, 2026
d2b683b
pr-17195: enforce resolved Run snapshot shape [upstream: #17195]
sttts Oct 29, 2026
32632ce
operator/dgdr: test v1beta2 candidates end to end
sttts Oct 27, 2026
ed4190b
operator/dgdr: verify frozen v1beta2 input end to end
sttts Oct 28, 2026
b5379fc
operator/dgdr: verify selected-shape budget end to end
sttts Oct 28, 2026
a2f69a0
operator/dgdr: verify selected node width end to end
sttts Oct 29, 2026
ab4b32b
feat(operator): replay recorded traces from a PVC in DGDR v1beta2 runs
tedzhouhk Oct 29, 2026
a95d1f3
fix(operator): keep legacy non-trace Run Jobs valid and cover the sta…
tedzhouhk Oct 29, 2026
8f4a340
fix(planner): satisfy mypy and CodeQL in live retune
tedzhouhk Oct 29, 2026
ad3bd30
Merge branch 'main' into hzhou/dgdr-trace-pvc
tedzhouhk Oct 29, 2026
2bb6b42
Merge remote-tracking branch 'origin/main' into hzhou/dgdr-trace-pvc
tedzhouhk Oct 30, 2026
6c56df3
Merge remote-tracking branch 'origin/main' into hzhou/live-retune
tedzhouhk Oct 30, 2026
3ecbb63
docs(planner): fix the live retune engine example and note zero credit
tedzhouhk Oct 30, 2026
bdf026f
fix(operator): protect trace claims per Run and cancel Runs on claim …
tedzhouhk Oct 30, 2026
bde7f19
test(operator): render the trace scenario through the default AIC gen…
tedzhouhk Oct 30, 2026
f73f4bb
fix(operator): finish a started trace-claim cancellation and never st…
tedzhouhk Oct 30, 2026
6e8087d
Merge remote-tracking branch 'origin/main' into hzhou/dgdr-trace-pvc
tedzhouhk Oct 30, 2026
e9ab6af
feat(replay): replay DGDR trace Runs with common random numbers
tedzhouhk Oct 30, 2026
30dd626
feat(planner): add the live retune configuration and deployment premises
tedzhouhk Oct 30, 2026
73c0e58
feat(planner): cut live retune windows and reconcile the trace claim
tedzhouhk Oct 30, 2026
2dce2a5
feat(planner): run a live retune sweep through DGDR v1beta2 Requests
tedzhouhk Oct 30, 2026
8d098be
Merge branch 'hzhou/live-retune-4-dgdr' into hzhou/live-retune
tedzhouhk Oct 30, 2026
fd45a85
fix(replay): address review on trace replay common random numbers
tedzhouhk Nov 2, 2026
dffb3a7
Merge #17733 review fixes into live-retune-2-config
tedzhouhk Nov 2, 2026
1f3bc6b
fix(planner): address review on the live retune configuration and pre…
tedzhouhk Nov 2, 2026
2d27a64
fix(planner): address review on the live retune window cut and reconc…
tedzhouhk Nov 2, 2026
3a41e94
Merge #17734 review fixes into live-retune-3-trace
tedzhouhk Nov 2, 2026
b57cf27
Merge #17735 review fixes into live-retune-4-dgdr
tedzhouhk Nov 2, 2026
c055696
fix(planner): address review on the live retune DGDR sweep
tedzhouhk Nov 2, 2026
12f4389
fix(operator): address review on the DGDR trace source API
tedzhouhk Nov 2, 2026
8e2df82
Merge #17483 review fixes into live-retune-1-crn
tedzhouhk Nov 2, 2026
ba2a372
Merge #17733 review fixes into live-retune-2-config
tedzhouhk Nov 2, 2026
165407d
Merge #17735 review fixes into live-retune-4-dgdr
tedzhouhk Nov 2, 2026
3b15e7d
Merge #17734 review fixes into live-retune-3-trace
tedzhouhk Nov 2, 2026
444ab6d
test(planner): check the DGDR sweep against the operator's lowering g…
tedzhouhk Nov 2, 2026
dadae47
fix(planner): address review on enabling live retune through DGDR v1b…
tedzhouhk Nov 2, 2026
92cee14
Merge #17736 review fixes into live-retune
tedzhouhk Nov 2, 2026
03106cf
test(operator): trim redundant trace tests and drop the golden -updat…
tedzhouhk Nov 2, 2026
0405a8f
fix(planner): address second review on the live retune configuration
tedzhouhk Nov 2, 2026
5e85925
Merge #17734 review fixes into live-retune-3-trace
tedzhouhk Nov 2, 2026
49d2b8f
fix(planner): address second review on the live retune window cut
tedzhouhk Nov 2, 2026
fd8334b
Merge #17735 review fixes into live-retune-4-dgdr
tedzhouhk Nov 2, 2026
e396992
fix(planner): address second review on the live retune DGDR sweep
tedzhouhk Nov 2, 2026
ce59903
Merge #17483 review fixes into live-retune-1-crn
tedzhouhk Nov 2, 2026
df3a979
Merge #17733 review fixes into live-retune-2-config
tedzhouhk Nov 2, 2026
2e6e39e
Merge #17734 review fixes into live-retune-3-trace
tedzhouhk Nov 2, 2026
dfe7edf
Merge #17735 review fixes into live-retune-4-dgdr
tedzhouhk Nov 2, 2026
9df8363
Merge #17736 review fixes into live-retune
tedzhouhk Nov 2, 2026
9ed9ebe
fix(planner): re-add the live retune DGD and Lease access moved up fr…
tedzhouhk Nov 2, 2026
dd46cb5
fix(planner): address second review on enabling live retune
tedzhouhk Nov 2, 2026
180e779
docs(planner): update the live retune guide for the lower-layer revie…
tedzhouhk Nov 2, 2026
08c5eb9
Merge #17736 review fixes into live-retune
tedzhouhk Nov 2, 2026
82ef714
Merge main into hzhou/dgdr-trace-pvc
tedzhouhk Nov 3, 2026
143a837
Merge branch 'main' into hzhou/dgdr-trace-pvc
tedzhouhk Nov 3, 2026
7d56f6a
fix(planner): renew live retune leases before the local leadership de…
tedzhouhk Nov 3, 2026
1477976
fix(planner): reject runtime updates of the live retune scoring SLA
tedzhouhk Nov 3, 2026
b24f116
fix(planner): bind live retune window files and Requests to the trace…
tedzhouhk Nov 3, 2026
1c666b7
fix(planner): apply the worker shell default and reject opaque worker…
tedzhouhk Nov 3, 2026
f070334
fix(examples): quote the GKE worker scripts' PATH exports
tedzhouhk Nov 3, 2026
a1437c0
fix(planner): reject context-parallel presets the pinned AISimulate c…
tedzhouhk Nov 3, 2026
1dc0a78
Merge main into hzhou/dgdr-trace-pvc
tedzhouhk Nov 3, 2026
b7f957f
fix(planner): read live retune worker launches as the operator render…
tedzhouhk Nov 3, 2026
76630c6
fix(planner): keep a released live retune Lease released
tedzhouhk Nov 3, 2026
835876e
Merge main into hzhou/dgdr-trace-pvc
tedzhouhk Nov 3, 2026
7ca7737
fix(planner): narrow worker P4 reference type for mypy
tedzhouhk Nov 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from dynamo.common.configuration.arg_group import ArgGroup
from dynamo.common.configuration.config_base import ConfigBase
from dynamo.common.configuration.utils import (
ArgEnv,
Deprecated,
add_argument,
add_negatable_bool_argument,
Expand Down Expand Up @@ -297,9 +298,17 @@ def kv_router_kwargs(self) -> dict:


class KvRouterArgGroup(ArgGroup):
"""CLI arguments for the shared KvRouterConfig parameters."""
"""CLI arguments for the shared KvRouterConfig parameters.

Args:
env: Another process's env (see ``ArgEnv``).
"""

def __init__(self, *, env: Optional[ArgEnv] = None) -> None:
self.env = env

def add_arguments(self, parser) -> None:
environ = os.environ if self.env is None else self.env.environ
g = parser.add_argument_group("KV Router Options")

add_negatable_bool_argument(
Expand All @@ -320,6 +329,7 @@ def add_arguments(self, parser) -> None:
"and prefill-token load tracking, and disables remote/shared cache indexers. "
"The builtin policy does not request cache inputs in this mode."
),
env=self.env,
)
add_argument(
g,
Expand All @@ -334,6 +344,7 @@ def add_arguments(self, parser) -> None:
),
arg_type=float,
dest="overlap_score_credit",
env=self.env,
)
add_argument(
g,
Expand All @@ -349,21 +360,23 @@ def add_arguments(self, parser) -> None:
),
arg_type=float,
dest="overlap_score_credit_decay",
env=self.env,
)
add_argument(
g,
flag_name="--router-kv-overlap-score-weight",
obsolete_flag="--kv-overlap-score-weight",
env_var=(
"DYN_ROUTER_KV_OVERLAP_SCORE_WEIGHT"
if "DYN_ROUTER_KV_OVERLAP_SCORE_WEIGHT" in os.environ
if "DYN_ROUTER_KV_OVERLAP_SCORE_WEIGHT" in environ
else "DYN_OVERLAP_SCORE_WEIGHT"
),
dest="overlap_score_weight",
arg_type=float,
deprecated=_policy_parameter("prefill_load_scale"),
default=None,
help=argparse.SUPPRESS,
env=self.env,
)
add_argument(
g,
Expand All @@ -377,6 +390,7 @@ def add_arguments(self, parser) -> None:
),
arg_type=float,
dest="prefill_load_scale",
env=self.env,
)
add_argument(
g,
Expand All @@ -392,6 +406,7 @@ def add_arguments(self, parser) -> None:
),
arg_type=float,
dest="decode_active_request_weight",
env=self.env,
)
add_argument(
g,
Expand All @@ -406,6 +421,7 @@ def add_arguments(self, parser) -> None:
),
arg_type=float,
dest="host_cache_hit_weight",
env=self.env,
)
add_argument(
g,
Expand All @@ -419,6 +435,7 @@ def add_arguments(self, parser) -> None:
),
arg_type=float,
dest="disk_cache_hit_weight",
env=self.env,
)
add_argument(
g,
Expand All @@ -431,6 +448,7 @@ def add_arguments(self, parser) -> None:
"Higher values promote more randomness, and 0 falls back to deterministic."
),
arg_type=float,
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -444,6 +462,7 @@ def add_arguments(self, parser) -> None:
),
dest="use_kv_events",
obsolete_flag="--kv-events",
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -454,6 +473,7 @@ def add_arguments(self, parser) -> None:
"KV Router: Enable best-effort active-sequence synchronization through "
"the Runtime event plane."
),
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -466,6 +486,7 @@ def add_arguments(self, parser) -> None:
"By default, active blocks are tracked for load balancing."
),
obsolete_flag="--track-active-blocks",
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -480,6 +501,7 @@ def add_arguments(self, parser) -> None:
"suffix; shared prompt blocks retain full weight."
),
obsolete_flag="--track-output-blocks",
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -493,6 +515,7 @@ def add_arguments(self, parser) -> None:
"(when KV cache reuse is not expected)."
),
obsolete_flag="--assume-kv-reuse",
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -505,6 +528,7 @@ def add_arguments(self, parser) -> None:
"Use --no-router-track-prefill-tokens to ignore prompt tokens in router "
"prefill-token load, queue pressure, and active_prefill_tokens metrics."
),
env=self.env,
)
add_argument(
g,
Expand All @@ -513,20 +537,23 @@ def add_arguments(self, parser) -> None:
default="public-xxh3-v1",
choices=["public-xxh3-v1", "keyed-xxh3-v1"],
help="KV Router: Hash function for router-derived active-sequence identities.",
env=self.env,
)
add_argument(
g,
flag_name="--router-tracking-key-file",
env_var="DYN_ROUTER_TRACKING_KEY_FILE",
default=None,
help="KV Router: File containing the 32-byte provider tracking key.",
env=self.env,
)
add_argument(
g,
flag_name="--router-tracking-key-id",
env_var="DYN_ROUTER_TRACKING_KEY_ID",
default=None,
help="KV Router: Provider-managed tracking-key epoch identifier.",
env=self.env,
)
add_argument(
g,
Expand All @@ -540,6 +567,7 @@ def add_arguments(self, parser) -> None:
"'none' keeps static prompt load accounting. "
"'ais' decays the oldest active prefill request using AISimulate-predicted duration."
),
env=self.env,
)
add_argument(
g,
Expand All @@ -551,6 +579,7 @@ def add_arguments(self, parser) -> None:
"Only used when --no-router-kv-events is set."
),
arg_type=float,
env=self.env,
)
add_argument(
g,
Expand All @@ -564,6 +593,7 @@ def add_arguments(self, parser) -> None:
"the existing time-based behavior; 'lru' uses each worker rank's "
"advertised KV capacity. Side indexers remain TTL-only."
),
env=self.env,
)
add_argument(
g,
Expand All @@ -588,6 +618,7 @@ def add_arguments(self, parser) -> None:
"explicitly for predictable semantics, or use a smaller threshold."
),
arg_type=nullable_float,
env=self.env,
)
add_argument(
g,
Expand All @@ -602,6 +633,7 @@ def add_arguments(self, parser) -> None:
"router_queue_threshold is set."
),
arg_type=str,
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -616,6 +648,7 @@ def add_arguments(self, parser) -> None:
"for each request."
),
dest="conditional_disagg_enabled",
env=self.env,
)
add_argument(
g,
Expand All @@ -631,6 +664,7 @@ def add_arguments(self, parser) -> None:
arg_type=_conditional_disagg_config_arg,
dest="conditional_disagg_config",
metavar="JSON",
env=self.env,
)
add_argument(
g,
Expand All @@ -647,6 +681,7 @@ def add_arguments(self, parser) -> None:
"Use 'default' for Dynamo's built-in worker selector."
),
arg_type=str,
env=self.env,
)
add_argument(
g,
Expand All @@ -663,6 +698,7 @@ def add_arguments(self, parser) -> None:
"Use 'default' for Dynamo's built-in worker selector."
),
arg_type=str,
env=self.env,
)
add_argument(
g,
Expand All @@ -675,6 +711,7 @@ def add_arguments(self, parser) -> None:
"approximate routing when --no-router-kv-events is set."
),
arg_type=int,
env=self.env,
)
add_argument(
g,
Expand All @@ -692,6 +729,7 @@ def add_arguments(self, parser) -> None:
),
arg_type=str,
choices=["fcfs", "wspt"],
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -703,6 +741,7 @@ def add_arguments(self, parser) -> None:
"component via the request plane instead of maintaining a local radix tree."
),
dest="use_remote_indexer",
env=self.env,
)
add_negatable_bool_argument(
g,
Expand All @@ -715,6 +754,7 @@ def add_arguments(self, parser) -> None:
"index for routing decisions yet."
),
dest="enable_session_prefix_index",
env=self.env,
)
add_argument(
g,
Expand All @@ -730,6 +770,7 @@ def add_arguments(self, parser) -> None:
"The default policy uses 0.5 when shared cache is enabled."
),
arg_type=float,
env=self.env,
)
add_argument(
g,
Expand All @@ -744,6 +785,7 @@ def add_arguments(self, parser) -> None:
),
arg_type=str,
choices=["none", "hicache"],
env=self.env,
)
add_argument(
g,
Expand All @@ -756,4 +798,5 @@ def add_arguments(self, parser) -> None:
"Independent of --router-ttl-secs, which covers pure approximate mode."
),
arg_type=float,
env=self.env,
)
Loading
Loading