Skip to content

vllm.models.qwen3_5.xpu.specialized_decode

Opt-in small-row MoE fusion over the Qwen3.5 XPU eager backbone.

Post-load hooks bind qualified weights; ineligible steps use the stock layer. This package does not replace the model's whole decode step.

Modules:

  • config –

    Deployment qualification for the opt-in XPU MoE executor.

  • hooks –

    Build optional MoE executors before memory profiling and graph capture.

  • model_state –

    Qwen3.5 XPU batch semantics over the standard hybrid ModelState.

  • moe –

    Bind and execute routed + gated shared experts for eligible decode rows.

  • planning –

    Host-only batch planning and bounded observability for MoE specialization.

  • weights –

    Qualify and prepare the model parameters read by specialized MoE decode.

Functions:

  • is_requested –

    Select the optional provider through the existing additional-config API.

is_requested(vllm_config)

Select the optional provider through the existing additional-config API.

Source code in vllm/models/qwen3_5/xpu/specialized_decode/__init__.py
def is_requested(vllm_config) -> bool:
    """Select the optional provider through the existing additional-config API."""
    extra = vllm_config.additional_config
    backend = extra.get("decode_backend", "auto") if isinstance(extra, dict) else "auto"
    if backend not in ("auto", "latency_specialized"):
        raise ValueError("Supported decode_backend values are auto/latency_specialized")
    return backend == "latency_specialized"