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,8 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
"""
|
||||
DeepseekV4 MLA Attention Layer
|
||||
"""
|
||||
"""DeepseekV4 MLA Attention Layer"""
|
||||
|
||||
import math
|
||||
from abc import ABC, abstractmethod
|
||||
@@ -1068,7 +1066,8 @@ class DeepseekV4Attention(nn.Module, AttentionLayerBase, ABC):
|
||||
|
||||
def _compressed_kv_cache(self) -> torch.Tensor:
|
||||
"""The compressed-KV cache tensor of this layer's kv source (own
|
||||
cache for kv-source layers)."""
|
||||
cache for kv-source layers).
|
||||
"""
|
||||
if self.is_kv_source:
|
||||
return self.kv_cache
|
||||
assert self.compressed_cache_prefix is not None
|
||||
|
||||
Reference in New Issue
Block a user