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
+4 -7
View File
@@ -119,8 +119,7 @@ def iterative_moe(
expert_map: torch.Tensor = None,
renormalize: bool = False,
) -> torch.Tensor:
"""
Baseline implementation of fused moe.
"""Baseline implementation of fused moe.
Args:
hidden_states: [*, hidden_size]
@@ -128,6 +127,7 @@ def iterative_moe(
w2: [num_experts, hidden_size, intermediate_size]
gating_output: [*, num_experts]
expert_map: [num_experts]
"""
orig_shape = hidden_states.shape
hidden_size = hidden_states.shape[-1]
@@ -1956,8 +1956,7 @@ def test_batched_fused_marlin_moe(
)
def is_valid(self):
"""
Return True only if the input can be represented in a Batched
"""Return True only if the input can be represented in a Batched
format.
"""
return torch.all(self.expert_num_tokens_cpu <= self.max_tokens_per_batch)
@@ -2078,9 +2077,7 @@ def test_unquantized_bf16_flashinfer_trtllm_backend(
dtype: torch.dtype,
workspace_init,
):
"""
Test BF16 unquantized MoE with FlashInfer TRTLLM backend.
"""
"""Test BF16 unquantized MoE with FlashInfer TRTLLM backend."""
set_random_seed(7)
from vllm.model_executor.layers.fused_moe.config import (