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
+5 -7
View File
@@ -135,8 +135,7 @@ def _skip_reason_if_unavailable(backend: str, dtype: torch.dtype) -> str | None:
@pytest.mark.parametrize("dtype", [torch.bfloat16, torch.float16])
@pytest.mark.parametrize("backend", ["triton", "aiter", "xpu", "quark"])
def test_mxfp4_quantization_correctness(backend: str, dtype: torch.dtype):
"""
Tests that the different implementations of mxfp4_quantize
"""Tests that the different implementations of mxfp4_quantize
in mxfp4_utils.py all match.
"""
skip_reason = _skip_reason_if_unavailable(backend, dtype)
@@ -290,8 +289,7 @@ def test_online_mxfp4_moe_matches_quark(
dist_init,
monkeypatch,
):
"""
Ensures `Mxfp4OnlineMoEMethod` (online quantization)
"""Ensures `Mxfp4OnlineMoEMethod` (online quantization)
and `QuarkOCP_MX_MoEMethod` (AMD Quark checkpoints) produce the same weights,
with same MOE backend used.
@@ -413,7 +411,8 @@ def test_online_mxfp4_moe_matches_quark(
) -> tuple[torch.Tensor, torch.Tensor]:
"""Place the source weights into buffers of the padded size, the
way the weight loader writes only the unpadded slice of a larger
allocation."""
allocation.
"""
w13 = torch.full(
(num_experts, 2 * intermediate_size, hidden_size),
padding_value,
@@ -495,8 +494,7 @@ def test_online_mxfp4_moe_matches_quark(
def test_online_mxfp4_dense_matches_quark(
linear_backend: str, default_vllm_config, dist_init, monkeypatch
):
"""
Ensures `Mxfp4OnlineLinearMethod` (online quantization)
"""Ensures `Mxfp4OnlineLinearMethod` (online quantization)
and `QuarkOCP_MX` (AMD Quark checkpoints) produce the same weights,
with same linear backend used.
"""