Skip to content

chore: suffix duration config fields with units - #9246

Merged
jthomson04 merged 4 commits into
mainfrom
refactor/duration-config-unit-suffixes
May 11, 2026
Merged

jthomson04 merged 4 commits into
mainfrom
refactor/duration-config-unit-suffixes

Conversation

@jthomson04

@jthomson04 jthomson04 commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Renamed duration-bearing config fields in PlannerConfig and the global router so units are visible in the field name itself (no more reading comments to know if a number is ms, seconds, or hours).
  • Old names continue to validate via aliases / loader fallbacks, so existing user YAML/JSON configs are not broken.
  • Updated all consumers, tests, example YAMLs, and docs to the new canonical names.

Renames

PlannerConfig / SLAPlannerDefaults

  • ttft → ttft_ms
  • itl → itl_ms
  • throughput_adjustment_interval → throughput_adjustment_interval_seconds
  • load_adjustment_interval → load_adjustment_interval_seconds

Global router (pool_selection.py / backend_args.py)

  • ttft_min/ttft_max → ttft_min_ms/ttft_max_ms
  • itl_min/itl_max → itl_min_ms/itl_max_ms
  • default_ttft_target / default_itl_target → *_ms (CLI: --default-{ttft,itl}-target-ms)
  • Step properties + select_pool(...) params updated to match.

Backwards compatibility

  • PlannerConfig uses pydantic Field(validation_alias=AliasChoices(new, old)) so old keys still parse.
  • Global router JSON loaders use a small _get_aliased() helper that falls back to the old key with a one-line deprecation warning.
  • CLI flags keep the old names as obsolete_flag aliases of the new flags.

Intentionally untouched

  • Metrics class fields (ttft, itl) — observed runtime metrics, not config.
  • DGDR sla.ttft / sla.itl — separate user-facing CRD schema.
  • Per-request extra_args["ttft_target"] / extra_args["itl_target"] — runtime client API.

Test plan

  • pytest components/src/dynamo/planner/tests/unit/{test_planner_config,test_easy_scaling,test_state_machine,test_diagnostics_recorder,test_metric_publication,test_load_based_scaling,test_load_predictors}.py — 172 pass
  • pytest components/src/dynamo/global_router/tests/ — 52 pass (the existing JSON-fixture tests use old names and now exercise the alias path)
  • Smoke-tested PlannerConfig.from_config_arg(...) and global router load_config(...) with both old-style and new-style keys; both produce identical configs, with deprecation warnings on the old path.

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Refactor

    • Updated configuration parameter names across planner and global router components to explicitly indicate time units (_ms for milliseconds, _seconds for seconds). Examples: ttft → ttft_ms, throughput_adjustment_interval → throughput_adjustment_interval_seconds. Legacy parameter names remain supported for backward compatibility.
  • Documentation

    • Updated planner and global router documentation to reflect new configuration parameter naming conventions.

@jthomson04
jthomson04 requested review from a team as code owners May 7, 2026 05:09
@github-actions github-actions Bot added documentation Improvements or additions to documentation backend::vllm Relates to the vllm backend backend::sglang Relates to the sglang backend backend::trtllm Relates to the trtllm backend planner labels May 7, 2026
@github-actions

github-actions Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

@coderabbitai

coderabbitai Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

This PR standardizes timing and interval configuration field naming across the Global Router and Planner components by adding explicit unit suffixes (_ms for milliseconds, _seconds for seconds). CLI flags, configuration dataclasses, selection strategies, and core logic are renamed consistently, with backward-compatibility aliases added via Pydantic. Tests, documentation, and example manifests are updated accordingly.

Changes

Timing Configuration Standardization

Layer / File(s) Summary
Configuration Schema
components/src/dynamo/global_router/backend_args.py, components/src/dynamo/planner/config/defaults.py, components/src/dynamo/planner/config/planner_config.py
Global Router CLI/env options and DynamoGlobalRouterConfig fields renamed to *_target_ms; Planner config fields split into ttft_ms/itl_ms (SLA) and *_interval_seconds (scaling intervals) with Pydantic validation_alias for legacy names.
Pool Selection & Strategy
components/src/dynamo/global_router/pool_selection.py
PrefillPoolSelectionStrategy, DecodePoolSelectionStrategy, and AggPoolSelectionStrategy dataclass fields renamed to *_min_ms/*_max_ms and step properties to *_step_ms; select_pool(...) method parameters renamed to *_target_ms; added _get_aliased() helper for deprecated JSON key support with warnings.
Global Router Handler
components/src/dynamo/global_router/__main__.py, components/src/dynamo/global_router/handler.py
Constructor now accepts default_ttft_target_ms/default_itl_target_ms; all three routing handlers (handle_prefill, handle_decode, handle_generate) updated to read/pass *_target_ms values from extra_args with fallbacks; log outputs include ms suffix.
Planner Core Logic
components/src/dynamo/planner/core/base.py, components/src/dynamo/planner/core/load_scaling.py, components/src/dynamo/planner/core/load/predictors.py, components/src/dynamo/planner/core/throughput_scaling.py, components/src/dynamo/planner/core/state_machine.py, components/src/dynamo/planner/monitoring/diagnostics_recorder.py, components/src/dynamo/planner/offline/trace_data.py
All references to timing/interval config fields updated to use *_ms/*_seconds variants; state machine and predictor initialization, SLA comparisons, traffic metrics duration, load/throughput scaling decisions, and diagnostics all use renamed fields.
Tests
components/src/dynamo/global_router/tests/test_agg_routing.py, components/src/dynamo/global_router/tests/test_priority_routing.py, components/src/dynamo/planner/tests/unit/test_*.py
Test helpers and PlannerConfig.model_construct(...) calls updated to construct objects with new field names; strategy constructors use *_ms fields; select_pool(...) calls updated to *_target_ms parameters; assertions verify new field names.
Configuration & Examples
components/src/dynamo/planner/config/defaults.py, components/src/dynamo/global_router/README.md, components/src/dynamo/planner/tests/manual/perf_test_configs/disagg_8b_planner.yaml, components/src/dynamo/planner/tests/manual/scaling/*.yaml, examples/backends/*/deploy/*.yaml, examples/global_planner/*.yaml
Configuration defaults, README, and inline YAML/JSON configurations updated to use new *_ms/*_seconds field names throughout.
Documentation
docs/benchmarks/planner-replay-benchmarking.md, docs/components/planner/README.md, docs/components/planner/planner-guide.md, docs/components/profiler/profiler-guide.md
Documentation updated to reference new SLA field names (ttft_ms/itl_ms) and scaling interval names (*_interval_seconds); example configs and descriptions reflect the unit-suffixed naming convention.

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 35.56% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The PR description provides a comprehensive overview with clear sections for Summary, Renames, Backwards compatibility, Intentionally untouched, and Test plan—exceeding template expectations.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately reflects the main refactoring objective: suffixing duration config fields with units (ttft_ms, itl_ms, *_seconds, etc.) across the planner and global router components.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
components/src/dynamo/planner/tests/unit/test_planner_config.py (1)

48-65: ⚡ Quick win

Consider adding a backward-compatibility alias test for the renamed PlannerConfig fields.

test_all_fields_work validates the new canonical names, but the PR's stated backward-compat guarantee (old keys ttft, itl, throughput_adjustment_interval accepted via AliasChoices) has no unit-test coverage in this file. A regression here would silently break users who haven't migrated yet.

✅ Suggested test
def test_legacy_field_aliases_accepted():
    """Old key names are still accepted via Pydantic AliasChoices."""
    config = PlannerConfig(
        namespace="test-ns",
        ttft=200,          # legacy alias for ttft_ms
        itl=50,            # legacy alias for itl_ms
        throughput_adjustment_interval=60,  # legacy alias for throughput_adjustment_interval_seconds
    )
    assert config.ttft_ms == 200
    assert config.itl_ms == 50
    assert config.throughput_adjustment_interval_seconds == 60
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/src/dynamo/planner/tests/unit/test_planner_config.py` around lines
48 - 65, Add a unit test to ensure backward-compatible alias names are accepted
by PlannerConfig: create a new test function (e.g.,
test_legacy_field_aliases_accepted) that constructs PlannerConfig using the
legacy keys ttft, itl, and throughput_adjustment_interval and asserts they map
to PlannerConfig.ttft_ms, PlannerConfig.itl_ms, and
PlannerConfig.throughput_adjustment_interval_seconds respectively; this verifies
the AliasChoices-based aliases still work alongside the existing
test_all_fields_work.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@components/src/dynamo/global_router/handler.py`:
- Line 163: The assignment to ttft_target_ms uses "or" which treats 0 as falsy
and drops explicit zeros; change it to preserve explicit zero by using an
explicit None check (e.g., set ttft_target_ms = extra_args.get("ttft_target") if
extra_args.get("ttft_target") is not None else self.default_ttft_target_ms).
Apply the same pattern where similar logic occurs (the other occurrence
referenced around line 213) and mirror the approach used in handle_generate to
ensure explicit 0 SLA overrides are preserved.

In `@components/src/dynamo/planner/config/planner_config.py`:
- Around line 101-104: PlannerConfig currently enforces positivity only for
ttft_ms inside _validate_config(), so itl_ms can be zero or negative; update
_validate_config() (and any duplicate validation block later) to also validate
that self.itl_ms is strictly > 0 and raise the same ValidationError/ValueError
used for ttft_ms when it isn't, ensuring the new itl_ms Field (aliasing "itl")
gets the same strict-positive check as ttft_ms.

---

Nitpick comments:
In `@components/src/dynamo/planner/tests/unit/test_planner_config.py`:
- Around line 48-65: Add a unit test to ensure backward-compatible alias names
are accepted by PlannerConfig: create a new test function (e.g.,
test_legacy_field_aliases_accepted) that constructs PlannerConfig using the
legacy keys ttft, itl, and throughput_adjustment_interval and asserts they map
to PlannerConfig.ttft_ms, PlannerConfig.itl_ms, and
PlannerConfig.throughput_adjustment_interval_seconds respectively; this verifies
the AliasChoices-based aliases still work alongside the existing
test_all_fields_work.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0121ef73-8811-47d0-b8ee-c8b4f1ae7099

📥 Commits

Reviewing files that changed from the base of the PR and between d1753c8 and 747fc70.

📒 Files selected for processing (36)
  • components/src/dynamo/global_router/README.md
  • components/src/dynamo/global_router/__main__.py
  • components/src/dynamo/global_router/backend_args.py
  • components/src/dynamo/global_router/handler.py
  • components/src/dynamo/global_router/pool_selection.py
  • components/src/dynamo/global_router/tests/test_agg_routing.py
  • components/src/dynamo/global_router/tests/test_priority_routing.py
  • components/src/dynamo/planner/config/defaults.py
  • components/src/dynamo/planner/config/planner_config.py
  • components/src/dynamo/planner/core/base.py
  • components/src/dynamo/planner/core/load/predictors.py
  • components/src/dynamo/planner/core/load_scaling.py
  • components/src/dynamo/planner/core/state_machine.py
  • components/src/dynamo/planner/core/throughput_scaling.py
  • components/src/dynamo/planner/monitoring/diagnostics_recorder.py
  • components/src/dynamo/planner/offline/trace_data.py
  • components/src/dynamo/planner/tests/manual/perf_test_configs/disagg_8b_planner.yaml
  • components/src/dynamo/planner/tests/manual/scaling/disagg_planner_load.yaml
  • components/src/dynamo/planner/tests/manual/scaling/disagg_planner_throughput.yaml
  • components/src/dynamo/planner/tests/unit/test_diagnostics_recorder.py
  • components/src/dynamo/planner/tests/unit/test_easy_scaling.py
  • components/src/dynamo/planner/tests/unit/test_load_based_scaling.py
  • components/src/dynamo/planner/tests/unit/test_load_predictors.py
  • components/src/dynamo/planner/tests/unit/test_metric_publication.py
  • components/src/dynamo/planner/tests/unit/test_planner_config.py
  • components/src/dynamo/planner/tests/unit/test_state_machine.py
  • docs/benchmarks/planner-replay-benchmarking.md
  • docs/components/planner/README.md
  • docs/components/planner/planner-guide.md
  • docs/components/profiler/profiler-guide.md
  • examples/backends/sglang/deploy/disagg_planner.yaml
  • examples/backends/trtllm/deploy/disagg_planner.yaml
  • examples/backends/vllm/deploy/disagg_planner.yaml
  • examples/global_planner/global-planner-gpu-budget.yaml
  • examples/global_planner/global-planner-mocker-test.yaml
  • examples/global_planner/global-planner-vllm-test.yaml

jthomson04 and others added 3 commits May 11, 2026 10:11
…nits

Rename duration-bearing config fields to encode their units in the name,
so users don't have to read field comments to know whether a value is
ms, seconds, or hours:

- PlannerConfig: ttft → ttft_ms, itl → itl_ms,
  throughput_adjustment_interval → throughput_adjustment_interval_seconds,
  load_adjustment_interval → load_adjustment_interval_seconds
- Global router pool selection strategies: ttft_min/max → ttft_min_ms/max_ms,
  itl_min/max → itl_min_ms/max_ms (plus matching select_pool params)
- Global router CLI: --default-{ttft,itl}-target → --default-{ttft,itl}-target-ms

Old names are still accepted for backwards compatibility:
- PlannerConfig uses pydantic AliasChoices so old keys validate as before.
- Global router JSON loaders fall back to old keys with a one-line
  deprecation warning.
- Global router CLI flags keep the old names as obsolete aliases.

Metrics class fields, DGDR sla.ttft/itl, and per-request extra_args keys
are intentionally left alone — they are not config and renaming them
would change separate API surfaces.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…nv vars

The previous commit renamed the env vars to add a _MS suffix without
falling back to the un-suffixed names, so users with the legacy env vars
silently lost their settings. Use env_or_default to read the legacy var
when the new one is unset.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@jthomson04
jthomson04 force-pushed the refactor/duration-config-unit-suffixes branch from fb13232 to b484c7c Compare May 11, 2026 17:12
@jthomson04 jthomson04 changed the title refactor(planner,global-router): suffix duration config fields with units chore: suffix duration config fields with units May 11, 2026
@github-actions github-actions Bot added the chore label May 11, 2026
… with units

Update test_state_machine.py call sites that pass ttft= / itl=
kwargs to _make_core / _make_agg_core (PlannerConfig fields were
renamed to ttft_ms / itl_ms).
@jthomson04
jthomson04 merged commit e2f63d0 into main May 11, 2026
245 of 250 checks passed
@jthomson04
jthomson04 deleted the refactor/duration-config-unit-suffixes branch May 11, 2026 23:24
kaim-eng added a commit that referenced this pull request May 12, 2026
…ebase

Main's #9246 (chore: suffix duration config fields with units) renamed
PlannerConfig.ttft -> ttft_ms and PlannerConfig.itl -> itl_ms. Construction
keeps working via pydantic's validation_alias=AliasChoices("ttft_ms", "ttft"),
so PlannerConfig(ttft=..., itl=...) keyword construction is still accepted,
but Python attribute access must use the new names.

PR 9369 was based on the pre-rename code and read the SLAs via .ttft / .itl
on PlannerConfig instances:

  - aic_power_optimizer.py: 2 reads (single-engine feasibility check) +
    2 reads (should_reoptimize SLA-violation check)
  - test_aic_real_data.py: 1 read (synthesizing 2x-SLA traffic)

All 4 + 1 sites updated. Surfaced as AttributeError when running the
26 alpha-class testbed scenarios (test_scenarios.py::test_alpha[*]).

Fixes: 26 testbed alpha-scenario failures, 1 test_self_consistency alpha test
Signed-off-by: Kai Ma <[email protected]>
kaim-eng added a commit that referenced this pull request May 12, 2026
Rebase onto main pulled in PR #9246's PlannerConfig field renames
(	tft->	tft_ms, itl->itl_ms, 	hroughput_adjustment_interval->
	hroughput_adjustment_interval_seconds,
load_adjustment_interval->load_adjustment_interval_seconds).
Two of the four ms-suffix accesses were updated in the prior fixup,
but power_aware_replay_adapter.py still accessed the old
	hroughput_adjustment_interval attribute. Pydantic's AliasChoices
only covers constructor input, not attribute access — so all four
gamma-class testbed tests failed with::

    AttributeError: 'PlannerConfig' object has no attribute
    'throughput_adjustment_interval'. Did you mean:
    'throughput_adjustment_interval_seconds'?

This patch renames the attribute access at line 111 to the new
canonical field name. Constructor sites still work via AliasChoices.

Signed-off-by: Kai Ma <[email protected]>
kaim-eng added a commit that referenced this pull request May 12, 2026
Update pr9369-split-plan.md to reflect the kaim/power-planner rebase
onto origin/main (merge-base 30def76):

* Section 1 inventory: 22,423 -> 22,936 insertions, 15 -> 14 deletions,
  4 -> 9 commits.
* Section 1.1 commits table: rewritten with the 9 post-rebase SHAs
  (4 original + 5 rebase fixups). Each old SHA paired with new in
  'Was X pre-rebase' annotations. Strengthens the central claim that
  cherry-picking commits cannot produce the 6 clean PRs; the rebase
  fixups themselves cross-cut PRs 2-4 and reinforce the file-verbatim
  mechanic in section 4.2.
* New section 1.6 ? Rebase rename collisions. Documents PR #9246's
  PlannerConfig field renames (ttft/itl/throughput_adjustment_interval/
  load_adjustment_interval -> _ms/_seconds suffixes). Notes that pydantic
  AliasChoices covers construction but not attribute access; hand-authored
  intermediates in PR 1b/PR 3 must use the canonical names. Also notes
  the newly enforced pytest-marker-report hook and lists the 7
  PR-introduced test files now shipping with module-level pytestmark
  blocks (gpu_0/pre_merge/unit-or-integration/planner).
* Section 5.6 cross-cutting-fix SHA: ca10f72 -> 4ffe1dc. Added
  note that the 5 rebase fixups follow the same fan-out pattern.
* Section 2.6 and section 6.1: refreshed historical commit-SHA citations
  (43d81ba was 7319c9c; 52848a0 was 688c30c).
* Section 7 pre-flight: added the section 1.6 cross-reference and the
  Windows pytest-marker-report fcntl caveat (passes on Linux).

No strategic changes; PR 1a / PR 1b / PR 2 / PR 3 / PR 4 / PR 5 scope
and mechanics are unchanged.

Signed-off-by: Kai Ma <[email protected]>
kaim-eng added a commit that referenced this pull request May 12, 2026
…ebase

Main's #9246 (chore: suffix duration config fields with units) renamed
PlannerConfig.ttft -> ttft_ms and PlannerConfig.itl -> itl_ms. Construction
keeps working via pydantic's validation_alias=AliasChoices("ttft_ms", "ttft"),
so PlannerConfig(ttft=..., itl=...) keyword construction is still accepted,
but Python attribute access must use the new names.

PR 9369 was based on the pre-rename code and read the SLAs via .ttft / .itl
on PlannerConfig instances:

  - aic_power_optimizer.py: 2 reads (single-engine feasibility check) +
    2 reads (should_reoptimize SLA-violation check)
  - test_aic_real_data.py: 1 read (synthesizing 2x-SLA traffic)

All 4 + 1 sites updated. Surfaced as AttributeError when running the
26 alpha-class testbed scenarios (test_scenarios.py::test_alpha[*]).

Fixes: 26 testbed alpha-scenario failures, 1 test_self_consistency alpha test
Signed-off-by: Kai Ma <[email protected]>
kaim-eng added a commit that referenced this pull request May 12, 2026
Rebase onto main pulled in PR #9246's PlannerConfig field renames
(	tft->	tft_ms, itl->itl_ms, 	hroughput_adjustment_interval->
	hroughput_adjustment_interval_seconds,
load_adjustment_interval->load_adjustment_interval_seconds).
Two of the four ms-suffix accesses were updated in the prior fixup,
but power_aware_replay_adapter.py still accessed the old
	hroughput_adjustment_interval attribute. Pydantic's AliasChoices
only covers constructor input, not attribute access — so all four
gamma-class testbed tests failed with::

    AttributeError: 'PlannerConfig' object has no attribute
    'throughput_adjustment_interval'. Did you mean:
    'throughput_adjustment_interval_seconds'?

This patch renames the attribute access at line 111 to the new
canonical field name. Constructor sites still work via AliasChoices.

Signed-off-by: Kai Ma <[email protected]>
kaim-eng added a commit that referenced this pull request May 18, 2026
…ebase

Main's #9246 (chore: suffix duration config fields with units) renamed
PlannerConfig.ttft -> ttft_ms and PlannerConfig.itl -> itl_ms. Construction
keeps working via pydantic's validation_alias=AliasChoices("ttft_ms", "ttft"),
so PlannerConfig(ttft=..., itl=...) keyword construction is still accepted,
but Python attribute access must use the new names.

PR 9369 was based on the pre-rename code and read the SLAs via .ttft / .itl
on PlannerConfig instances:

  - aic_power_optimizer.py: 2 reads (single-engine feasibility check) +
    2 reads (should_reoptimize SLA-violation check)
  - test_aic_real_data.py: 1 read (synthesizing 2x-SLA traffic)

All 4 + 1 sites updated. Surfaced as AttributeError when running the
26 alpha-class testbed scenarios (test_scenarios.py::test_alpha[*]).

Fixes: 26 testbed alpha-scenario failures, 1 test_self_consistency alpha test
Signed-off-by: Kai Ma <[email protected]>
kaim-eng added a commit that referenced this pull request May 18, 2026
Rebase onto main pulled in PR #9246's PlannerConfig field renames
(	tft->	tft_ms, itl->itl_ms, 	hroughput_adjustment_interval->
	hroughput_adjustment_interval_seconds,
load_adjustment_interval->load_adjustment_interval_seconds).
Two of the four ms-suffix accesses were updated in the prior fixup,
but power_aware_replay_adapter.py still accessed the old
	hroughput_adjustment_interval attribute. Pydantic's AliasChoices
only covers constructor input, not attribute access — so all four
gamma-class testbed tests failed with::

    AttributeError: 'PlannerConfig' object has no attribute
    'throughput_adjustment_interval'. Did you mean:
    'throughput_adjustment_interval_seconds'?

This patch renames the attribute access at line 111 to the new
canonical field name. Constructor sites still work via AliasChoices.

Signed-off-by: Kai Ma <[email protected]>

This branch was previously deployed

1 inactive deployment
GITLAB — 6e803cbe Deployed May 11, 2026 by copy-pr-bot[bot] via Trigger CI Pipeline #27050
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend::sglang Relates to the sglang backend backend::trtllm Relates to the trtllm backend backend::vllm Relates to the vllm backend chore documentation Improvements or additions to documentation planner size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants