MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodblocking_io
()
lmcache/v1/storage_backend/connector/infinistore_connector.py:82
Methodblocking_store
(*args, **kwargs)
tests/v1/storage_backend/test_maru_backend.py:311
Methodblocks_for_tokens
Number of blocks that span *num_logical_tokens* for a group. Mirrors :meth:`GPUCacheContext.blocks_for_tokens`.
lmcache/v1/platform/cpu/cache_context.py:273
Methodboom
(x)
tests/v1/mp_observability/trace/test_decorator.py:141
Methodbucket_info
(self, bucket_id: str)
tests/v1/distributed/test_hfbucket_l2_adapter.py:64
Methodbucket_info
Return a trivial bucket info payload.
tests/v1/storage_backend/test_hfbucket_connector.py:56
Methodbucket_info
Fetch lightweight bucket metadata.
lmcache/v1/storage_backend/connector/hfbucket_connector.py:93
Methodbuffer
(self)
lmcache/v1/memory_management.py:2629
Methodbuffer
The flat staging tensor (for GDS cuFile registration).
lmcache/v1/platform/cuda/cache_context.py:175
Methodbuild
Build the Aerospike CppExtension.
setup_extensions/storage_backend_profiles/aerospike.py:39
Methodbuild
Build the mooncake CppExtension.
setup_extensions/storage_backend_profiles/mooncake.py:34
Methodbuild
Build the storage backend extension module. Args: extra_cxx_flags: Additional C++ compiler flags from the selecte
setup_extensions/storage_backend_profiles/__init__.py:49
Methodbuild
Build profile-specific extension modules. Returns: ``(ext_modules, cmdclass)`` tuple.
setup_extensions/build_profiles/__init__.py:119
Methodbuild
MUSA extensions are not built yet.
setup_extensions/build_profiles/musa.py:29
Methodbuild
Build CUDA extensions (kernels, allocator, recorders).
setup_extensions/build_profiles/cuda.py:39
Methodbuild
Build SYCL/XPU extensions via DPC++.
setup_extensions/build_profiles/sycl.py:31
Methodbuild_connector_meta
Build the connector metadata for this step. This function should NOT modify fields in the scheduler_output. Also, calling th
lmcache/integration/vllm/lmcache_mp_connector.py:1026
Methodbuild_connector_meta
Build the connector metadata for this step. This function should NOT modify fields in the scheduler_output. Also, calling th
lmcache/integration/vllm/lmcache_mp_connector_0201.py:889
Methodbuild_connector_meta
Build the connector metadata for this step. This function should NOT modify fields in the scheduler_output. Also, calling th
lmcache/integration/vllm/lmcache_mp_connector_0180.py:848
Methodbuild_connector_meta
Build worker-load metadata for hashes queued this scheduler step.
lmcache/integration/vllm/vllm_ec_adapter.py:176
Methodbuild_connector_meta
Build the connector metadata for this step. This function should NOT modify fields in the scheduler_output. Also, calling th
lmcache/integration/vllm/lmcache_connector_v1_085.py:133
Methodbuild_connector_meta
Build the connector metadata for this step. This function should NOT modify fields in the scheduler_output. Also, calling th
lmcache/integration/vllm/lmcache_connector_v1.py:179
Methodbuild_connector_meta
Attach the connector metadata to the request object. This function should NOT modify other fields in the scheduler_output except the
lmcache/integration/vllm/vllm_v1_adapter.py:1596
Methodbuild_connector_meta
Build per-request load/save specs from pending lookup results.
lmcache/integration/tensorrt_llm/tensorrt_mp_adapter.py:219
Methodbuild_connector_meta
Build per-request load/save specs from the pending lookup results. The runtime binds the returned metadata to the worker via ``bind_co
lmcache/integration/tensorrt_llm/tensorrt_adapter.py:216
Methodbuild_kv_connector_stats
KVConnectorStats resolution method. This method allows dynamically registered connectors to return their own KVConnectorStats object,
lmcache/integration/vllm/lmcache_mp_connector.py:1154
Methodbuild_kv_connector_stats
KVConnectorStats resolution method. This method allows dynamically registered connectors to return their own KVConnectorStats object,
lmcache/integration/vllm/lmcache_mp_connector_0201.py:1010
Methodbuild_kv_connector_stats
KVConnectorStats resolution method. This method allows dynamically registered connectors to return their own KVConnectorStats object,
lmcache/integration/vllm/lmcache_mp_connector_0180.py:947
Methodbuild_prom_metrics
Create a KVConnectorPromMetrics subclass which should register per-connector Prometheus metrics and implement observe() to ex
lmcache/integration/vllm/lmcache_mp_connector.py:1165
Methodbuild_prom_metrics
Create a KVConnectorPromMetrics subclass which should register per-connector Prometheus metrics and implement observe() to ex
lmcache/integration/vllm/lmcache_mp_connector_0201.py:1021
Methodbuild_prom_metrics
Create a KVConnectorPromMetrics subclass which should register per-connector Prometheus metrics and implement observe() to ex
lmcache/integration/vllm/lmcache_mp_connector_0180.py:958
Functionbus
()
tests/v1/mp_observability/test_event_recorder.py:43
Functionbus
Enabled EventBus with small queue for fast tests.
tests/v1/mp_observability/test_event_bus.py:70
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_l1.py:50
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_cb_server.py:26
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_l1_eviction_loop.py:26
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_l0_lifecycle.py:99
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_l2_failures.py:34
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_l2.py:98
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_lookup.py:84
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_l1_lifecycle.py:63
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:108
Functionbus
()
tests/v1/mp_observability/subscribers/metrics/test_l1_failures.py:35
Functionbus
()
tests/v1/mp_observability/subscribers/logging/test_cb_server.py:20
Functionbus
()
tests/v1/mp_observability/subscribers/logging/test_mp_server.py:20
Functionbus
()
tests/v1/mp_observability/subscribers/tracing/test_cb_server.py:28
Functionbus
()
tests/v1/mp_observability/subscribers/tracing/test_mp_server.py:28
Methodbus
Create an EventBus (no background thread — we drain manually).
tests/v1/mp_observability/subscribers/logging/test_lookup_hash_logger.py:100
Methodbyte_array
Get the byte array from the MemoryObj. The size is will be the physical size instead of the unaligned size.
lmcache/v1/memory_management.py:363
Methodbyte_array
(self)
lmcache/v1/memory_management.py:828
Methodbyte_array
(self)
lmcache/v1/memory_management.py:983
Methodbyte_array
(self)
lmcache/v1/memory_management.py:1106
Methodbytes_done
Bytes actually transferred. Valid only AFTER the stream sync.
lmcache/v1/gpu_connector/_cufile_async.py:239
Methodcache_contexts
Used by ``/kvcache/check``; unwraps :class:`ContextEntry`.
lmcache/v1/multiprocess/server.py:123
Methodcache_size_per_token
Returns cache size per *logical* token in bytes, summed across all groups. Mirrors :meth:`GPUCacheContext.cache_size_per_token`.
lmcache/v1/platform/cpu/cache_context.py:429
Methodcache_size_per_token
Returns the cache size per *logical* token (in bytes), summed across all groups. For a compressed group, one physical slot st
lmcache/v1/platform/cuda/cache_context.py:523
Functioncalculate_cdf
Equivalent to CUDA calculate_cdf. Calculates the CDF across tokens for each (layer, channel) pair. Args: input_tensor: 3D tensor wit
lmcache/python_ops_fallback.py:2422
Methodcalculate_chunk_budget
Calculate the chunk budget for the allocator backend.
lmcache/v1/storage_backend/abstract_backend.py:417
Functioncalculate_composite_kv_cache_shape
Calculate composite KV cache shape from multiple layer groups. Returns a shape that represents the KV cache structure: - num_layers: sum of a
lmcache/v1/standalone/__main__.py:144
Methodcallback
(k)
tests/v1/storage_backend/test_maru_backend.py:351
Methodcan_evict
Check if the disk cache can be evicted.
lmcache/utils.py:340
Methodcan_evict
Check whether the memory obj can be evicted.
lmcache/v1/memory_management.py:389
Methodcan_evict
Check whether the memory obj can be evicted. A memory obj can be evicted if it is not pinned and ref_count=1.
lmcache/v1/memory_management.py:862
Methodcan_evict
Check whether the memory obj can be evicted. A buffer memory obj can be evicted if it is not pinned.
lmcache/v1/memory_management.py:997
Methodcan_evict
(self)
lmcache/v1/memory_management.py:1126
Methodcan_evict
Check if the related key can be evicted.
lmcache/v1/storage_backend/nixl_storage_backend.py:436
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/redis_adapter.py:24
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/redis_adapter.py:82
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/redis_adapter.py:161
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/__init__.py:193
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/bigtable_adapter.py:21
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/mooncakestore_adapter.py:24
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/hf3fs_adapter.py:29
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/eic_adapter.py:19
Methodcan_parse
(self, url: str)
lmcache/v1/storage_backend/connector/fs_adapter.py:25
Methodcancel_request
Cancel an in-flight or pending request. This method is used by backends that track per-request state (e.g., PDBackendAsync f
lmcache/v1/storage_backend/abstract_backend.py:310
Methodcancel_request
Cancel an in-flight or pending request. Wakes staging allocate() waiters and schedules cleanup on the sender event loop. :pa
lmcache/v1/storage_backend/pd_backend_async.py:1095
Methodcapacity_bytes
Return the effective raw-block capacity in bytes.
lmcache/v1/storage_backend/plugins/rust_raw_block_backend.py:164
Functioncapture_request
(req_id, _msgs, **_kw)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:618
Functioncapture_warmup
(req_id, _msgs, **_kw)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:609
Methodcapture_warning
(msg, *args, **kwargs)
tests/v1/storage_backend/test_local_cpu_backend_nixl_paged.py:204
Functioncaptured_events
Enable the global event bus and capture all L1/L2 failure events. Replaces the process-wide ``_global_bus`` with a fresh enabled bus, subscri
tests/v1/distributed/test_distributed_storage_manager.py:692
Functioncase
(request)
tests/v1/gpu_connector/test_kv_format_specs.py:242
Methodcb_lookup_pre_computed
Lookup the pre-computed chunks in the underlying storage. Uses BlendTokenRangeMatcher for a fast local pre-filter, then submits prefe
lmcache/v1/multiprocess/modules/blend.py:467
Methodcb_register_kv_cache
Register the KV cache buffer from the blend engine. Args: instance_id: Unique identifier for the blend engine instance.
lmcache/v1/multiprocess/modules/blend.py:417
Methodcb_register_rope
Bolt CB re-RoPE state onto an already-registered KV-cache instance. Idempotent; ``REGISTER_KV_CACHE`` must precede this. Strips any Y
lmcache/v1/multiprocess/modules/blend_v3.py:441
Methodcb_retrieve_pre_computed
Retrieve pre-computed chunks from storage and copy them to the CB KV buffer. Args: key: IPCCacheServerKey containing the token id
lmcache/v1/multiprocess/modules/blend.py:895
Methodcb_retrieve_pre_computed
Scatter every matched token range into the request's paged KV. Reuses the lookup's prefetched chunks: fills tmp slots, K-only re-RoPEs
lmcache/v1/multiprocess/modules/blend_v3.py:1435
Methodcb_store_final
Store the final chunks in the underlying storage after processing. The stored chunks should be accessible for normal mode LLMs. Args
lmcache/v1/multiprocess/modules/blend.py:1054
Methodcb_store_pre_computed
Store the pre-computed chunks in the underlying storage for later retrieval. Args: key: IPCCacheServerKey containing the token id
lmcache/v1/multiprocess/modules/blend.py:768
Methodcb_unified_lookup
Non-blocking single-RPC CB lookup (submit-once, poll-on-recall). First call submits the prefix lookup + fingerprint match; later calls
lmcache/v1/multiprocess/modules/blend_v3.py:873
Methodcb_unregister_kv_cache
Unregister the KV cache buffer for the given instance_id. Args: instance_id: Unique identifier for the blend engine instance
lmcache/v1/multiprocess/modules/blend.py:448
Methodcb_unregister_rope
Drop the instance's CB rope state; the paged KV cache is left intact. Args: instance_id (int): Instance whose rope state to remov
lmcache/v1/multiprocess/modules/blend_v3.py:508
Functioncheck
(state: dict[str, Any])
lmcache/cli/commands/bench/engine_bench/interactive/schema.py:77
Methodcheck
(self)
tests/v1/test_health_monitor.py:57
Methodcheck
(self)
tests/v1/test_health_monitor.py:71
Methodcheck
(self)
tests/v1/test_health_monitor.py:323
Methodcheck_contains
()
tests/v1/storage_backend/test_local_cpu_backend.py:482
Functioncheck_finish
(req: CheckFinishRequest)
lmcache/v1/api_server/__main__.py:377
Methodcheck_finish
Check if an event is finished.
lmcache/v1/cache_controller/controllers/kv_controller.py:142
← previousnext →6,501–6,600 of 13,371, ranked by callers