Skip to content

vllm.config.aux_output

Configuration for execution auxiliary outputs.

Classes:

AuxOutputConfig

Configuration for auxiliary-output delivery.

Methods:

  • compute_hash –

    Hash AuxOutput settings that alter the model forward graph.

Attributes:

Source code in vllm/config/aux_output.py
@config
class AuxOutputConfig:
    """Configuration for auxiliary-output delivery."""

    enable_return_routed_experts: bool = False
    """Capture and return routed-experts auxiliary outputs."""

    max_bytes: int | None = Field(default=None, gt=0)
    """Initial SHM arena capacity, or ``None`` to derive it from the KV cache
    capacity. An explicit value must cover every GPU KV block at startup or
    startup fails. This is not a hard runtime memory limit: the arena grows when
    every object is referenced."""

    @property
    def enabled(self) -> bool:
        """Whether any execution auxiliary output is enabled."""
        return self.enable_return_routed_experts

    def compute_hash(self) -> str:
        """Hash AuxOutput settings that alter the model forward graph."""
        from vllm.config.utils import hash_factors

        return hash_factors(
            {"enable_return_routed_experts": self.enable_return_routed_experts}
        )

enable_return_routed_experts = False class-attribute instance-attribute

Capture and return routed-experts auxiliary outputs.

enabled property

Whether any execution auxiliary output is enabled.

max_bytes = Field(default=None, gt=0) class-attribute instance-attribute

Initial SHM arena capacity, or None to derive it from the KV cache capacity. An explicit value must cover every GPU KV block at startup or startup fails. This is not a hard runtime memory limit: the arena grows when every object is referenced.

compute_hash()

Hash AuxOutput settings that alter the model forward graph.

Source code in vllm/config/aux_output.py
def compute_hash(self) -> str:
    """Hash AuxOutput settings that alter the model forward graph."""
    from vllm.config.utils import hash_factors

    return hash_factors(
        {"enable_return_routed_experts": self.enable_return_routed_experts}
    )