MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodformat
Render metrics into a string. Args: title: The report title. sections: Ordered list of ``Section`` objects.
lmcache/cli/metrics/formatter.py:22
Methodformat
Render metrics as an ASCII table. Args: title: The report title. sections: Ordered list of ``Section`` objects.
lmcache/cli/metrics/formatter.py:110
Methodformat
(self, record)
benchmarks/rag/utils.py:42
Methodforward_contiguous
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, o
lmcache/v1/compute/attention/flash_attn.py:50
Methodforward_contiguous
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, o
lmcache/v1/compute/attention/flash_infer_sparse.py:215
Methodforward_contiguous
Compute attention using Triton kernels. For causal (full prefill): uses causal_prefill_attention. For non-causal (sparse CacheBlend):
lmcache/v1/compute/attention/triton_sparse.py:62
Methodfree
( self, memory_obj: MemoryObj, allocator_type: Optional[str] = None, )
lmcache/v1/lazy_memory_allocator.py:182
Methodfree
Free a previously allocated pinned-memory pointer.
lmcache/v1/memory_management.py:431
Methodfree
Frees the memory allocated for the given MemoryObj. Note that this function shouldn't be explicitly called. Instead, use `ref
lmcache/v1/memory_management.py:1190
Methodfree
(self, memory_obj: MemoryObj, allocator_type: Optional[str] = None)
lmcache/v1/memory_management.py:1733
Methodfree
(self, memory_obj: TensorMemoryObj, allocator_type: Optional[str] = None)
lmcache/v1/memory_management.py:2048
Methodfree
(self, memory_obj: MemoryObj, allocator_type: Optional[str] = None)
lmcache/v1/memory_management.py:2189
Methodfree
(self, memory_obj: MemoryObj, allocator_type: Optional[str] = None)
lmcache/v1/memory_management.py:2262
Methodfree
(self, memory_obj: MemoryObj, allocator_type: Optional[str] = None)
lmcache/v1/memory_management.py:2491
Methodfree
(self, memory_obj: MemoryObj, allocator_type: Optional[str] = None)
lmcache/v1/memory_management.py:3174
Methodfree
(self, memory_obj: MemoryObj, allocator_type: Optional[str] = "cpu")
lmcache/v1/memory_management.py:3332
Methodfree
Free the given memory objects.
lmcache/v1/distributed/memory_manager/l1_manager_protocol.py:29
Methodfree_callback
(event)
tests/v1/mp_observability/test_event_bus.py:398
Functionfree_hugepage_pinned_numa_ptr
Non-CUDA fallback for free_hugepage_pinned_numa_ptr (no hugepage support).
lmcache/python_ops_fallback.py:529
Functionfree_hugepage_pinned_ptr
Non-CUDA fallback for free_hugepage_pinned_ptr (no hugepage support).
lmcache/python_ops_fallback.py:513
Functionfree_locks_handler
Dummy handler for FREE_LOOKUP_LOCKS requests. Args: key: Cache key whose read locks should be released tp_size: Tensor-paral
tests/v1/multiprocess/test_mq_handler_helpers.py:211
Functionfree_numa_ptr
Non-CUDA equivalent of freeing a previously allocated NUMA pointer.
lmcache/python_ops_fallback.py:540
Functionfree_shm_pinned_ptr
Non-CUDA equivalent of freeing a shared memory pinned pointer.
lmcache/python_ops_fallback.py:485
Methodfree_worker
(allocs: List[Tuple[int, int]])
tests/v1/test_address_manager.py:780
Functionfresh_contexts
A brand-new context-pair for tests that need pristine connection state.
tests/v1/distributed/transfer_channel/test_nixl_impl.py:80
Methodfrom_bytes
(bs: bytes)
lmcache/storage_backend/serde/cachegen_basics.py:162
Methodfrom_bytes
(bs: bytes)
lmcache/storage_backend/serde/cachegen_basics.py:198
Methodfrom_bytes
(self, t: bytes)
lmcache/storage_backend/serde/serde.py:69
Methodfrom_dict
(d)
lmcache/utils.py:527
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/s3_l2_adapter.py:358
Methodfrom_dict
Construct a config from a raw configuration dict. LMCache-only keys (``type``, ``num_workers``, ``eviction``, ``per_op_workers``) are
lmcache/v1/distributed/l2_adapters/mooncake_store_l2_adapter.py:81
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/fs_native_l2_adapter.py:67
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/p2p_l2_adapter.py:89
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/native_plugin_l2_adapter.py:66
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/nixl_store_dynamic_l2_adapter.py:806
Methodfrom_dict
Construct a config from a raw configuration dict. Args: d: Raw configuration dict (typically from JSON/CLI). Returns:
lmcache/v1/distributed/l2_adapters/aerospike_l2_adapter.py:78
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/resp_l2_adapter.py:68
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:956
Methodfrom_dict
Parse a config object from ``--l2-adapter`` JSON.
lmcache/v1/distributed/l2_adapters/hfbucket_l2_adapter.py:181
Methodfrom_dict
Parse a fault-inject adapter spec, building the inner config too. The ``"inner"`` sub-dict is dispatched through the L2 adapter config
lmcache/v1/distributed/l2_adapters/fault_inject_l2_adapter.py:94
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/fs_l2_adapter.py:203
Methodfrom_dict
Build a DAX L2 adapter config from CLI JSON. Args: d: Parsed ``--l2-adapter`` JSON object. Returns: A valida
lmcache/v1/distributed/l2_adapters/dax_l2_adapter.py:184
Methodfrom_dict
Build and validate a raw-block config from ``--l2-adapter`` JSON.
lmcache/v1/distributed/l2_adapters/raw_block_l2_adapter.py:149
Methodfrom_dict
(cls, d: dict)
lmcache/v1/distributed/l2_adapters/mock_l2_adapter.py:79
Methodfrom_gpu
Load KV data from MUSA paged KV caches into a memory object. Args: memory_obj: The memory object to populate. start:
lmcache/v1/gpu_connector/musa_connectors.py:182
Methodfrom_gpu
( self, memory_obj: MemoryObj, start: int, end: int, **kwargs: Any )
lmcache/v1/gpu_connector/musa_connectors.py:510
Methodfrom_gpu
Load the data from a GPU buffer into the memory object. Sub-classes should define the format of the kwargs. :param MemoryObj memory_o
lmcache/v1/gpu_connector/gpu_connectors.py:60
Methodfrom_gpu
lmcache/v1/gpu_connector/gpu_connectors.py:772
Methodfrom_gpu
lmcache/v1/gpu_connector/gpu_connectors.py:1175
Methodfrom_gpu
(self, memory_obj: MemoryObj, start: int, end: int, **kwargs)
lmcache/v1/gpu_connector/gpu_connectors.py:1709
Methodfrom_gpu
(self, memory_obj: MemoryObj, start: int, end: int, **kwargs)
lmcache/v1/gpu_connector/gpu_connectors.py:2130
Methodfrom_gpu
Mock from_gpu operation.
lmcache/v1/gpu_connector/mock_gpu_connector.py:31
Methodfrom_gpu
lmcache/v1/gpu_connector/xpu_connectors.py:596
Methodfrom_gpu
lmcache/v1/gpu_connector/xpu_connectors.py:985
Methodfrom_gpu
(self, memory_obj: MemoryObj, start: int, end: int, **kwargs)
lmcache/v1/gpu_connector/xpu_connectors.py:1520
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration.
lmcache/v1/gpu_connector/musa_connectors.py:87
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configurati
lmcache/v1/gpu_connector/musa_connectors.py:449
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration. u
lmcache/v1/gpu_connector/hpu_connector.py:65
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration.
lmcache/v1/gpu_connector/gpu_connectors.py:205
Methodfrom_metadata
( cls, metadata: LMCacheMetadata, use_gpu: bool = False, device: Optional[torc
lmcache/v1/gpu_connector/gpu_connectors.py:445
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration.
lmcache/v1/gpu_connector/gpu_connectors.py:687
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration.
lmcache/v1/gpu_connector/gpu_connectors.py:1099
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration.
lmcache/v1/gpu_connector/xpu_connectors.py:86
Methodfrom_metadata
( cls, metadata: LMCacheMetadata, use_gpu: bool = False, device: Optional[torc
lmcache/v1/gpu_connector/xpu_connectors.py:316
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration.
lmcache/v1/gpu_connector/xpu_connectors.py:516
Methodfrom_metadata
Create a connector from LMCacheMetadata. Args: metadata: The LMCache engine metadata containing model configuration.
lmcache/v1/gpu_connector/xpu_connectors.py:914
Methodfrom_pool
Mock implementation of Redis.from_pool
tests/conftest.py:236
Methodfrom_string
(s)
lmcache/utils.py:616
Methodfrom_url
Mock implementation of Redis.from_url
tests/conftest.py:231
Functionfull_sync_sender
Create a FullSyncSender instance for testing.
tests/v1/cache_controller/test_full_sync_sender.py:27
Methodgather_with_keys
()
lmcache/v1/storage_backend/storage_manager.py:801
Functiongds_backend
(temp_gds_path, async_loop)
tests/v1/storage_backend/test_gds_backend.py:110
Methodgen_dummy_text
(length)
benchmarks/multi_round_qa/multi-round-qa.py:223
Functiongenerate_kv_cache
(num_tokens, device)
tests/v1/utils.py:271
Methodgenerator
()
lmcache/v1/storage_backend/connector/sagemaker_hyperpod_connector.py:846
Methodget
(self, key: bytes)
tests/conftest.py:159
Methodget
(self, key)
tests/conftest.py:218
Methodget
(self, key: str, buf: memoryview)
tests/conftest.py:306
Methodget
(self, key)
tests/conftest.py:357
Methodget
(self, key: CacheEngineKey)
tests/v1/test_health_monitor_fallback_recovery.py:58
Methodget
(self, url, params=None)
tests/lmcache_frontend/test_heartbeat.py:47
Methodget
Get a registered thread by name.
lmcache/v1/periodic_thread.py:474
Methodget
Retrieve LMSMemoryObj by the given key Input: key: the CacheEngineKey Output: An LMSMemoryObj objec
lmcache/v1/server/storage_backend/abstract_backend.py:46
Methodget
(self, key: str, buf: memoryview)
lmcache/v1/storage_backend/native_clients/connector_client_base.py:97
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/redis_connector.py:334
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/redis_connector.py:517
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/redis_connector.py:713
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/blackhole_connector.py:26
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/mock_connector.py:235
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/bigtable_connector.py:347
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/lm_connector.py:140
Methodget
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/connector/hf3fs_connector.py:143
FunctiongetConfig
()
lmcache/lmcache_frontend/static/js/app.js:832
Methodget_address_manager
Get the address manager used by this allocator.
lmcache/v1/lazy_memory_allocator.py:220
Methodget_address_manager
(allocator: MemoryAllocatorInterface)
lmcache/v1/distributed/memory_manager/l1_memory_manager.py:185
Methodget_all_elapsed_times
(self)
lmcache/v1/storage_backend/connector/eic_connector.py:64
Functionget_all_nodes
Get all nodes in tree structure (proxies with their child nodes). Returns: ``{"nodes": [...]}`` where each element is a proxy dict whose
lmcache/lmcache_frontend/app.py:337
Functionget_all_server_infos
Generate a list of server information (scheduler and workers) based on the config. Args: config: The configuration object containing
lmcache/v1/internal_api_server/utils.py:6
Methodget_allocator_backend
(self)
lmcache/v1/storage_backend/nixl_storage_backend.py:905
Methodget_allocator_backend
(self)
lmcache/v1/storage_backend/audit_backend.py:232
← previousnext →7,201–7,300 of 13,371, ranked by callers