Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LMCache/LMCache
/ functions
Functions
13,371 in github.com/LMCache/LMCache
⨍
Functions
13,371
◇
Types & classes
2,044
↳
Endpoints
181
Method
to_gpu
lmcache/v1/gpu_connector/xpu_connectors.py:591
Method
to_gpu
lmcache/v1/gpu_connector/xpu_connectors.py:980
Method
to_gpu
(self, memory_obj: MemoryObj, start: int, end: int, **kwargs)
lmcache/v1/gpu_connector/xpu_connectors.py:1517
Method
to_tensor
(self)
tests/v1/platform/test_cache_context_dispatch.py:39
Method
to_tensor
Reconstruct the tensor in this process from the IPC handle. Subclasses implement the transport-specific reconstruction.
lmcache/v1/multiprocess/custom_types.py:86
Method
to_tensor
Reconstruct the tensor in this process via raw CUDA IPC.
lmcache/v1/multiprocess/custom_types.py:215
Method
token_hasher
The token hasher for computing chunk hashes.
lmcache/v1/multiprocess/engine_context.py:183
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_bs_nh_hs.py:47
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_bs_nh_hs.py:48
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nb_bs_nh_hs.py:48
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_nh_bs_two_hs.py:51
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nbbs_one_hs.py:52
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nb_nl_two_nh_bs_hs.py:49
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_nh_bs_hs.py:49
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/two_x_nl_x_nbbs_nh_hs.py:52
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_two_nb_bs_nh_hs.py:48
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_two_nh_bs_hs.py:50
Method
tokens_per_layer
(self)
lmcache/v1/gpu_connector/kv_format/specs/nl_x_nb_bs_hs.py:47
Method
total_allocated_size
(self)
lmcache/v1/memory_management.py:1618
Method
total_bytes
Total encoded size: header + payload.
lmcache/v1/kv_codec/encoded_kv.py:204
Method
total_data_bytes
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:68
Method
total_data_bytes_per_round
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:64
Method
total_keys
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:60
Method
total_objs
Total number of storage slots this pool manages (allocated + free).
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:90
Method
total_runs
Get the total number of executions.
lmcache/v1/periodic_thread.py:176
Method
total_success
(self)
lmcache/cli/commands/bench/l2_adapter_bench/result.py:72
Method
touch_cache
(self)
lmcache/v1/storage_backend/local_cpu_backend.py:134
Method
touch_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
Method
touch_cache
(self)
lmcache/v1/storage_backend/local_disk_backend.py:203
Method
touch_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
Method
touch_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
Method
tp_size
The tensor parallel size.
lmcache/integration/vllm/vllm_multi_process_adapter.py:674
Function
trace_path
(tmp_path)
tests/cli/commands/trace/test_driver.py:97
Function
trace_path
(tmp_path)
tests/v1/mp_observability/trace/test_recorder.py:46
Method
trace_path
Path of the trace file being replayed.
lmcache/cli/commands/trace/_driver.py:213
Method
tracked_instance_count
Return the number of currently tracked instances (0 if none).
lmcache/v1/multiprocess/engine_module.py:116
Method
tracked_instance_count
Return the number of currently registered instances.
lmcache/v1/multiprocess/modules/lmcache_driven_transfer.py:500
Function
tracked_put
(key, mem_obj)
tests/v1/storage_backend/test_pd_backend_async.py:486
Function
tracking_alloc
(shapes, dtype, fmt=MemoryFormat.KV_2LTD, **kw)
tests/v1/storage_backend/test_pd_backend_async.py:572
Method
transfer_ctx
(self)
tests/v1/test_vllm_mp_adapter.py:637
Method
try_context
()
tests/v1/cache_controller/test_locks.py:286
Method
try_read
()
tests/v1/cache_controller/test_locks.py:123
Method
try_write
()
tests/v1/cache_controller/test_locks.py:136
Method
type_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
Method
unlock_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
Method
unpin
(self)
lmcache/utils.py:331
Method
unpin
(self)
lmcache/v1/memory_management.py:946
Method
unpin
(self)
lmcache/v1/memory_management.py:1094
Method
unpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/nixl_storage_backend.py:950
Method
unpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/nixl_storage_backend.py:1328
Method
unpin
Not implemented yet
lmcache/v1/storage_backend/nixl_storage_backend.py:2129
Method
unpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/audit_backend.py:177
Method
unpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/remote_backend.py:587
Method
unpin
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
Method
unpin
(self, key: CacheEngineKey)
lmcache/v1/storage_backend/gds_backend.py:1076
Method
unpin
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
Method
unpin
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
Method
unregister
Unregister a periodic thread by name. Args: name: The name of the thread to unregister Returns: The
lmcache/v1/periodic_thread.py:452
Method
unregister
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
Method
unregister_all_metrics
()
lmcache/v1/cache_controller/observability.py:166
Function
unregister_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
Function
updateNode
()
lmcache/lmcache_frontend/static/js/app.js:350
Method
update_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
Method
update_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
Method
update_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
Method
update_from_top_indices
(self, top_indices: torch.Tensor)
lmcache/v1/compute/attention/metadata.py:31
Method
update_from_top_indices
(self, top_indices: torch.Tensor)
lmcache/v1/compute/attention/metadata.py:52
Method
update_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
Method
update_heartbeats
()
tests/v1/cache_controller/test_registry_tree.py:541
Function
update_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
Method
update_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
Method
update_on_force_evict
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/fifo.py:37
Method
update_on_force_evict
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/lru.py:60
Method
update_on_force_evict
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/mru.py:39
Method
update_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
Method
update_on_hit
( self, key: KeyType, cache_dict: dict[KeyType, Any], )
lmcache/v1/storage_backend/cache_policy/fifo.py:24
Method
update_on_hit
( self, key: KeyType, cache_dict: OrderedDict[KeyType, Any], )
lmcache/v1/storage_backend/cache_policy/lru.py:45
Method
update_on_hit
( self, key: KeyType, cache_dict: OrderedDict[KeyType, Any], )
lmcache/v1/storage_backend/cache_policy/mru.py:24
Method
update_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
Method
update_on_put
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/fifo.py:31
Method
update_on_put
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/lru.py:53
Method
update_on_put
( self, key: KeyType, )
lmcache/v1/storage_backend/cache_policy/mru.py:32
Method
update_seq
(thread_id)
tests/v1/cache_controller/test_registry_tree.py:150
Method
update_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
Method
update_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
Method
update_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
Method
update_state_after_alloc
Track which multimodal item (request.mm_features[index]) needs loading.
lmcache/integration/vllm/vllm_ec_adapter.py:171
Method
update_state_after_alloc
Update KVConnector state after block allocation.
lmcache/integration/vllm/lmcache_connector_v1_085.py:127
Method
update_state_after_alloc
Update KVConnector state after block allocation.
lmcache/integration/vllm/lmcache_connector_v1.py:171
Method
update_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
Method
update_state_after_alloc
No-op — block IDs are captured in :meth:`build_connector_meta`.
lmcache/integration/tensorrt_llm/tensorrt_mp_adapter.py:269
Method
update_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
Method
upload_files
( self, bucket_id: str, add: Sequence[tuple[bytes, str]], )
tests/v1/distributed/test_hfbucket_l2_adapter.py:89
Method
upload_files
Store uploaded bytes under their remote object paths.
tests/v1/storage_backend/test_hfbucket_connector.py:85
Method
upload_files
Upload files to a bucket in one batch call.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:102
Method
usage
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
Method
usage_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
Function
use_shared_allocator
Default: patch. Opt out with @pytest.mark.no_shared_allocator.
tests/conftest.py:770
Method
use_stream
(handle: int)
tests/v1/gpu_connector/test_gds_context.py:147
Function
validate_get_results
Validate GET operation results and return statistics
lmcache/v1/check/utils.py:346
← previous
next →
13,201–13,300 of 13,371, ranked by callers