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

Function _slice_functional

KVCOMM/llm/kvcomm_engine.py:266–269  ·  view source on GitHub ↗

Return a sliced copy of the KV cache.

(cache: DynamicCache, start: Optional[int], end: Optional[int])

Source from the content-addressed store, hash-verified

264
265
266def _slice_functional(cache: DynamicCache, start: Optional[int], end: Optional[int]) -> DynamicCache:
267 """Return a sliced copy of the KV cache."""
268 copied = _copy_cache(cache)
269 return _slice_inplace(copied, start, end)
270
271
272def _concat_tensors(

Callers 1

Calls 2

_copy_cacheFunction · 0.85
_slice_inplaceFunction · 0.85

Tested by

no test coverage detected