[1/2][Model Runner V2] DBO support, eager mode (#50945)

Signed-off-by: specture724 <specture724@gmail.com>
Signed-off-by: Anjie Hou <149605198+specture724@users.noreply.github.com>
Co-authored-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Co-authored-by: Lucas Wilkinson <lwilkins@redhat.com>
This commit is contained in:
Anjie Hou
2026-09-04 14:17:39 -07:00
committed by GitHub
co-authored by jiangkuaixue123 Lucas Wilkinson
parent 784cac7c42
commit 3f41d102c5
17 changed files with 1346 additions and 111 deletions
+11
View File
@@ -1065,6 +1065,17 @@ class ParallelConfig:
"Unable to use nsight profiling unless workers run with Ray."
)
# A batch below one token per microbatch cannot be split, so the
# thresholds have to keep it out rather than the split having to cope.
if self.use_ubatching and (
min(self.dbo_decode_token_threshold, self.dbo_prefill_token_threshold)
< self.num_ubatches
):
raise ValueError(
"dbo_decode_token_threshold and dbo_prefill_token_threshold must "
f"be at least the number of microbatches ({self.num_ubatches})."
)
return self
def reconfigure_for_independent_dp_rank(self) -> None: