[EPLB] Optmize eplb mapping and record in router for prefill (#36261)
Signed-off-by: ilmarkov <markovilya197@gmail.com>
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user