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:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -73,7 +73,8 @@ def test_mtp_override_extracts_n_predict_from_multimodal_wrapper(
|
||||
model_type: str, expected_arch: str
|
||||
) -> None:
|
||||
"""Verify that multimodal wrapper checkpoints with mtp_num_hidden_layers
|
||||
in text_config resolve n_predict and architecture correctly."""
|
||||
in text_config resolve n_predict and architecture correctly.
|
||||
"""
|
||||
cfg = SpeculativeConfig.hf_config_override(
|
||||
_multimodal_wrapper_mtp_config(model_type, mtp_layers=2)
|
||||
)
|
||||
@@ -93,7 +94,8 @@ def test_mtp_override_top_level_precedence_over_nested_text_config(
|
||||
model_type: str, expected_arch: str
|
||||
) -> None:
|
||||
"""Verify that an explicit top-level mtp_num_hidden_layers takes precedence
|
||||
over a nested text_config value."""
|
||||
over a nested text_config value.
|
||||
"""
|
||||
cfg = _multimodal_wrapper_mtp_config(model_type, mtp_layers=2)
|
||||
cfg.mtp_num_hidden_layers = 3
|
||||
overridden = SpeculativeConfig.hf_config_override(cfg)
|
||||
@@ -113,7 +115,8 @@ def test_mtp_override_downloads_real_hf_hub_configs(
|
||||
model_id: str, expected_arch: str
|
||||
) -> None:
|
||||
"""Verify that unmodified real-world checkpoints downloaded via
|
||||
AutoConfig.from_pretrained resolve n_predict=1 from text_config."""
|
||||
AutoConfig.from_pretrained resolve n_predict=1 from text_config.
|
||||
"""
|
||||
hf_config = AutoConfig.from_pretrained(model_id)
|
||||
cfg = SpeculativeConfig.hf_config_override(hf_config)
|
||||
assert cfg.model_type == "qwen3_5_mtp"
|
||||
|
||||
Reference in New Issue
Block a user