vllm-project/vllm · error · ValueError

Elastic EP is only supported with enable_eplb=True.

Error message

Elastic EP is only supported with enable_eplb=True.

What it means

Elastic expert parallelism (elastic EP) dynamically rescales the EP group and depends on EPLB's redundant-expert machinery to redistribute experts. ParallelConfig therefore requires enable_eplb=True when enable_elastic_ep is set.

Source

Thrown at vllm/config/parallel.py:845

        factors = get_hash_factors(self, ignored_factors)
        return hash_factors(factors)

    def __post_init__(self) -> None:
        # Continue with the rest of the initialization
        self.world_size = (
            self.pipeline_parallel_size
            * self.tensor_parallel_size
            * self.prefill_context_parallel_size
        )

        if self.distributed_executor_backend == "external_launcher":
            logger.info("Using external launcher for distributed inference.")
            self.world_size *= self.data_parallel_size

        if self.enable_elastic_ep:
            if not self.enable_eplb:
                raise ValueError("Elastic EP is only supported with enable_eplb=True.")
            if self.pipeline_parallel_size > 1:
                raise ValueError(
                    "Elastic EP is not supported with pipeline parallelism "
                    f"(pipeline_parallel_size={self.pipeline_parallel_size})."
                )
            if self.data_parallel_external_lb or self.data_parallel_hybrid_lb:
                raise NotImplementedError(
                    "Elastic EP is not compatible with data_parallel_external_lb "
                    "or data_parallel_hybrid_lb. Elastic EP relies on a single API "
                    "server and core client to coordinate scale up/down."
                )
            if self.eplb_config.use_async:
                from vllm.distributed.nixl_utils import is_nixl_available

                if not is_nixl_available():
                    raise ValueError(
                        "Elastic EP with async EPLB requires the NIXL "
                        "package. Either install NIXL or set "

View on GitHub (pinned to c794754062)

Solutions

  1. Add --enable-eplb (and its prerequisites: --enable-expert-parallel, TP/PCP/DP > 1, CUDA/ROCm).
  2. Or drop --enable-elastic-ep if dynamic EP rescaling is not required.

Example fix

# before
vllm serve model --enable-elastic-ep
# after
vllm serve model --enable-expert-parallel --enable-eplb --enable-elastic-ep
Defensive patterns

Strategy: validation

Validate before calling

def elastic_ep_valid(enable_elastic_ep: bool, enable_eplb: bool) -> bool:
    return not enable_elastic_ep or enable_eplb

assert elastic_ep_valid(True, True)

Prevention

When it happens

Trigger: Passing --enable-elastic-ep without --enable-eplb.

Common situations: Enabling elastic scaling for a MoE deployment while treating EPLB as an optional optimization; flag-order confusion in long launcher scripts.

Related errors


AI-assisted analysis of vllm-project/vllm@c794754062 (2026-08-14). Data as JSON: /api/errors/2287d76e5a637e56. Report an issue: GitHub.