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
+6 -5
View File
@@ -109,6 +109,7 @@ def mhc_pre_delayed_tilelang(
Post and residual coefficients, optionally normalized BF16 layer input,
and the next FP32 pre-mix, with shapes (tokens, hc_mult, 1),
(tokens, hc_mult, hc_mult), (tokens, hidden_size), and (tokens, hc_mult).
"""
from vllm.model_executor.kernels.mhc.tilelang_kernels import (
_HC_PRENORM_GEMM_TILELANG_KERNEL,
@@ -320,6 +321,7 @@ def mhc_fused_post_pre_delayed_tilelang(
(tokens, hc_mult, hidden_size), (tokens, hc_mult, 1),
(tokens, hc_mult, hc_mult), (tokens, hidden_size), (tokens, hc_mult),
and (tokens, hidden_size).
"""
from vllm.model_executor.kernels.mhc.tilelang_kernels import (
_HC_PRENORM_GEMM_TILELANG_KERNEL,
@@ -551,8 +553,7 @@ def mhc_pre_tilelang(
norm_weight: torch.Tensor | None = None,
norm_eps: float = 1e-6,
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
"""
Forward pass for mHC pre block.
"""Forward pass for mHC pre block.
Args:
residual: shape (..., hc_mult, hidden_size), dtype torch.bfloat16
@@ -576,6 +577,7 @@ def mhc_pre_tilelang(
post_mix: shape (..., hc_mult), dtype torch.float32
comb_mix: shape (..., hc_mult, hc_mult), dtype torch.float32
layer_input: shape (..., hidden_size), dtype torch.bfloat16
"""
from vllm.model_executor.kernels.mhc.tilelang_kernels import (
_MHC_PRE_BIG_FUSE_TILELANG_KERNEL,
@@ -827,8 +829,7 @@ def mhc_fused_post_pre_tilelang(
norm_weight: torch.Tensor | None = None,
norm_eps: float = 1e-6,
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
"""
Run one MHC post block followed by the next MHC pre block.
"""Run one MHC post block followed by the next MHC pre block.
When ``norm_weight`` is provided, the layer_input_cur output is the
RMSNorm'd activation (fused into the kernel); otherwise it is the
@@ -842,8 +843,8 @@ def mhc_fused_post_pre_tilelang(
post_mix_cur: shape (..., hc_mult, 1)
comb_mix_cur: shape (..., hc_mult, hc_mult)
layer_input_cur: shape (..., hidden_size)
"""
"""
from vllm.model_executor.kernels.mhc.tilelang_kernels import (
_MHC_FUSED_TILELANG_KERNEL,
_MHC_POST_TILELANG_KERNEL,