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:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+3 -2
View File
@@ -1,7 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
"""
ColBERT late interaction model for retrieval and reranking.
"""ColBERT late interaction model for retrieval and reranking.
ColBERT uses per-token embeddings and late interaction (MaxSim) scoring
instead of single-vector representations or cross-encoder concatenation.
@@ -75,6 +74,7 @@ class ColBERTMixin(nn.Module, SupportsLateInteraction):
``None``, will be inferred from weights during loading (or
auto-loaded from sentence-transformers Dense layers).
head_dtype: Data type for the projection layer.
"""
self.hidden_size = hidden_size
self.colbert_dim = colbert_dim
@@ -149,6 +149,7 @@ class ColBERTMixin(nn.Module, SupportsLateInteraction):
Returns:
``(remaining_weights, loaded_names)`` — the weights that were
**not** consumed and the set of names that were loaded.
"""
weights_list = list(weights)
other_weights: list[tuple[str, torch.Tensor]] = []