MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodto_gpu
lmcache/v1/gpu_connector/xpu_connectors.py:591
Methodto_gpu
lmcache/v1/gpu_connector/xpu_connectors.py:980
Methodto_gpu
(self, memory_obj: MemoryObj, start: int, end: int, **kwargs)
lmcache/v1/gpu_connector/xpu_connectors.py:1517
Methodto_tensor
(self)
tests/v1/platform/test_cache_context_dispatch.py:39
Methodto_tensor
Reconstruct the tensor in this process from the IPC handle. Subclasses implement the transport-specific reconstruction.
lmcache/v1/multiprocess/custom_types.py:86
Methodto_tensor
Reconstruct the tensor in this process via raw CUDA IPC.
lmcache/v1/multiprocess/custom_types.py:215
Methodtoken_hasher
The token hasher for computing chunk hashes.
lmcache/v1/multiprocess/engine_context.py:183
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_bs_nh_hs.py:47
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_bs_nh_hs.py:48
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nb_bs_nh_hs.py:48
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_nh_bs_two_hs.py:51
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nbbs_one_hs.py:52
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_nh_bs_hs.py:49
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_nh_bs_hs.py:49
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nbbs_nh_hs.py:52
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_bs_nh_hs.py:48
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_nh_bs_hs.py:50
Methodtokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_bs_hs.py:47
Methodtotal_allocated_size
(self)
lmcache/v1/memory_management.py:1618
Methodtotal_bytes
Total encoded size: header + payload.
lmcache/v1/kv_codec/encoded_kv.py:204
Methodtotal_data_bytes
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:68
Methodtotal_data_bytes_per_round
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:64
Methodtotal_keys
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:60
Methodtotal_objs
Total number of storage slots this pool manages (allocated + free).
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:90
Methodtotal_runs
Get the total number of executions.
lmcache/v1/periodic_thread.py:176
Methodtotal_success
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:72
Methodtouch_cache
(self)
lmcache/v1/storage_backend/local_cpu_backend.py:134
Methodtouch_cache
Update cache policy with keys that were accessed during a request. This method is called to update the cache eviction policy with th
lmcache/v1/storage_backend/abstract_backend.py:295
Methodtouch_cache
(self)
lmcache/v1/storage_backend/local_disk_backend.py:203
Methodtouch_instance
Refresh the worker's last-seen time and mark it ping-proven. A no-op if the instance is not tracked (already reaped or never register
lmcache/v1/multiprocess/engine_module.py:85
Methodtouch_instance
Refresh the worker's last-seen time and mark it ping-proven. A no-op if the instance is not tracked. Args: instance_id:
lmcache/v1/multiprocess/modules/lmcache_driven_transfer.py:485
Methodtp_size
The tensor parallel size.
lmcache/integration/vllm/vllm_multi_process_adapter.py:674
Functiontrace_path
(tmp_path)
tests/cli/commands/trace/test_driver.py:97
Functiontrace_path
(tmp_path)
tests/v1/mp_observability/trace/test_recorder.py:46
Methodtrace_path
Path of the trace file being replayed.
lmcache/cli/commands/trace/_driver.py:213
Methodtracked_instance_count
Return the number of currently tracked instances (0 if none).
lmcache/v1/multiprocess/engine_module.py:116
Methodtracked_instance_count
Return the number of currently registered instances.
lmcache/v1/multiprocess/modules/lmcache_driven_transfer.py:500
Functiontracked_put
(key, mem_obj)
tests/v1/storage_backend/test_pd_backend_async.py:486
Functiontracking_alloc
(shapes, dtype, fmt=MemoryFormat.KV_2LTD, **kw)
tests/v1/storage_backend/test_pd_backend_async.py:572
Methodtransfer_ctx
(self)
tests/v1/test_vllm_mp_adapter.py:637
Methodtry_context
()
tests/v1/cache_controller/test_locks.py:286
Methodtry_read
()
tests/v1/cache_controller/test_locks.py:123
Methodtry_write
()
tests/v1/cache_controller/test_locks.py:136
Methodtype_name
Registered adapter type name (e.g., "mock", "disk", "redis"). Derived from the config's registered type via reverse lookup.
lmcache/v1/distributed/storage_controllers/store_policy.py:37
Methodunlock_many
Release L2 lock references for encoded keys. Args: encoded_keys: Encoded raw-block keys whose lock refcounts should be
lmcache/v1/storage_backend/raw_block/core.py:821
Methodunpin
(self)
lmcache/utils.py:331
Methodunpin
(self)
lmcache/v1/memory_management.py:946
Methodunpin
(self)
lmcache/v1/memory_management.py:1094
Methodunpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/nixl_storage_backend.py:950
Methodunpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/nixl_storage_backend.py:1328
Methodunpin
Not implemented yet
lmcache/v1/storage_backend/nixl_storage_backend.py:2129
Methodunpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/audit_backend.py:177
Methodunpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/remote_backend.py:587
Methodunpin
Unpin a memory object so it can be evicted. :param CacheEngineKey key: The key of the MemoryObj. :return: a bool indicates
lmcache/v1/storage_backend/abstract_backend.py:209
Methodunpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/gds_backend.py:1076
Methodunpin
Unpin a key to allow eviction on MaruServer. Decrements the server-side pin_count. When pin_count reaches 0, the entry becomes eligib
lmcache/v1/storage_backend/maru_backend.py:672
Methodunpin
Unpin the memory object for the given key. PDBackendAsync has no eviction mechanism, so this is a no-op that always returns True.
lmcache/v1/storage_backend/pd_backend_async.py:1693
Methodunregister
Unregister a periodic thread by name. Args: name: The name of the thread to unregister Returns: The
lmcache/v1/periodic_thread.py:452
Methodunregister
Unregister one layout descriptor registration for a pair. The descriptor is removed only when the last active registration for the pa
lmcache/v1/multiprocess/engine_context.py:89
Methodunregister_all_metrics
()
lmcache/v1/cache_controller/observability.py:166
Functionunregister_kv_cache_handler
Dummy handler for UNREGISTER_KV_CACHE requests. Args: gpu_id: GPU device ID Returns: None
tests/v1/multiprocess/test_mq_handler_helpers.py:91
FunctionupdateNode
()
lmcache/lmcache_frontend/static/js/app.js:350
Methodupdate_connector_output
Update KVConnector state from worker-side connectors output. Args: connector_output (KVConnectorOutput): the worker-side
lmcache/integration/vllm/lmcache_mp_connector.py:1052
Methodupdate_connector_output
Update KVConnector state from worker-side connectors output. Args: connector_output (KVConnectorOutput): the worker-side
lmcache/integration/vllm/lmcache_mp_connector_0201.py:915
Methodupdate_connector_output
Update KVConnector state from worker-side connectors output. Args: connector_output (KVConnectorOutput): the worker-side
lmcache/integration/vllm/lmcache_mp_connector_0180.py:871
Methodupdate_from_top_indices
(self, top_indices: torch.Tensor)
lmcache/v1/compute/attention/metadata.py:31
Methodupdate_from_top_indices
(self, top_indices: torch.Tensor)
lmcache/v1/compute/attention/metadata.py:52
Methodupdate_from_top_indices
Convert top_indices to CSR sparse structure for Triton kernel. Called by CacheBlend when it determines which tokens have cache hits.
lmcache/v1/compute/attention/metadata.py:142
Methodupdate_heartbeats
()
tests/v1/cache_controller/test_registry_tree.py:541
Functionupdate_node
Update a proxy or child node identified by ``node_name``. Searches top-level proxies first, then children of every proxy, so both direct prox
lmcache/lmcache_frontend/app.py:461
Methodupdate_on_force_evict
Update internal states when a cache is force evicted Input: key: an object of KeyType
lmcache/v1/storage_backend/cache_policy/base_policy.py:58
Methodupdate_on_force_evict
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/fifo.py:37
Methodupdate_on_force_evict
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/lru.py:60
Methodupdate_on_force_evict
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/mru.py:39
Methodupdate_on_hit
Update cache_dict and internal states when a cache is used Input: key: an object of KeyType cache_dict: a di
lmcache/v1/storage_backend/cache_policy/base_policy.py:28
Methodupdate_on_hit
( self, key: KeyType, cache_dict: dict[KeyType, Any], )
lmcache/v1/storage_backend/cache_policy/fifo.py:24
Methodupdate_on_hit
( self, key: KeyType, cache_dict: OrderedDict[KeyType, Any], )
lmcache/v1/storage_backend/cache_policy/lru.py:45
Methodupdate_on_hit
( self, key: KeyType, cache_dict: OrderedDict[KeyType, Any], )
lmcache/v1/storage_backend/cache_policy/mru.py:24
Methodupdate_on_put
Update cache_dict and internal states when a cache is stored Input: key: an object of KeyType
lmcache/v1/storage_backend/cache_policy/base_policy.py:44
Methodupdate_on_put
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/fifo.py:31
Methodupdate_on_put
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/lru.py:53
Methodupdate_on_put
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/mru.py:32
Methodupdate_seq
(thread_id)
tests/v1/cache_controller/test_registry_tree.py:150
Methodupdate_state_after_alloc
Update KVConnector state after block allocation. If get_num_new_matched_tokens previously returned True for a request, this
lmcache/integration/vllm/lmcache_mp_connector.py:946
Methodupdate_state_after_alloc
Update KVConnector state after block allocation. If get_num_new_matched_tokens previously returned True for a request, this
lmcache/integration/vllm/lmcache_mp_connector_0201.py:813
Methodupdate_state_after_alloc
Update KVConnector state after block allocation. If get_num_new_matched_tokens previously returned True for a request, this
lmcache/integration/vllm/lmcache_mp_connector_0180.py:772
Methodupdate_state_after_alloc
Track which multimodal item (request.mm_features[index]) needs loading.
lmcache/integration/vllm/vllm_ec_adapter.py:171
Methodupdate_state_after_alloc
Update KVConnector state after block allocation.
lmcache/integration/vllm/lmcache_connector_v1_085.py:127
Methodupdate_state_after_alloc
Update KVConnector state after block allocation.
lmcache/integration/vllm/lmcache_connector_v1.py:171
Methodupdate_state_after_alloc
Update KVConnector state after temporary buffer alloc. For SharedStorageConnector, update _request_needs_load if the CacheMa
lmcache/integration/vllm/vllm_v1_adapter.py:1522
Methodupdate_state_after_alloc
No-op — block IDs are captured in :meth:`build_connector_meta`.
lmcache/integration/tensorrt_llm/tensorrt_mp_adapter.py:269
Methodupdate_state_after_alloc
No-op — block IDs are captured in ``build_connector_meta`` from ``scheduler_output.new_requests``.
lmcache/integration/tensorrt_llm/tensorrt_adapter.py:259
Methodupload_files
( self, bucket_id: str, add: Sequence[tuple[bytes, str]], )
tests/v1/distributed/test_hfbucket_l2_adapter.py:89
Methodupload_files
Store uploaded bytes under their remote object paths.
tests/v1/storage_backend/test_hfbucket_connector.py:85
Methodupload_files
Upload files to a bucket in one batch call.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:102
Methodusage
Return current raw-block slot usage fractions. Returns: ``(current_usage, projected_usage)``. Raw-block has no separate
lmcache/v1/storage_backend/raw_block/core.py:874
Methodusage_fraction
Aggregate usage as a fraction in [0, 1]. Returns ``-1.0`` when capacity is unknown (``total_capacity_bytes <= 0``) — matches the lega
lmcache/v1/distributed/l2_adapters/base.py:66
Functionuse_shared_allocator
Default: patch. Opt out with @pytest.mark.no_shared_allocator.
tests/conftest.py:770
Methoduse_stream
(handle: int)
tests/v1/gpu_connector/test_gds_context.py:147
Functionvalidate_get_results
Validate GET operation results and return statistics
lmcache/v1/check/utils.py:346
← previousnext →13,201–13,300 of 13,371, ranked by callers