[Core] Apply prefill_schedule_interval outside data parallelism (#54627)

Signed-off-by: lifulu <fululi12@amd.com>
Signed-off-by: lifulu <lifulu@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: lifulu <lifulu@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
fululi12
2026-10-15 11:03:13 -05:00
committed by GitHub
co-authored by Cursor Agent lifulu Claude Opus 5
parent c825e1d235
commit ed3050add4
4 changed files with 329 additions and 3 deletions
+6 -3
View File
@@ -201,9 +201,12 @@ class SchedulerConfig:
(the default) disables the watermark."""
prefill_schedule_interval: int = Field(default=1, ge=1)
"""For data-parallel deployments, only admit new prefill requests
once every N engine steps, aligned across DP ranks, to better balance
per-step forward-pass times."""
"""Only admit prefill once every N engine steps, leaving the steps in
between to decode alone. 1 (the default) admits prefill on every step.
A deferred step carries no prefill at all, including chunks of an
already-admitted prompt, so a long prompt can take up to N times as many
steps to finish prefilling."""
async_scheduling: bool | None = None
"""If set to False, disable async scheduling. Async scheduling helps to