[Scheduler] Tune --long-prefill-token-threshold adaptiveness (#58459)

Signed-off-by: Robert Shaw <robertgshaw2@gmail.com>
This commit is contained in:
Robert Shaw
2026-09-23 22:23:18 -04:00
committed by GitHub
parent e9f167129c
commit 6697a7dd30
5 changed files with 54 additions and 1 deletions
+10
View File
@@ -573,6 +573,9 @@ class EngineArgs:
max_num_batched_tokens: int | None = None
max_num_scheduled_tokens: int | None = None
long_prefill_token_threshold: int = SchedulerConfig.long_prefill_token_threshold
long_prefill_token_threshold_adaptive: bool = (
SchedulerConfig.long_prefill_token_threshold_adaptive
)
max_num_seqs: int | None = None
max_num_active_seqs: int | None = SchedulerConfig.max_num_active_seqs
max_num_queued_reqs: int | None = None
@@ -1643,6 +1646,10 @@ class EngineArgs:
"--long-prefill-token-threshold",
**scheduler_kwargs["long_prefill_token_threshold"],
)
scheduler_group.add_argument(
"--long-prefill-token-threshold-adaptive",
**scheduler_kwargs["long_prefill_token_threshold_adaptive"],
)
# multi-step scheduling has been removed; corresponding arguments
# are no longer supported.
scheduler_group.add_argument(
@@ -2489,6 +2496,9 @@ class EngineArgs:
policy=self.scheduling_policy,
scheduler_cls=self.scheduler_cls,
long_prefill_token_threshold=self.long_prefill_token_threshold,
long_prefill_token_threshold_adaptive=(
self.long_prefill_token_threshold_adaptive
),
scheduler_reserve_full_isl=self.scheduler_reserve_full_isl,
watermark=self.watermark,
prefill_schedule_interval=self.prefill_schedule_interval,