fix missing removal

Signed-off-by: Zhuohan Li <zhuohan123@gmail.com>
This commit is contained in:
Zhuohan Li
2025-10-17 11:35:42 -07:00
parent 3fd66b1e73
commit a2599dca0f

View File

@ -174,12 +174,10 @@ class SharedStorageConnector(KVConnectorBase_V1):
# Only process layers that have kv_cache
# attribute (attention layers) Skip non-attention
# layers like FusedMoE/MLP etc.
kv_cache_attr = getattr(layer, "kv_cache", None)
if kv_cache_attr is None:
kv_cache_layer = getattr(layer, "kv_cache", None)
if kv_cache_layer is None:
continue
kv_cache_layer = kv_cache_attr[forward_context.virtual_engine]
filename = self._generate_filename_debug(
layer_name, request.token_ids, request.mm_hashes
)