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
@@ -48,7 +48,6 @@ class FakeQuantLinearMethod(UnquantizedLinearMethod):
|
||||
bias: torch.Tensor | None = None,
|
||||
) -> torch.Tensor:
|
||||
"""Perform fake quantization before the linear layer."""
|
||||
|
||||
# Calculate the scales dynamically
|
||||
max_val = torch.amax(x, dim=(0, -1), keepdims=True)
|
||||
min_val = torch.amin(x, dim=(0, -1), keepdims=True)
|
||||
@@ -108,7 +107,6 @@ class CustomQuantConfig(QuantizationConfig):
|
||||
|
||||
def test_register_quantization_config(caplog_vllm):
|
||||
"""Test register custom quantization config."""
|
||||
|
||||
# The quantization method `custom_quant` should be registered.
|
||||
assert get_quantization_config("custom_quant") == CustomQuantConfig
|
||||
|
||||
|
||||
Reference in New Issue
Block a user