Add pydocstyle to the ruff rules (#52136)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <hej.mellor@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
@@ -225,8 +225,7 @@ def _unpack(
class MoERunner(MoERunnerInterface):
"""
Standard MoE runner implementation for executing Mixture of Experts layers.
"""Standard MoE runner implementation for executing Mixture of Experts layers.
This is the primary concrete implementation of MoE execution logic, providing
comprehensive support for standard MoE operations. It handles:
@@ -704,7 +703,6 @@ class MoERunner(MoERunnerInterface):
1. pytorch cannot handle union types in custom op signatures so
_moe_forward and _moe_forward_shared must be split.
"""
# Apply transform for routed experts (e.g., latent projection for
# latent MoE). When the caller pre-applies the routed input transform
# outside the runner (e.g. to overlap it on a separate stream), it
@@ -1019,8 +1017,7 @@ class MoERunner(MoERunnerInterface):
logical_to_physical_map: torch.Tensor,
logical_replica_count: torch.Tensor,
) -> None:
"""
Register the EPLB state in this layer.
"""Register the EPLB state in this layer.
This is used later in forward pass, where we get the expert mapping
and record the load metrics in `expert_load_view`.
@@ -17,8 +17,7 @@ from vllm.model_executor.layers.fused_moe.runner.shared_experts import (
class MoERunnerInterface(PluggableLayer, ABC):
"""
Abstract base class for Mixture of Experts (MoE) runners.
"""Abstract base class for Mixture of Experts (MoE) runners.
This class defines the interface that all MoE runner implementations must follow.
MoE runners are responsible for executing the forward pass of MoE layers, handling