[Bugfix] Improve EPLB config validation error message (#24524)

Signed-off-by: Tyler Michael Smith <tyler@neuralmagic.com>
This commit is contained in:
Tyler Michael Smith 2025-09-09 20:32:36 -04:00 committed by GitHub
parent 73e688cb79
commit 561f38dc3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -368,8 +368,10 @@ class ParallelConfig:
else:
if self.eplb_config.num_redundant_experts != 0:
raise ValueError(
"num_redundant_experts should be used with EPLB."
f"{self.eplb_config.num_redundant_experts}.")
"num_redundant_experts is set to "
f"{self.eplb_config.num_redundant_experts} but EPLB is not "
"enabled. Either enable EPLB or unset "
"num_redundant_experts.")
if self.distributed_executor_backend is None and self.world_size > 1:
# We use multiprocessing by default if world_size fits on the
# current node and we aren't in a ray placement group.