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
@@ -14,8 +14,7 @@ def register_speculator(name):
|
||||
|
||||
@register_speculator("eagle3")
|
||||
def update_eagle3(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
"""
|
||||
Apply Eagle-3 specific configuration transformations to the `dict` used to
|
||||
"""Apply Eagle-3 specific configuration transformations to the `dict` used to
|
||||
construct the Transformers PreTrainedConfig.
|
||||
|
||||
Eagle-3 specific fields:
|
||||
@@ -28,7 +27,6 @@ def update_eagle3(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
provide intermediate hidden states that help the drafter make better
|
||||
predictions. This is the standard field used in Eagle3 checkpoints.
|
||||
"""
|
||||
|
||||
pre_trained_config["draft_vocab_size"] = config_dict.get("draft_vocab_size")
|
||||
if config_dict.get("target_hidden_size") is not None:
|
||||
pre_trained_config["target_hidden_size"] = config_dict["target_hidden_size"]
|
||||
@@ -54,8 +52,7 @@ def update_eagle3(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
|
||||
@register_speculator("peagle")
|
||||
def update_peagle(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
"""
|
||||
Apply PEagle (Parallel Eagle) specific configuration transformations to
|
||||
"""Apply PEagle (Parallel Eagle) specific configuration transformations to
|
||||
the `dict` used to construct the Transformers PreTrainedConfig.
|
||||
|
||||
PEagle specific fields:
|
||||
@@ -92,8 +89,7 @@ def update_peagle(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
|
||||
@register_speculator("dflash")
|
||||
def update_dflash(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
"""
|
||||
Apply DFlash specific configuration transformations to the `dict` used to
|
||||
"""Apply DFlash specific configuration transformations to the `dict` used to
|
||||
construct the Transformers PreTrainedConfig.
|
||||
|
||||
DFlash specific fields:
|
||||
@@ -132,8 +128,7 @@ def update_dflash(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
|
||||
@register_speculator("dflash2")
|
||||
def update_dflash2(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
"""
|
||||
Apply DFlash2 specific configuration transformations to the `dict` used
|
||||
"""Apply DFlash2 specific configuration transformations to the `dict` used
|
||||
to construct the Transformers PreTrainedConfig.
|
||||
|
||||
DFlash2 extends DFlash with a grouped convolution layer and a
|
||||
@@ -156,8 +151,7 @@ def update_dflash2(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
|
||||
@register_speculator("dspark")
|
||||
def update_dspark(config_dict: dict, pre_trained_config: dict) -> None:
|
||||
"""
|
||||
Apply DSpark specific configuration transformations to the `dict` used to
|
||||
"""Apply DSpark specific configuration transformations to the `dict` used to
|
||||
construct the Transformers PreTrainedConfig.
|
||||
|
||||
DSpark extends DFlash with a Markov logit-bias head, reusing the same
|
||||
|
||||
Reference in New Issue
Block a user