MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Functionbackend
Create a MaruBackend with mocked internals.
tests/v1/storage_backend/test_maru_backend.py:171
Methodbackend_name
(self)
benchmarks/storage_backend_io/storage_backend_io_benchmark.py:268
Methodbad_callback
(k: CacheEngineKey)
tests/v1/storage_backend/test_gds_backend.py:663
Functionbase_namespace
Namespace with all required fields for parse_args_to_config.
tests/cli/commands/bench/engine_bench/test_config.py:26
Methodbase_ptr
Return the base virtual address of the mapped arena.
lmcache/v1/storage_backend/dax/core.py:183
Functionbasic_config
Create a basic L1MemoryManagerConfig for testing.
tests/v1/distributed/test_l1_memory_manager.py:59
Methodbasic_key
(self)
tests/test_utils.py:239
Functionbasic_l1_config
Create a basic L1ManagerConfig for testing.
tests/v1/distributed/test_distributed_storage_manager.py:76
Functionbasic_l1_config
(basic_memory_config)
tests/v1/distributed/test_report_status.py:61
Functionbasic_l1_config
Create a basic L1ManagerConfig for testing.
tests/v1/distributed/test_l1_manager.py:107
Functionbasic_layout
Create a basic MemoryLayoutDesc for testing.
tests/v1/distributed/test_l1_memory_manager.py:97
Functionbasic_layout
Create a basic MemoryLayoutDesc for testing.
tests/v1/distributed/test_distributed_storage_manager.py:118
Functionbasic_layout
()
tests/v1/distributed/test_report_status.py:70
Functionbasic_layout
Create a basic MemoryLayoutDesc for testing.
tests/v1/distributed/test_l1_manager.py:127
Functionbasic_memory_config
Create a basic L1MemoryManagerConfig for testing.
tests/v1/distributed/test_distributed_storage_manager.py:54
Functionbasic_memory_config
()
tests/v1/distributed/test_report_status.py:51
Functionbasic_memory_config
Create a basic L1MemoryManagerConfig for testing.
tests/v1/distributed/test_l1_manager.py:85
Functionbasic_storage_manager_config
Create a basic StorageManagerConfig for testing
tests/v1/distributed/test_distributed_storage_manager.py:96
Methodbatch_admit
(thread_id)
tests/v1/cache_controller/test_registry_tree.py:1005
Methodbatch_alloc_worker
(thread_id: int)
tests/v1/test_address_manager.py:956
Methodbatch_exists_sync
(self, keys: list)
tests/conftest.py:333
Methodbatch_get
(self, keys: list, bufs: list)
tests/conftest.py:315
Methodbatch_get_sync
(self, keys: list[str], bufs: list[memoryview])
lmcache/v1/storage_backend/resp_client.py:180
Methodbatch_set
(self, keys: list, bufs: list)
tests/conftest.py:324
Methodbatch_set_sync
(self, keys: list[str], bufs: list[memoryview])
lmcache/v1/storage_backend/resp_client.py:194
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/lazy_memory_allocator.py:160
Methodbatched_allocate
Batched allocate the memory to hold a tensor of the given shape. :param torch.Size shapes: The shape of the tensor to allocate.
lmcache/v1/memory_management.py:1166
Methodbatched_allocate
Batched allocate tensor memory objs with equal sizes.
lmcache/v1/memory_management.py:1673
Methodbatched_allocate
Batched allocate tensor memory objs with pre-defined equal sizes.
lmcache/v1/memory_management.py:1992
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/memory_management.py:2173
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/memory_management.py:2248
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/memory_management.py:2327
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/memory_management.py:2458
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/memory_management.py:3079
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/memory_management.py:3162
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/memory_management.py:3317
Methodbatched_allocate
( self, shapes: Union[torch.Size, list[torch.Size]], dtypes: Union[torch.dtype, list[t
lmcache/v1/storage_backend/nixl_storage_backend.py:887
Methodbatched_allocate
Allocates memory in the backend to hold a tensor of the given shape in a batched manner. The allocated memory objects will have the s
lmcache/v1/storage_backend/abstract_backend.py:385
Methodbatched_allocate
Batched allocate `batch_size` memory objects of shape and dtype
lmcache/v1/storage_backend/gds_backend.py:1142
Methodbatched_allocate
Allocate multiple CXL-backed MemoryObjs. Args: shapes: Tensor shape(s) (same for each allocation). dtypes: Tensor dty
lmcache/v1/storage_backend/maru_backend.py:213
Methodbatched_allocate
Batched allocate memory object with memory allocator. Use LRU evictor if eviction is enabled.
lmcache/v1/storage_backend/storage_manager.py:347
Methodbatched_allocate
Allocate a batch of memory objects from the PD buffer. Delegates directly to the underlying memory allocator without sender flow cont
lmcache/v1/storage_backend/pd_backend_async.py:591
Methodbatched_async_contains
( self, lookup_id: str, keys: list[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/nixl_storage_backend.py:1990
Methodbatched_async_contains
( self, lookup_id: str, keys: list[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/audit_backend.py:148
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/local_cpu_backend.py:236
Methodbatched_async_contains
( self, lookup_id: str, keys: list[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/remote_backend.py:512
Methodbatched_async_contains
Check whether keys are in the storage backend. :param List[CacheEngineKey] keys: The keys of the MemoryObjs. :param bool pi
lmcache/v1/storage_backend/abstract_backend.py:142
Methodbatched_async_contains
Check how many prefix keys exist via single batch_exists RPC. Returns the count of contiguous keys starting from index 0 that exist.
lmcache/v1/storage_backend/maru_backend.py:527
Methodbatched_async_contains
( self, lookup_id: str, keys: list[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/local_disk_backend.py:500
Methodbatched_async_contains
Check how many keys exist in file system in batch Args: lookup_id: Identifier for this lookup operation keys: List of
lmcache/v1/storage_backend/connector/redis_connector.py:193
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/connector/redis_connector.py:413
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/connector/redis_connector.py:792
Methodbatched_async_contains
Asynchronously check how many consecutive keys exist.
lmcache/v1/storage_backend/connector/valkey_connector.py:592
Methodbatched_async_contains
Check how many keys exist in file system in batch Args: lookup_id: Identifier for this lookup operation keys: List of
lmcache/v1/storage_backend/connector/base_connector.py:283
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/connector/mock_connector.py:311
Methodbatched_async_contains
Asynchronously return the number of consecutive prefix hits.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:419
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/connector/mooncakestore_connector.py:510
Methodbatched_async_contains
Check existence of multiple keys (queued with priority).
lmcache/v1/storage_backend/connector/sagemaker_hyperpod_connector.py:895
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/connector/instrumented_connector.py:103
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False )
lmcache/v1/storage_backend/connector/s3_connector.py:619
Methodbatched_async_contains
( self, lookup_id: str, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/connector/eic_connector.py:678
Methodbatched_async_contains
( self, lookup_id: str, keys: list[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/plugins/rust_raw_block_backend.py:607
Methodbatched_async_contains
Return the number of consecutive keys present in the index. Iterates ``keys`` in order and stops at the first miss. Args:
lmcache/v1/storage_backend/plugins/dax_backend.py:458
Methodbatched_async_load_bytes_from_disk
Async load bytearray from disk.
lmcache/v1/storage_backend/local_disk_backend.py:569
Methodbatched_contains
Check whether the keys are in the storage backend. Overrides the sequential base-class implementation to issue a single batched ``que
lmcache/v1/storage_backend/nixl_storage_backend.py:1927
Methodbatched_contains
( self, keys: List[CacheEngineKey], pin: bool = False, )
lmcache/v1/storage_backend/remote_backend.py:187
Methodbatched_contains
Check whether the keys are in the storage backend. :param List[CacheEngineKey] keys: The keys of the MemoryObj. :param bool
lmcache/v1/storage_backend/abstract_backend.py:272
Methodbatched_contains
Synchronous batched contains - checks consecutive prefix existence.
lmcache/v1/storage_backend/connector/redis_connector.py:167
Methodbatched_contains
Synchronously check how many consecutive keys exist.
lmcache/v1/storage_backend/connector/valkey_connector.py:568
Methodbatched_contains
Batched contains. :param List[CacheEngineKey] keys: The keys to check. :return: Return hit chunks by prefix match.
lmcache/v1/storage_backend/connector/base_connector.py:362
Methodbatched_contains
Return the number of consecutive prefix keys that exist as full chunks.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:404
Methodbatched_contains
(self, keys: List[CacheEngineKey])
lmcache/v1/storage_backend/connector/bigtable_connector.py:903
Methodbatched_contains
(self, keys: List[CacheEngineKey])
lmcache/v1/storage_backend/connector/instrumented_connector.py:204
Methodbatched_done_callback
(f: Future)
lmcache/v1/storage_backend/remote_backend.py:317
Methodbatched_exists
(self, keys: list[str])
lmcache/v1/storage_backend/native_clients/connector_client_base.py:126
Methodbatched_exists_sync
Alias for batch_exists_sync.
lmcache/v1/storage_backend/resp_client.py:218
Methodbatched_exists_sync
(self, keys: list[str])
lmcache/v1/storage_backend/native_clients/connector_client_base.py:158
Methodbatched_free
( self, memory_objs: List[MemoryObj], allocator_type: Optional[str] = None, up
lmcache/v1/lazy_memory_allocator.py:189
Methodbatched_free
Frees the memory allocated for the given list of MemoryObjs. :param List[MemoryObj] memory_objs: The list of MemoryObjs
lmcache/v1/memory_management.py:1205
Methodbatched_free
Batched free memory objs. Unlike `batched_allocate`, this function does not assume that the memory objs are equal-sized.
lmcache/v1/memory_management.py:1750
Methodbatched_free
( self, memory_objs: List[MemoryObj], allocator_type: Optional[str] = None, up
lmcache/v1/memory_management.py:2267
Methodbatched_free
( self, memory_objs: List[MemoryObj], allocator_type: Optional[str] = None, up
lmcache/v1/memory_management.py:2346
Methodbatched_free
( self, memory_objs: List[MemoryObj], allocator_type: Optional[str] = None, up
lmcache/v1/memory_management.py:2509
Methodbatched_free
( self, memory_objs: List[MemoryObj], allocator_type: Optional[str] = None, up
lmcache/v1/memory_management.py:3096
Methodbatched_free
( self, memory_objs: List[MemoryObj], allocator_type: Optional[str] = None, up
lmcache/v1/memory_management.py:3177
Methodbatched_free
( self, memory_objs: List[MemoryObj], allocator_type: Optional[str] = None, up
lmcache/v1/memory_management.py:3340
Methodbatched_from_gpu
Generator: MUSA paged KV -> CPU token2d (per layer).
lmcache/v1/gpu_connector/musa_connectors.py:719
Methodbatched_from_gpu
(self, memory_objs, starts, ends, **kwargs)
lmcache/v1/gpu_connector/hpu_connector.py:214
Methodbatched_from_gpu
Batched load the data from a GPU memory into the memory objects. Sub-classes should define the format of the kwargs. :param
lmcache/v1/gpu_connector/gpu_connectors.py:77
Methodbatched_from_gpu
(self, memory_objs, starts, ends, **kwargs)
lmcache/v1/gpu_connector/gpu_connectors.py:411
Methodbatched_from_gpu
(self, memory_objs, starts, ends, **kwargs)
lmcache/v1/gpu_connector/gpu_connectors.py:634
Methodbatched_from_gpu
This function is a generator that moves the KV cache from the paged GPU memory to the memory objects. The first iteration will prepar
lmcache/v1/gpu_connector/gpu_connectors.py:1816
Methodbatched_from_gpu
( self, memory_objs: Union[List[List[MemoryObj]], List[MemoryObj]], starts: List[int],
lmcache/v1/gpu_connector/gpu_connectors.py:2180
Methodbatched_from_gpu
Mock batched_from_gpu operation.
lmcache/v1/gpu_connector/mock_gpu_connector.py:39
Methodbatched_from_gpu
(self, memory_objs, starts, ends, **kwargs)
lmcache/v1/gpu_connector/xpu_connectors.py:283
Methodbatched_from_gpu
(self, memory_objs, starts, ends, **kwargs)
lmcache/v1/gpu_connector/xpu_connectors.py:469
Methodbatched_from_gpu
(self, memory_objs, starts, ends, **kwargs)
lmcache/v1/gpu_connector/xpu_connectors.py:1444
Methodbatched_get
( self, keys: List[CacheEngineKey] )
lmcache/v1/storage_backend/connector/redis_connector.py:157
Methodbatched_get
Retrieve multiple memory objects from Valkey in parallel.
lmcache/v1/storage_backend/connector/valkey_connector.py:540
Methodbatched_get
Batched get the memory_objs of the corresponding keys Input: keys: the keys of the corresponding objects Return
lmcache/v1/storage_backend/connector/base_connector.py:246
← previousnext →6,301–6,400 of 13,371, ranked by callers