[EPLB] Optmize eplb mapping and record in router for prefill (#36261)

Signed-off-by: ilmarkov <markovilya197@gmail.com>
This commit is contained in:
Ilya Markov
2026-03-30 19:48:33 +00:00
committed by GitHub
parent 494636b29d
commit 12701e8af2
6 changed files with 336 additions and 64 deletions
+3 -3
View File
@@ -53,9 +53,9 @@ All2AllBackend = Literal[
class EPLBConfig:
"""Configuration for Expert Parallel Load Balancing (EP)."""
window_size: int = 1000
window_size: int = Field(default=1000, gt=0)
"""Window size for expert load recording."""
step_interval: int = 3000
step_interval: int = Field(default=3000, gt=0)
"""
Interval for rearranging experts in expert parallelism.
@@ -71,7 +71,7 @@ class EPLBConfig:
Log the balancedness each step of expert parallelism.
This is turned off by default since it will cause communication overhead.
"""
log_balancedness_interval: int = 1
log_balancedness_interval: int = Field(default=1, gt=0)
"""
Interval for logging the balancedness.
"""