MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Method__init__
( self, *, fp8_dtype: torch.dtype = torch.float8_e4m3fn, scale_dtype: torch.dt
lmcache/v1/kv_codec/asym_k16_v8.py:247
Method__init__
( self, config: LMCacheEngineConfig, worker: "LMCacheWorker", lmcache_engine:
lmcache/v1/cache_controller/full_sync_sender.py:66
Method__init__
Initialize the LMCache Executor with a cache instance. :param lmcache_instance_id: lmcache_instance_id
lmcache/v1/cache_controller/executor.py:53
Method__init__
( self, controller_urls: dict[str, str], health_check_interval: int, lmcache_w
lmcache/v1/cache_controller/controller_manager.py:66
Method__init__
(self)
lmcache/v1/cache_controller/utils.py:353
Method__init__
(self)
lmcache/v1/cache_controller/locks.py:29
Method__init__
(self)
lmcache/v1/cache_controller/locks.py:124
Method__init__
(self, labels: dict)
lmcache/v1/cache_controller/observability.py:32
Method__init__
(self, manager, socket_type: SocketType, message_count: int = 1)
lmcache/v1/cache_controller/observability.py:178
Method__init__
( self, config: LMCacheEngineConfig, metadata: LMCacheMetadata, lmcache_engine
lmcache/v1/cache_controller/worker.py:72
Method__init__
Initialize the FullSyncTracker. Args: registry_tree: The registry tree containing worker nodes completion_th
lmcache/v1/cache_controller/controllers/full_sync_tracker.py:29
Method__init__
(self)
lmcache/v1/cache_controller/controllers/registration_controller.py:38
Method__init__
( self, registry: RegistryTree, full_sync_completion_threshold: float = 0.8, f
lmcache/v1/cache_controller/controllers/kv_controller.py:56
Method__init__
( self, config, role: str | None, worker_count: int, worker_id: int,
lmcache/v1/plugin/runtime_plugin_launcher.py:17
Method__init__
( self, expected_elements: int = 1000000, false_positive_rate: float = 0.01 )
lmcache/v1/utils/bloom_filter.py:18
Method__init__
Initialize the cache. Args: timeout_seconds: Default TTL in seconds for cache entries.
lmcache/v1/utils/cache_utils.py:18
Method__init__
( self, use_gpu: bool = False, **kwargs: Any, )
lmcache/v1/gpu_connector/musa_connectors.py:77
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_musa: bool = False,
lmcache/v1/gpu_connector/musa_connectors.py:410
Method__init__
( self, use_gpu: bool = False, **kwargs, )
lmcache/v1/gpu_connector/hpu_connector.py:55
Method__init__
If use_gpu is true, it will create a gpu intermediate buffer. In this case, it requires the following kwargs: - chunk_size: T
lmcache/v1/gpu_connector/gpu_connectors.py:156
Method__init__
( self, metadata: LMCacheMetadata, device: torch.device, use_gpu: bool = False
lmcache/v1/gpu_connector/gpu_connectors.py:421
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False,
lmcache/v1/gpu_connector/gpu_connectors.py:643
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False,
lmcache/v1/gpu_connector/gpu_connectors.py:1060
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False, **kwargs )
lmcache/v1/gpu_connector/gpu_connectors.py:1446
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False, **kwargs )
lmcache/v1/gpu_connector/gpu_connectors.py:1653
Method__init__
( self, num_kv_heads: int, head_dim: int, hidden_dim_size: int, num_la
lmcache/v1/gpu_connector/gpu_connectors.py:1961
Method__init__
(self)
lmcache/v1/gpu_connector/gds_context.py:81
Method__init__
Initialize mock GPU connector. Args: kv_shape: KV cache shape tuple (num_layers, kv_dim, num_blocks, num_heads, head_
lmcache/v1/gpu_connector/mock_gpu_connector.py:19
Method__init__
( self, size: int, file_offset: int, buf_offset: int, )
lmcache/v1/gpu_connector/_cufile_async.py:227
Method__init__
( self, path: str, writable: bool = False, fallocate_size: Optional[int] = Non
lmcache/v1/gpu_connector/_cufile_async.py:253
Method__init__
If use_gpu is true, it will create a gpu intermediate buffer. In this case, it requires the following kwargs: - chunk_size: T
lmcache/v1/gpu_connector/xpu_connectors.py:42
Method__init__
( self, metadata: LMCacheMetadata, device: torch.device, use_gpu: bool = False
lmcache/v1/gpu_connector/xpu_connectors.py:293
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False,
lmcache/v1/gpu_connector/xpu_connectors.py:478
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False,
lmcache/v1/gpu_connector/xpu_connectors.py:881
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False, **kwargs )
lmcache/v1/gpu_connector/xpu_connectors.py:1252
Method__init__
( self, hidden_dim_size: int, num_layers: int, use_gpu: bool = False, **kwargs )
lmcache/v1/gpu_connector/xpu_connectors.py:1460
Method__init__
(self, kv_caches: DiscoverableKVCache)
lmcache/v1/gpu_connector/kv_format/specs/base.py:109
Method__init__
( self, async_mode: bool = False, **kwargs, )
lmcache/v1/transfer_channel/mock_memory_channel.py:33
Method__init__
( self, async_mode: bool = False, device: Optional[str] = None, **kwargs,
lmcache/v1/transfer_channel/nixl_channel.py:67
Method__init__
Initialize the NIXL agent. Args: buffer_size (int): The size of the buffer. buffer_ptr (int): The pointer to
lmcache/v1/transfer_channel/nixl_channel.py:615
Method__init__
( self, async_mode: bool = False, **kwargs, )
lmcache/v1/transfer_channel/py_socket_channel.py:65
Method__init__
(self, policy: EvictionPolicy)
lmcache/v1/distributed/eviction.py:134
Method__init__
(self, policy: EvictionPolicy)
lmcache/v1/distributed/eviction.py:178
Method__init__
(self)
lmcache/v1/distributed/quota_manager.py:34
Method__init__
(self, config: L1ManagerConfig)
lmcache/v1/distributed/l1_manager.py:186
Method__init__
(self, config: StorageManagerConfig)
lmcache/v1/distributed/storage_manager.py:64
Method__init__
( self, l1_manager: L1Manager, eviction_config: EvictionConfig, )
lmcache/v1/distributed/storage_controllers/eviction_controller.py:97
Method__init__
( self, adapter_id: int, adapter: L2AdapterInterface, eviction_config: Evictio
lmcache/v1/distributed/storage_controllers/eviction_controller.py:187
Method__init__
( self, l2_adapter_states: list[L2AdapterEvictionState], quota_manager: QuotaManager |
lmcache/v1/distributed/storage_controllers/eviction_controller.py:217
Method__init__
(self)
lmcache/v1/distributed/storage_controllers/store_controller.py:80
Method__init__
( self, l1_manager: L1Manager, l2_adapters: list[L2AdapterInterface], adapter_
lmcache/v1/distributed/storage_controllers/store_controller.py:226
Method__init__
( self, l1_manager: L1Manager, l2_adapters: list[L2AdapterInterface], adapter_
lmcache/v1/distributed/storage_controllers/prefetch_controller.py:193
Method__init__
( self, default_destination: EvictionDestination = EvictionDestination.DISCARD, )
lmcache/v1/distributed/eviction_policy/isolated_lru.py:49
Method__init__
Initialize the LRU eviction policy. Args: default_destination: The default destination for evicted objects.
lmcache/v1/distributed/eviction_policy/lru.py:38
Method__init__
(self, mv)
lmcache/v1/distributed/l2_adapters/s3_l2_adapter.py:267
Method__init__
( self, s3_endpoint: str, s3_region: str, s3_num_io_threads: int = 64,
lmcache/v1/distributed/l2_adapters/s3_l2_adapter.py:335
Method__init__
(self, config: S3L2AdapterConfig)
lmcache/v1/distributed/l2_adapters/s3_l2_adapter.py:448
Method__init__
( self, setup_config: dict[str, str], num_workers: int = 4, per_op_workers: di
lmcache/v1/distributed/l2_adapters/mooncake_store_l2_adapter.py:67
Method__init__
( self, base_path: str, num_workers: int = 4, relative_tmp_dir: str = "",
lmcache/v1/distributed/l2_adapters/fs_native_l2_adapter.py:50
Method__init__
( self, peer_mq_server_url: str, peer_transfer_channel_server_url: str, lookup
lmcache/v1/distributed/l2_adapters/p2p_l2_adapter.py:76
Method__init__
(self, config: P2PL2AdapterConfig)
lmcache/v1/distributed/l2_adapters/p2p_l2_adapter.py:131
Method__init__
( self, module_path: str, class_name: str, adapter_params: dict[str, Any] | No
lmcache/v1/distributed/l2_adapters/native_plugin_l2_adapter.py:53
Method__init__
( self, config: DynamicNixlStoreL2AdapterConfig, l1_memory_desc: L1MemoryDesc, )
lmcache/v1/distributed/l2_adapters/nixl_store_dynamic_l2_adapter.py:342
Method__init__
( self, backend: str, backend_params: dict[str, str], )
lmcache/v1/distributed/l2_adapters/nixl_store_dynamic_l2_adapter.py:785
Method__init__
( self, hosts: str, namespace: str = "lmcache", set_name: str = "kv_chunks",
lmcache/v1/distributed/l2_adapters/aerospike_l2_adapter.py:48
Method__init__
Args: max_capacity_bytes: Adapter's maximum byte capacity. ``0`` (default) marks the adapter as not supporting gl
lmcache/v1/distributed/l2_adapters/base.py:119
Method__init__
( self, host: str, port: int, num_workers: int = 8, username: str = ""
lmcache/v1/distributed/l2_adapters/resp_l2_adapter.py:50
Method__init__
Initialize the NixlStorageAgent. Args: device: Device type of the L1 memory buffer (e.g. "cpu", "cuda"). bac
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:147
Method__init__
Initialize the NixlStoreL2Adapter. Args: config: Nixl-specific adapter configuration including backend type,
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:425
Method__init__
( self, backend: str, backend_params: dict[str, str], pool_size: int, )
lmcache/v1/distributed/l2_adapters/nixl_store_l2_adapter.py:932
Method__init__
( self, message: str, stored_keys: list[ObjectKey], stored_sizes: list[int],
lmcache/v1/distributed/l2_adapters/hfbucket_l2_adapter.py:69
Method__init__
( self, bucket_handle: str, token_env: str = "HF_TOKEN", token: Optional[str]
lmcache/v1/distributed/l2_adapters/hfbucket_l2_adapter.py:159
Method__init__
( self, native_client: Any, max_capacity_gb: float = 0, type_name: str = "",
lmcache/v1/distributed/l2_adapters/native_connector_l2_adapter.py:105
Method__init__
( self, inner: L2AdapterInterface, serde: SerdeProcessor, l1_manager: L1Manage
lmcache/v1/distributed/l2_adapters/serde_wrapper.py:105
Method__init__
( self, module_path: str, class_name: str, adapter_params: dict[str, Any] | No
lmcache/v1/distributed/l2_adapters/plugin_l2_adapter.py:55
Method__init__
( self, inner_config: L2AdapterConfigBase, rate: float, seed: int, gap
lmcache/v1/distributed/l2_adapters/fault_inject_l2_adapter.py:79
Method__init__
Wrap ``inner`` with deterministic load-failure injection. Args: inner: The real L2 adapter that every operation delegates to.
lmcache/v1/distributed/l2_adapters/fault_inject_l2_adapter.py:193
Method__init__
Initialize FSL2AdapterConfig. Args: base_path: Directory for storing KV cache files. relative_tmp_dir: Relative sub-d
lmcache/v1/distributed/l2_adapters/fs_l2_adapter.py:176
Method__init__
(self, config: FSL2AdapterConfig)
lmcache/v1/distributed/l2_adapters/fs_l2_adapter.py:255
Method__init__
Initialize a validated DAX L2 adapter config. Args: slot_bytes: Fixed slot size for each stored object. devices: Devi
lmcache/v1/distributed/l2_adapters/dax_l2_adapter.py:150
Method__init__
Initialize the DAX adapter and its stable worker pools. Args: config: Validated DAX adapter configuration. Raises:
lmcache/v1/distributed/l2_adapters/dax_l2_adapter.py:295
Method__init__
Create a runtime reconfiguration error. Args: status_code: HTTP status code the API should return. message: Human-rea
lmcache/v1/distributed/l2_adapters/reconfiguration.py:14
Method__init__
Initialize raw-block MP adapter configuration. Args: device_path: Raw device path or pre-sized file path used for L2.
lmcache/v1/distributed/l2_adapters/raw_block_l2_adapter.py:69
Method__init__
( self, max_size_gb: float, mock_bandwidth_gb: float, )
lmcache/v1/distributed/l2_adapters/mock_l2_adapter.py:70
Method__init__
(self, config: MockL2AdapterConfig)
lmcache/v1/distributed/l2_adapters/mock_l2_adapter.py:112
Method__init__
Creates the server listening on ``listen_url``. Args: listen_url: The ``host:port`` to bind and listen on (e.g. `
lmcache/v1/distributed/transfer_channel/abstract.py:29
Method__init__
Connect to the server at ``transfer_channel_server_url``.
lmcache/v1/distributed/transfer_channel/abstract.py:56
Method__init__
( self, context: "NixlTransferChannelContext", remote_agent_name: str, remote_
lmcache/v1/distributed/transfer_channel/impl/nixl_impl.py:103
Method__init__
( self, listen_url: str, advertise_url: str, l1_memory_desc: L1MemoryDesc,
lmcache/v1/distributed/transfer_channel/impl/nixl_impl.py:228
Method__init__
Creates the transfer channel context using nixl. Args: l1_memory_desc: The description of the local L1 memory buffer to
lmcache/v1/distributed/transfer_channel/impl/nixl_impl.py:313
Method__init__
(self, config: L1MemoryManagerConfig)
lmcache/v1/distributed/memory_manager/l1_memory_manager.py:121
Method__init__
Create the manager. Args: config: The GDS tier config. ``size_in_bytes`` sizes the slab address space, and ``alig
lmcache/v1/distributed/memory_manager/gds_l1_memory_manager.py:41
Method__init__
(self, inner: Serializer)
lmcache/v1/distributed/serde/multi.py:186
Method__init__
(self, inner: Deserializer)
lmcache/v1/distributed/serde/multi.py:229
Method__init__
(self, fp8_dtype: torch.dtype = torch.float8_e4m3fn)
lmcache/v1/distributed/serde/fp8.py:31
Method__init__
(self, fp8_dtype: torch.dtype = torch.float8_e4m3fn)
lmcache/v1/distributed/serde/fp8.py:71
Method__init__
( self, serializer: Serializer, deserializer: Deserializer, max_workers: int =
lmcache/v1/distributed/serde/async_processor.py:52
Method__init__
( self, fp8_dtype: torch.dtype = torch.float8_e4m3fn, scale_scope: ScaleScope = ScaleS
lmcache/v1/distributed/serde/asym_k16_v8.py:89
Method__init__
( self, fp8_dtype: torch.dtype = torch.float8_e4m3fn, scale_scope: ScaleScope = ScaleS
lmcache/v1/distributed/serde/asym_k16_v8.py:194
Method__init__
( self, fp8_dtype: torch.dtype = torch.float8_e4m3fn, scale_scope: ScaleScope = ScaleS
lmcache/v1/distributed/serde/asym_k16_v8.py:308
← previousnext →5,301–5,400 of 13,371, ranked by callers