MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / _stack_cache_tensors

Method _stack_cache_tensors

KVCOMM/llm/kvcomm_engine.py:698–699  ·  view source on GitHub ↗
(cache: DynamicCache)

Source from the content-addressed store, hash-verified

696
697 @staticmethod
698 def _stack_cache_tensors(cache: DynamicCache) -> Tuple[torch.Tensor, torch.Tensor]:
699 return torch.stack(cache.key_cache), torch.stack(cache.value_cache)
700
701 @staticmethod
702 def _placeholder_length(cache: DynamicCache) -> int:

Callers 2

offset_kv_cache_pairMethod · 0.95
_make_anchorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected