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
__init__
( self, loop: asyncio.AbstractEventLoop, local_cpu_backend: LocalCPUBackend, c
tests/v1/shm_allocator/shmfile_connector.py:40
Method
__init__
(self, event_types: list[EventType] | None = None)
tests/v1/mp_observability/test_event_bus.py:39
Method
__init__
(self, chunk_hash: str, cache_salt: str = "", kv_rank: int = 0)
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:41
Method
__init__
(self, status_code: int = 200, content: bytes = b"")
tests/lmcache_frontend/test_heartbeat.py:21
Method
__init__
(self, *args, **kwargs)
tests/lmcache_frontend/test_heartbeat.py:38
Method
__init__
( self, max_size_gb: float = 0.5, mock_bandwidth_gb: float = 10.0, )
examples/lmc_external_l2_adapter/src/lmc_external_l2_adapter/adapter.py:64
Method
__init__
( self, config: Union[ InMemoryL2AdapterConfig, dict[str, Any],
examples/lmc_external_l2_adapter/src/lmc_external_l2_adapter/adapter.py:104
Method
__init__
(self, port, context_separator="###")
examples/frontend/chat_session.py:10
Method
__init__
(self)
examples/blend_kv/online_kv.py:39
Method
__init__
(self, context_chunks)
examples/blend_kv/online_kv.py:67
Method
__init__
(self)
examples/online_session/openai_chat_completion_client.py:64
Method
__init__
(self, capacity: int)
examples/disagg_prefill/disagg_proxy_server.py:41
Method
__init__
(self)
examples/disagg_prefill/disagg_proxy_server.py:210
Method
__init__
(self, max_tokens: float)
examples/agents/prefix_analysis.py:39
Method
__init__
(self, ptr_int: int, shape_tuple: tuple, type_str: str)
lmcache/python_ops_fallback.py:186
Method
__init__
(self)
lmcache/python_ops_fallback.py:334
Method
__init__
(self, *, reuse_client: bool = True)
lmcache/connections.py:20
Method
__init__
(self)
lmcache/observability.py:251
Method
__init__
( self, metadata: LMCacheMetadata, config: Optional["LMCacheEngineConfig"] = None,
lmcache/observability.py:917
Method
__init__
( self, metadata: LMCacheMetadata, log_interval: int, config: Optional["LMCach
lmcache/observability.py:1955
Method
__init__
( self, provider, num_cpu, cpu_type, cpu_family_model_stepping,
lmcache/usage_context.py:43
Method
__init__
(self, config: LMCacheEngineConfig, metadata: LMCacheMetadata)
lmcache/usage_context.py:71
Method
__init__
(self, start_time, duration)
lmcache/usage_context.py:90
Method
__init__
( self, server_url: str, config: LMCacheEngineConfig, metadata: LMCacheMetadat
lmcache/usage_context.py:105
Method
__init__
(self, metadata: LMCacheMetadata)
lmcache/usage_context.py:284
Method
__init__
(self, capacity: int)
lmcache/tools/cache_simulator/lru_cache.py:35
Method
__init__
(self, capacity: int)
lmcache/tools/cache_simulator/lru_cache.py:80
Method
__init__
(self, config: ZMQBenchmarkConfig)
lmcache/tools/controller_benchmark/benchmark.py:88
Method
__init__
(self, config: dict[str, Any])
lmcache/integration/request_telemetry/fastapi.py:35
Method
__init__
(self, config: dict[str, Any])
lmcache/integration/request_telemetry/base.py:25
Method
__init__
(self, config: dict[str, Any])
lmcache/integration/request_telemetry/noop.py:21
Method
__init__
(self, request: "Request")
lmcache/integration/vllm/lmcache_mp_connector.py:211
Method
__init__
(self)
lmcache/integration/vllm/lmcache_mp_connector.py:466
Method
__init__
( self, lmcache_config: LMCacheEngineConfig, vllm_config: "VllmConfig", role:
lmcache/integration/vllm/vllm_service_factory.py:49
Method
__init__
(self, request: "Request")
lmcache/integration/vllm/lmcache_mp_connector_0201.py:223
Method
__init__
(self)
lmcache/integration/vllm/lmcache_mp_connector_0201.py:440
Method
__init__
(self, request: "Request")
lmcache/integration/vllm/lmcache_mp_connector_0180.py:206
Method
__init__
(self)
lmcache/integration/vllm/lmcache_mp_connector_0180.py:419
Method
__init__
Initialize the EC connector implementation. Args: vllm_config: vLLM engine configuration; ``ec_transfer_config`` and
lmcache/integration/vllm/vllm_ec_adapter.py:61
Method
__init__
Args: mq_client: The message queue client used to send PING requests. health_event: A threading.Event shared with the
lmcache/integration/vllm/vllm_multi_process_adapter.py:407
Method
__init__
Args: server_urls: The servers URL for the LMCache message queue context: The ZMQ context model_name: The
lmcache/integration/vllm/vllm_multi_process_adapter.py:561
Method
__init__
Initialize the worker adapter for current or legacy vLLM callers. Args: server_url: The server URL for the LMCache message queue.
lmcache/integration/vllm/vllm_multi_process_adapter.py:1041
Method
__init__
(self, vllm_config: "VllmConfig", role: KVConnectorRole)
lmcache/integration/vllm/lmcache_connector_v1_085.py:29
Method
__init__
( self, vllm_config: "VllmConfig", role: KVConnectorRole, kv_cache_config: Opt
lmcache/integration/vllm/lmcache_connector_v1.py:31
Method
__init__
( self, vllm_config: "VllmConfig", role: KVConnectorRole, parent: KVConnectorB
lmcache/integration/vllm/vllm_v1_adapter.py:454
Method
__init__
( self, sgl_config: ModelConfig, tp_size: int, rank: int, page_size: i
lmcache/integration/sglang/multi_process_adapter.py:103
Method
__init__
( self, sgl_config: ModelConfig, tp_size: int, rank: int, k_pool: List
lmcache/integration/sglang/sglang_adapter.py:210
Method
__init__
(self, llm_args: TorchLlmArgs)
lmcache/integration/tensorrt_llm/tensorrt_mp_adapter.py:83
Method
__init__
(self, llm_args: TorchLlmArgs)
lmcache/integration/tensorrt_llm/tensorrt_adapter.py:140
Method
__init__
(self, metrics: Metrics, data: dict, base_url: str)
lmcache/cli/commands/describe.py:105
Method
__init__
(self, prompt: str, documents_args: Optional[list[str]] = None)
lmcache/cli/commands/query/_prompt.py:20
Method
__init__
( self, base: str, model: Optional[str], max_tokens: int, timeout: flo
lmcache/cli/commands/query/_request.py:256
Method
__init__
(self)
lmcache/cli/commands/trace/_dispatch.py:79
Method
__init__
(self)
lmcache/cli/commands/trace/_stats.py:107
Method
__init__
Construct a driver. Initializes the global observability EventBus **before** constructing the StorageManager so internal events
lmcache/cli/commands/trace/_driver.py:121
Method
__init__
( self, stats_collector: StatsCollector, quiet: bool = False, )
lmcache/cli/commands/bench/engine_bench/progress.py:33
Method
__init__
( self, engine_url: str, model: str, completions_mode: bool = False, o
lmcache/cli/commands/bench/engine_bench/request_sender.py:70
Method
__init__
(self)
lmcache/cli/commands/bench/engine_bench/stats.py:78
Method
__init__
( self, config: MultiRoundChatConfig, request_sender: RequestSender, stats_col
lmcache/cli/commands/bench/engine_bench/workloads/multi_round_chat.py:156
Method
__init__
( self, request_sender: RequestSender, stats_collector: StatsCollector, progre
lmcache/cli/commands/bench/engine_bench/workloads/base.py:27
Method
__init__
( self, config: LongDocQAConfig, request_sender: RequestSender, stats_collecto
lmcache/cli/commands/bench/engine_bench/workloads/long_doc_qa.py:118
Method
__init__
( self, config: PrefixSuffixTunerConfig, request_sender: RequestSender, stats_
lmcache/cli/commands/bench/engine_bench/workloads/prefix_suffix_tuner.py:446
Method
__init__
( self, config: RandomPrefillConfig, request_sender: RequestSender, stats_coll
lmcache/cli/commands/bench/engine_bench/workloads/random_prefill.py:60
Method
__init__
( self, config: LongDocPermutatorConfig, request_sender: RequestSender, stats_
lmcache/cli/commands/bench/engine_bench/workloads/long_doc_permutator.py:246
Method
__init__
(self)
lmcache/cli/commands/bench/engine_bench/interactive/state.py:61
Method
__init__
(self, formatter: MetricsFormatter)
lmcache/cli/metrics/handler.py:27
Method
__init__
( self, formatter: Optional[MetricsFormatter] = None, stream: Optional[IO[str]] = None
lmcache/cli/metrics/handler.py:48
Method
__init__
(self, width: int = 48)
lmcache/cli/metrics/formatter.py:107
Method
__init__
(self, indent: int = 2)
lmcache/cli/metrics/formatter.py:155
Method
__init__
(self, title: str)
lmcache/cli/metrics/metrics.py:44
Method
__init__
( self, key: Optional[str], label: Optional[str], list_group: Optional[str] =
lmcache/cli/metrics/section.py:19
Method
__init__
Initialize the EC cache engine. Args: config: LMCache engine configuration; supplies storage backends. metadata: LMCa
lmcache/v1/ec_engine.py:61
Method
__init__
( self, config: LMCacheEngineConfig, token_database: TokenDatabase, )
lmcache/v1/hidden_state_store.py:65
Method
__init__
(self, config: "LMCacheEngineConfig")
lmcache/v1/pin_monitor.py:39
Method
__init__
Partition layers into groups keyed by :data:`LayerGroupIdentity`. For each layer ``i`` in ``kv_caches``, read ``(kv_size, num
lmcache/v1/kv_layer_groups.py:277
Method
__init__
( self, config: Optional[LMCacheEngineConfig] = None, metadata: Optional[LMCacheMetada
lmcache/v1/token_database.py:298
Method
__init__
(self, config: LMCacheEngineConfig, metadata: LMCacheMetadata)
lmcache/v1/token_database.py:457
Method
__init__
(self)
lmcache/v1/event_manager.py:25
Method
__init__
(self)
lmcache/v1/periodic_thread.py:415
Method
__init__
(self)
lmcache/v1/periodic_thread.py:567
Method
__init__
Args: init_size (int): Initial size of the memory allocation in bytes. final_size (int): Final size of the memory all
lmcache/v1/lazy_memory_allocator.py:73
Method
__init__
Initialize LMCacheManager. Args: config: LMCache engine configuration service_factory: Factory for creating
lmcache/v1/manager.py:56
Method
__init__
( self, config: LMCacheEngineConfig, metadata: LMCacheMetadata, token_database
lmcache/v1/cache_engine.py:97
Method
__init__
( self, raw_data: torch.Tensor, metadata: MemoryObjMetadata, parent_allocator:
lmcache/v1/memory_management.py:615
Method
__init__
(self, raw_bytes: bytes, metadata: Optional[MemoryObjMetadata] = None)
lmcache/v1/memory_management.py:899
Method
__init__
(self, metadata: MemoryObjMetadata)
lmcache/v1/memory_management.py:1029
Method
__init__
Initializes the AddressManager with a given size. Args: size: The initial size of the virtual address space.
lmcache/v1/memory_management.py:1275
Method
__init__
Args: tensor: The pre-allocated flat tensor to use as the memory pool. align_bytes: The alignment requirement for all
lmcache/v1/memory_management.py:1586
Method
__init__
(self, paged_allocator: "PagedTensorMemoryAllocator")
lmcache/v1/memory_management.py:1857
Method
__init__
( self, tensor: torch.Tensor, shapes: list[torch.Size], dtypes: list[torch.dty
lmcache/v1/memory_management.py:1874
Method
__init__
:param str device: The device of the buffer memory.
lmcache/v1/memory_management.py:2151
Method
__init__
:param int size: The size of the pinned memory in bytes.
lmcache/v1/memory_management.py:2210
Method
__init__
:param int size: The size of the pinned memory in bytes.
lmcache/v1/memory_management.py:2287
Method
__init__
:param int size: The size of the pinned memory in bytes. :param bool use_hugepages: Whether to use hugepages.
lmcache/v1/memory_management.py:2376
Method
__init__
( self, size: int, device_path: str, *, local_allocator: MixedMemoryAl
lmcache/v1/memory_management.py:2580
Method
__init__
:param int size: The size of the GPU memory in bytes. :param Optional[int] align_bytes: The byte alignment for allocations.
lmcache/v1/memory_management.py:3027
Method
__init__
:param str device: The device of the ad hoc memory allocator.
lmcache/v1/memory_management.py:3119
Method
__init__
(self, size: int, device=None)
lmcache/v1/memory_management.py:3202
Method
__init__
(self, size: int, device=None)
lmcache/v1/memory_management.py:3228
Method
__init__
(self)
lmcache/v1/memory_management.py:3263
← previous
next →
5,201–5,300 of 13,371, ranked by callers