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
@@ -105,6 +105,7 @@ def export_entries(
|
||||
A ``(entries, aliases)`` pair where ``entries`` maps a canonical name to
|
||||
its ``TensorEntry`` and ``aliases`` maps each duplicate name to its
|
||||
canonical name.
|
||||
|
||||
"""
|
||||
entries: dict[str, TensorEntry] = {}
|
||||
aliases: dict[str, str] = {}
|
||||
@@ -206,6 +207,7 @@ class WeightCacheDaemon:
|
||||
Args:
|
||||
ready_callback: Invoked once the socket is bound and listening,
|
||||
so the launcher can report overall readiness.
|
||||
|
||||
"""
|
||||
socket_path = self._socket_path
|
||||
ensure_private_socket_dir(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
"""IPC model loader: maps post-quantized weights from a local weight cache
|
||||
daemon via CUDA IPC instead of loading from disk."""
|
||||
daemon via CUDA IPC instead of loading from disk.
|
||||
"""
|
||||
|
||||
import dataclasses
|
||||
import socket
|
||||
|
||||
@@ -74,6 +74,7 @@ def check_ipc_platform_support() -> None:
|
||||
Raises:
|
||||
UnsupportedPlatformForIPCError: If the current platform is not
|
||||
CUDA/ROCm.
|
||||
|
||||
"""
|
||||
if current_platform.is_cuda_alike():
|
||||
return
|
||||
@@ -94,6 +95,7 @@ def check_ipc_quant_support(model: torch.nn.Module) -> None:
|
||||
Raises:
|
||||
UnsupportedQuantForIPCError: If any quant method does not declare
|
||||
``supports_pre_processed_weights``.
|
||||
|
||||
"""
|
||||
for name, module in model.named_modules():
|
||||
quant_method = getattr(module, "quant_method", None)
|
||||
|
||||
Reference in New Issue
Block a user