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
|
||||
"""
|
||||
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]] = []
|
||||
|
||||
Reference in New Issue
Block a user