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
@@ -1,7 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
"""
|
||||
Whenever you add an architecture to this page, please also update
|
||||
"""Whenever you add an architecture to this page, please also update
|
||||
`tests/models/registry.py` with example HuggingFace models for it.
|
||||
"""
|
||||
|
||||
@@ -928,9 +927,7 @@ class _BaseRegisteredModel(ABC):
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class _RegisteredModel(_BaseRegisteredModel):
|
||||
"""
|
||||
Represents a model that has already been imported in the main process.
|
||||
"""
|
||||
"""Represents a model that has already been imported in the main process."""
|
||||
|
||||
interfaces: _ModelInfo
|
||||
model_cls: type[nn.Module]
|
||||
@@ -951,9 +948,7 @@ class _RegisteredModel(_BaseRegisteredModel):
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class _LazyRegisteredModel(_BaseRegisteredModel):
|
||||
"""
|
||||
Represents a model that has not been imported in the main process.
|
||||
"""
|
||||
"""Represents a model that has not been imported in the main process."""
|
||||
|
||||
module_name: str
|
||||
class_name: str
|
||||
@@ -1018,7 +1013,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
|
||||
return None
|
||||
|
||||
def _save_modelinfo_to_cache(self, mi: _ModelInfo, module_hash: str) -> None:
|
||||
"""save dictionary json file to cache"""
|
||||
"""Save dictionary json file to cache."""
|
||||
from vllm.model_executor.model_loader.weight_utils import atomic_writer
|
||||
|
||||
try:
|
||||
@@ -1128,8 +1123,7 @@ class _ModelRegistry:
|
||||
model_arch: str,
|
||||
model_cls: type[nn.Module] | str,
|
||||
) -> None:
|
||||
"""
|
||||
Register an external model to be used in vLLM.
|
||||
"""Register an external model to be used in vLLM.
|
||||
|
||||
`model_cls` can be either:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user