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
View File
@@ -106,6 +106,7 @@ def _resolve_fused_expert_param(
Returns:
The matching draft parameter name, or None when there is none.
"""
if not ckpt_suffix:
return param_base if param_base in params_dict else None
@@ -164,6 +165,7 @@ def _create_mtp_quant_config(
Returns:
The quantization config to use for the MTP layers, or None when the MTP
layers are unquantized.
"""
mtp_quant_algo = getattr(hf_config, "mtp_quant_algo", None)
@@ -241,6 +243,7 @@ def _remap_mtp_quant_exclusions(
Returns:
A shallow copy with the translated exclusions, or the input unchanged.
"""
if quant_config is None:
return None
@@ -671,6 +674,7 @@ class HYV4MTP(nn.Module):
Returns:
True when the weight was consumed (even if this rank holds none of
the addressed experts).
"""
base = name.split(".experts.")[0]
for ckpt_proj, tag in (